Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Check out OS type and version in COMPUTER OU.

Posted on 2014-11-10
2
Medium Priority
?
439 Views
Last Modified: 2014-11-25
Is it possible to query the COMPUTER container in ADUC and list out the systems which are server and OS version if possible?

Thanks.
0
Comment
Question by:nav2567
2 Comments
 
LVL 24

Assisted Solution

by:VB ITS
VB ITS earned 1200 total points
ID: 40433773
This will give you a list of all the Computer Names along with the OS installed, list any Service Packs, as well as give you the version number of the OS.
Get-ADComputer -SearchBase “OU=Computers,OU=Company,DC=COMPANY,DC=COM"  -Filter * -Property * | Format-Table Name,OperatingSystem,OperatingSystemServicePack,OperatingSystemVersion -Wrap –Auto

Open in new window

0
 
LVL 18

Accepted Solution

by:
Learnctx earned 800 total points
ID: 40433785
Yes you you can.

Get-ADComputer -Searchbase "cn=Computers,dc=your,dc=domain,dc=internal" -Filter * -Properties operatingsystem,OperatingSystemServicePack,OperatingSystemVersion | select name, operatingsystem,OperatingSystemServicePack,OperatingSystemVersion

Open in new window

You could also use Group-Object OperatingSystem to quickly count each OS type.

Edit: Looks like someone answered just before me :)
0

Featured Post

Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Previously, on our Nano Server Deployment series, we've created a new nano server image and deployed it on a physical server in part 2. Now we will go through configuration.
My attempt to use PowerShell and other great resources found online to simplify the deployment of Office 365 ProPlus client components to any workstation that needs it, regardless of existing Office components that may be needing attention.
In this Micro Tutorial viewers will learn how to use Boot Corrector from Paragon Rescue Kit Free to identify and fix the boot problems of Windows 7/8/2012R2 etc. As an example is used Windows 2012R2 which lost its active partition flag (often happen…
In this Micro Tutorial viewers will learn how to restore their server from Bare Metal Backup image created with Windows Server Backup feature. As an example Windows 2012R2 is used.

972 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question