Cookie Consent by Free Privacy Policy Generator Polipone
<marzo 2026>
lunmarmergiovensabdom
2324252627281
2345678
9101112131415
16171819202122
23242526272829
303112345

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? 15:12

Notifiche