Windows/powershell: Unterschied zwischen den Versionen
Aus SchnallIchNet
< Windows
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 -…“) |
Cbs (Diskussion | Beiträge) |
||
Zeile 1: | Zeile 1: | ||
Snippets for powershell<br/> | Snippets for powershell<br/> | ||
− | Note that Exchange-related powershell commands should be listed [[Windows/Exchange here]]<br/> | + | Note that Exchange-related powershell commands should be listed [[Windows/Exchange|here]]<br/> |
== Filter Users == | == Filter Users == |
Version vom 14. Juli 2015, 10:35 Uhr
Snippets for powershell
Note that Exchange-related powershell commands should be listed 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