Solved

AD Export

Posted on 2016-08-21
8
43 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 24

Accepted Solution

by:
-MAS earned 500 total points
Comment Utility
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
Comment Utility
Have you tried this on a live server
0
 
LVL 24

Assisted Solution

by:-MAS
-MAS earned 500 total points
Comment Utility
Yes
I tested in my production server.

Thanks
MAS
0
 

Author Comment

by:doctorbill
Comment Utility
Thanks - will try it tomorrow
0
The curse of the end user strikes again      

You’ve updated all your end user’s email signatures. Hooray! But guess what? They’re playing around with the HTML, adding stupid taglines and ruining the imagery. Find out how you can save your signatures from end users today.

 

Author Comment

by:doctorbill
Comment Utility
This does not work in powershell
It does not understand the Get-ADUser
0
 
LVL 24

Assisted Solution

by:-MAS
-MAS earned 500 total points
Comment Utility
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
Comment Utility
Perfect - thanks
0
 

Author Closing Comment

by:doctorbill
Comment Utility
thanks
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

"Migrate" an SMTP relay receive connector to a new server using info from an old server.
Find out how to use Active Directory data for email signature management in Microsoft Exchange and Office 365.
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…

772 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now