Created
August 11, 2020 14:29
-
-
Save seanosullivanuk/145e0a51599ee80ebe3e243d49292259 to your computer and use it in GitHub Desktop.
Export all Computer records from Active Directory to a CSV
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Import-Module ActiveDirectory | |
Get-ADComputer -Filter * -Properties * | | |
Select -Property Name,DNSHostName,Enabled,Description | | |
Export-CSV "C:\Temp\AllComputers.csv" -NoTypeInformation -Encoding UTF8 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment