Windows/powershell
Aus SchnallIchNet
< Windows
Version vom 14. Juli 2015, 10:34 Uhr von Cbs (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „ Snippets for powershell<br/> Note that Exchange-related powershell commands should be listed Windows/Exchange here<br/> == Filter Users == Get-ADUser -…“)
Snippets for powershell
Note that Exchange-related powershell commands should be listed Windows/Exchange here
Filter Users
Get-ADUser -Filter * -Properties DisplayName, EmailAddress, Title -SearchBase 'OU=Fleetservices User,DC=fleetservices,DC=intra' \ -Server 'Fleetservices.intra'
or export result to CSV-File
Get-ADUser -Filter * -Properties DisplayName, EmailAddress, Title -SearchBase 'OU=HPI,DC=fleet,DC=int' \ -Server 'Fleet.int' | Export-CSV c:\temp\FleetInt.csv