• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 278
  • Last Modified:

Need a command to find all the member servers and their name of the operating system

Need a command to find all the member servers and their name of the operating system. Can this be obtained from Dsquery
or
provide me a command or script  which will provide the all the member servers and their operating system version in a domain
0
jmohan0302
Asked:
jmohan0302
  • 3
  • 3
1 Solution
 
GovvyCommented:
CSVDE -f output.csv -r "(objectClass=computer)" -l operatingSystem
0
 
athomsfereCommented:
Do you have a naming convention that we can use to filter by?

Assuming your Servers use the convention S0SITE01 for example you could use Quest Active Directory cmdlts in powershell and:

Get-QADComputer -Name S0SITE* | Format-Table Name, OSName

That would return something like:

S0SITE01 Windows Server 2003
S0SITE02 Windows Server 2008
0
 
jmohan0302Author Commented:
Hi Govvy,

The command works great. Is it possible to filter only the member servers I mean no desktops

Thanks
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
GovvyCommented:
You could filter above in Excel or use Quest Powershell module:

Get-QADComputer -ComputerRole member -SizeLimit 0 -OSName 'Windows Server*'
0
 
jmohan0302Author Commented:
Hi Govvy,

Could you please let me know how can I enable the quest power shell module? Thanks
0
 
GovvyCommented:
Yes - download free here: http://www.quest.com/powershell/activeroles-server.aspx

It includes details on how to import into your console
0
 
jmohan0302Author Commented:
Good & THanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now