Find Windows Versions on Domain

On a domain controller you can use Powershell to determine the Windows versions of systems on your domain

Command
Notes
Get-ADComputer -Filter * -Property * | Format-Table Name,OperatingSystem,OperatingSystemServicePack,

OperatingSystemVersion -Wrap –Auto

Display info for all OSes. Output is formatted into columns
Get-ADComputer -Filter {OperatingSystem -Like “Windows Server*”} -Property * | Format-Table Name,OperatingSystem,OperatingSystemServicePack -Wrap -Auto
Display all Windows Servers devices
Get-ADComputer -Filter {OperatingSystem -Like “Windows Server*”} -Property * | Format-Table Name,OperatingSystem,OperatingSystemServicePack -Wrap -Auto > c:\servers.txt Display all Windows Servers devices with output to txt file.

Leave a Reply

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