Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1453
  • Last Modified:

PowerShell script to obtain all the properties of computer objects in AD

Please let me know if there is a PowerShell script to obtain all the properties of computer objects in AD. Exchange 2010
Thank you
0
h2zero
Asked:
h2zero
  • 2
2 Solutions
 
pcmghouseCommented:
Run these command in Windows Powershell.
If you are going to process these computers for some purpose then you will need a script.

import-module activedirectory
Get-ADComputer -Filter * -Properties *|fl|out-file c:\temp\comp_properties.txt
0
 
Will SzymkowskiSenior Solution ArchitectCommented:
You can also use ADObject to get the same results...

import-module activedirectory
Get-ADObject -filter 'objectclass -eq "computer" -properties * | select | fl | out-file c:\computers.txt

Open in new window


Will.
0
 
pcmghouseCommented:
were you able to test the commnad(s)
0

Featured Post

Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

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