Solved

Check out OS type and version in COMPUTER OU.

Posted on 2014-11-10
2
219 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 24

Assisted Solution

by:VB ITS
VB ITS earned 300 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 17

Accepted Solution

by:
Learnctx earned 200 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

Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

Question has a verified solution.

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

This article will help you understand what HashTables are and how to use them in PowerShell.
A procedure for exporting installed hotfix details of remote computers using powershell
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…
This tutorial will walk an individual through the process of installing of Data Protection Manager on a server running Windows Server 2012 R2, including the prerequisites. Microsoft .Net 3.5 is required. To install this feature, go to Server Manager…

751 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