Export Computer and User List from AD using PowerShell

1)     Go to Administrative Tools and open Active Directory Module for Windows PowerShell
2)     Open
3)     Use this command

Export computers from AD

Get-ADComputer -Filter * -Property * | Select-Object Name,OperatingSystem,OperatingSystemServicePack,OperatingSystemVersion | Export-CSV AllWindows.csv -NoTypeInformation -Encoding UTF8

Source:


Export Users From AD


Get-ADUser -Filter * -Properties * | select SamAccountName, DisplayName, EmailAddress, Title | Export-CSV  "C:\users.csv"

Source

Share on Google Plus

About Tom DeMeulenaere

Highly accomplished information technology professional with extensive knowledge in System Center Configuration Manager, Windows Server, SharePoint, and Office 365.
    Blogger Comment

0 comments:

Post a Comment