Solved

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

Posted on 2014-02-01
3
1,330 Views
Last Modified: 2014-02-03
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
Comment
Question by:h2zero
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 4

Accepted Solution

by:
pcmghouse earned 250 total points
ID: 39827316
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
 
LVL 53

Assisted Solution

by:Will Szymkowski
Will Szymkowski earned 250 total points
ID: 39827661
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
 
LVL 4

Expert Comment

by:pcmghouse
ID: 39829355
were you able to test the commnad(s)
0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here's a look at newsworthy articles and community happenings during the last month.
After seeing many questions for JRNL_WRAP_ERROR for replication failure, I thought it would be useful to write this article.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Suggested Courses

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question