Solved

Check out OS type and version in COMPUTER OU.

Posted on 2014-11-10
2
199 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

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
A recent project that involved parsing Tableau Desktop and Server log files to extract reusable user queries for use in other systems. I chose to use PowerShell to gather the data, and SharePoint to present it...
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.
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…

749 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