Solved

AD Export

Posted on 2016-08-21
8
63 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 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
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 

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

Business Impact of IT Communications

What are the business impacts of how well businesses communicate during an IT incident? Targeting, speed, and transparency all matter. Find out more in this infographic.

Question has a verified solution.

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

Suggested Solutions

A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
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…
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…
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.

751 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