Solved

Check out OS type and version in COMPUTER OU.

Posted on 2014-11-10
2
162 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 300 total points
Comment Utility
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 16

Accepted Solution

by:
Learnctx earned 200 total points
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
A procedure for exporting installed hotfix details of remote computers using powershell
In this Micro Tutorial viewers will learn how to restore single file or folder from Bare Metal backup image of their system. Tutorial shows how to restore files and folders from system backup. Often it is not needed to restore entire system when onl…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…

762 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now