Jump to content

Recommended Posts

Posted (edited)

In PowerShell on a computer or server with the AD management module installed:

 

Get-ADComputer -filter * -properties operatingSystem, operatingSystemVersion | select name, operatingSystem, operatingSystemVersion | export-Csv -noTypeInformation -path .\OS.csv

 

That will do it. You won't get the precise build number that you're on, so you won't get patch level but you'll at least get the OS name and branch. It will dump the results in a CSV file called os.csv in the folder that you're running the command from.

Edited by Norphy
  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...