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

x
?
Solved

AD Export

Posted on 2016-08-21
8
Medium Priority
?
71 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
  • 5
  • 3
8 Comments
 
LVL 27

Accepted Solution

by:
MAS earned 2000 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 2000 total points
ID: 41764531
Yes
I tested in my production server.

Thanks
MAS
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

After seeing many questions for JRNL_WRAP_ERROR for replication failure, I thought it would be useful to write this article.
In the absence of a fully-fledged GPO Management product like AGPM, the script in this article will provide you with a simple way to watch the domain (or a select OU) for GPOs changes and automatically take backups when policies are added, removed o…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Screencast - Getting to Know the Pipeline

916 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