Export to CSV all servers in Domain

Powershell commands:

Using this article you will be able to export all servers on your domain.

I will use the following attributes:

1.OperatingSystem

2.OperatingSystemHotfix

3.OperatingSystemServicePack

4.OperatingSystemVersion

The query script is:

Get-ADComputer -Filter * -properties | Format-list Name ,operatingsystemversion,operatings
ystem,operatingservicepack,SystemHotFix | Out-file c:\users\administrator\desktop\Info.txt