Get-ADGroup, starts with the following.


hi,

this should quick one. need list of groups in ad start abc , others start hij.

i can first part:

get-adgroup-filter{name-like"abc*"}

but not know how second part.

i've tried

get-adgroup-filter{name-like"abc*" - , "hij*"}

any ideas?

thanks!

hi,

try this

get-adgroup -filter {name -like "abc*" -or name -like "hij*"}

best regards.



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Error: 0x80073701 when trying to add Print Services Role in Windows 2012 Standard

Disconnecting from a Windows Server 2012 R2 file sharing session on a Windows 7,8,10 machine

Windows 2016 RDS event 1306 Connection Broker Client failed to redirect the user... Error: NULL