Solved

AD Export

Posted on 2016-08-21
8
60 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 25

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 25

Assisted Solution

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

Thanks
MAS
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 

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 25

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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

In-place Upgrading Dirsync to Azure AD Connect
A recent project that involved parsing Tableau Desktop and Server log files to extract reusable user queries for use in other systems. I chose to use PowerShell to gather the data, and SharePoint to present it...
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…

685 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