Export (0) Print
Expand All

Enumerating the Computer Accounts in a Domain

Updated: February 28, 2009

Applies To: Windows Server 2008 R2

This topic explains how to use the Active Directory module for Windows PowerShell to list all the computer accounts in a domain.

The following example demonstrates how to list all the computers in a domain:

Get-ADcomputer -Filter 'Name -like "*"'

In addition to the standard Lightweight Directory Access Protocol (LDAP) attributes, you can retrieve the following extended properties of the Get-ADComputer cmdlet by using the -Properties parameter:

  • IPv4Address

  • IPv6Address

  • ServiceAccount

For a full explanation of the parameters that you can pass to Get-ADComputer, at the Active Directory module command prompt, type Get-Help Get-ADComputer –detailed, and then press ENTER.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft