$ADUserParams=@{
'Server' = 'DomainController'
'Searchbase' = 'OU=EXAMPLE,DC=SITE,DC=COM'
'Searchscope'= 'Subtree'
'Filter' = '*'
'Properties' = '*'
}
$Users = get-aduser @ADUserParams | select-object 'name', 'email', 'managedby'
$Users | export-csv -delimiter ";" ".\Users.csv"
No comments:
Post a Comment