[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1490
  • 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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