Solved

AD Export

Posted on 2016-08-21
8
65 Views
Last Modified: 2016-08-28
I need to export ALL attributes for ALL users from a server 2008 R2 AD:

Script:
# For all properties
Get-QADUser -sl 0 -IncludeAllProperties -SerializeValues | export-csv <file> -noType

How do I set the export file name and path
0
Comment
Question by:doctorbill
[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
  • 5
  • 3
8 Comments
 
LVL 27

Accepted Solution

by:
☠MAS☠ earned 500 total points
ID: 41764509
Hi,
Please try this.
Get-ADUser -filter * -Properties * | select * | export-csv C:\exported\Users.csv

Open in new window


Thanks
MAS
0
 

Author Comment

by:doctorbill
ID: 41764511
Have you tried this on a live server
0
 
LVL 27

Assisted Solution

by:☠MAS☠
☠MAS☠ earned 500 total points
ID: 41764531
Yes
I tested in my production server.

Thanks
MAS
0
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

 

Author Comment

by:doctorbill
ID: 41764534
Thanks - will try it tomorrow
0
 

Author Comment

by:doctorbill
ID: 41765237
This does not work in powershell
It does not understand the Get-ADUser
0
 
LVL 27

Assisted Solution

by:☠MAS☠
☠MAS☠ earned 500 total points
ID: 41765248
Run this command
import-module activedirectory

Open in new window

then run
Get-ADUser -filter * -Properties * | select * | export-csv C:\exported\Users.csv

Open in new window


Then let me know.

Thanks
MAS
0
 

Author Comment

by:doctorbill
ID: 41773886
Perfect - thanks
0
 

Author Closing Comment

by:doctorbill
ID: 41773888
thanks
0

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Always backup Domain, SYSVOL etc.using processes according to Microsoft Best Practices. This is meant as a disaster recovery process for small environments that did not implement backup processes and did not run a secondary domain controller that ne…
Uncontrolled local administrators groups within any organization pose a huge security risk. Because these groups are locally managed it becomes difficult to audit and maintain them.
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 …
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

628 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