Exporting Active Directory Object Data Using PowerShell

Windows Server 2012 includes many PowerShell cmdlets for managing Active Directory. To get all the Active Directory-related cmdlets, open a PowerShell window and enter Get-Command –Module ActiveDirectory.

Common Active Directory PowerShell cmdlets for reading or exporting data from Active Directory, creating objects, or updating object values are as follows:

Get-AdObject—This cmdlet is used to read AD object data and return it to the screen for reading, exporting, or piping into another cmdlets as a variable value. Some other useful closely related functionality cmdlets include Get-AdUser, Get-ADComputer, Get-AdGroup, Get-AdGroupMember, and several more.

Set-AdObject—This cmdlet enables ...

Get Windows Server® 2012 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.