Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
指定したユーザーが DOMAIN/User の下に存在するかどうかを判断できましたが、特定のドメインの下にグループが存在するかどうかを判断する最善の方法がわかりません。
誰かがこの問題の解決策を作成しましたか?
ありがとう!
また、adsisearcher タイプのショートカットを使用することもできます。
([adsisearcher]'(&(objectClass=group)(samaccountname=group1))').FindOne()
[ADSI]::Exists("WinNT://$srvName/$grpName,group")