Quantcast
Channel: Directory Services forum
Viewing all articles
Browse latest Browse all 31638

Using & logic in AD Query

$
0
0

Get-ADGroup -Filter{name -like "*servername*"} | Select-Object Name

Using the above command I get a list of group with server names. There is a string which is attached to this server name ex ABC in the group.

And now I am not able to build the logic to query using & operator satisfying both the condition. 

If Server name and ABC both these text found give the Group name.

Any ideas.. 


Priyabrata


Viewing all articles
Browse latest Browse all 31638

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>