Grab our RSS feeds Follow us on Twitter Join our Facebook Group Connect with us on LinkedIn
myITforum.com, Powered by You.
you are not logged in

Articles

Newslinks

Links

Downloads

Site Services

Community Forums

Discussion Lists

Article Search

Newsletter

Web Blogs

FAQs

Live Support

myITforum TV

Take a Poll

Monthly Drawing

myITforum Network

User Group Directory

Our Partners

About Us

Register

Login

BRONZE PARTNER:

BRONZE PARTNER:



Industry News:




  Home : Articles : Windows PowerShell print | email | | Forums |   print | email | | Blogs |   print | email | | Wiki |   print | email | | FAQs |   print | email | Article Search  
PowerShell one liner to query servers in AD


Bookmark and Share

By: Ying Li
Posted On: 10/30/2008

Let's say you want to query all the servers in AD, here is a PowerShell one liner to do it, you need to have Quest PowerShell commands for Active Directory installed of course.

This article was Previously posted on Ying Li's Blog

Get-QADComputer -sizelimit 0 -OSName '*server*'|export-csv Servers.csv

You could limit the search to a particular OU by using the -searchroot switch.

  myITforum.com ©2010 | Legal | Privacy