Home | Feedback | Login

Find OS version in Domain Computers via PowerShell

If you need to run this from Windows 10 you must install "Remote Server Administration Tools for Windows 10" WindowsTH-RSAT_WS2016-x64.exe. Once it is installed you can issue the command given in this link

You can also search by specific OU. e.g:

Get-ADComputer -SearchBase 'OU=MyOU,OU=MySubOU,OU=MySubSubOU,DC=FirstDC,DC=SecondDC,DC=ThridDC' -Filter * -Property * | Format-Table Name,OperatingSystem,OperatingSystemServicePack,OperatingSystemVersion -Wrap –Auto. 

Remember, repace the OU and DC to match yours.