Recently we needed to conduct a quick assessment of a customer’s AD environment to check for server versions, especially Server 2003.

The following script is easy to run and give you a great, quick landscape of what’s out there and should be assessed and outputs it to a nice Excel spreadsheet for consumption, sorting and charting.

Import-Module ActiveDirectory

 

Get-ADComputer -Filter {OperatingSystem -Like “Windows *Server*”} -Property * | Select-Object Name,OperatingSystem,OperatingSystemServicePack,OperatingSystemVersion | Export-CSV ServerOSInfo.csv -NoTypeInformation -Encoding UTF8

ServerOutput

 

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>