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.
PCの「ローカルユーザーとグループ」の下にいくつかのセキュリティグループがあります。特定のグループの下にユーザーを一覧表示する方法はありますか?
どのクラスを使うべきかわかりません。
私はクラスでそれを見つけました:DirectoryEntry
これがコードのクイックバージョンです
deComputer = New DirectoryEntry("WinNT://" + computerName + ",computer") deComputer.RefreshCache() deGroup = deComputer.Children.Find(Groupname, "group") members = deGroup.Invoke("members", Nothing)