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