powershell - How to check the existence of a Group in Windows -


i have been able determine if specified user exists under domain/user not sure of best way determine if group exists under specific domain.

has created solution issue?

thanks!

you can use adsisearcher type shortcut:

 ([adsisearcher]'(&(objectclass=group)(samaccountname=group1))').findone()  

Comments