Cookie Consent by Free Privacy Policy Generator Polipone
<agosto 2026>
lunmarmergiovensabdom
272829303112
3456789
10111213141516
17181920212223
24252627282930
31123456

Import-Module ServerManager
Add-WindowsFeature RSAT-AD-Powershell
$Root = [ADSI]''
$searcher = new-object System.DirectoryServices.DirectorySearcher($root)
$searcher.SearchScope = "Subtree"
$ADGroup=Get-ADGroup "My Group Name"
$ADGroupCN=$ADGroup.DistinguishedName
$searcher.filter = "(& (objectCategory=user)(memberOf=$ADGroupCN))"
$Users = $searcher.FindAll()
$Users.Properties.name
$Users.properties.samaccountname




Tutti gli attributi dell'oggetto utente di ADSI li potete trovare a questo link
Tutor On-Line
Ciao, sono il tuo Tutor on-line. Come posso aiutarti? 13:50

Notifiche