Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

AD Export

Posted on 2016-08-21
8
Medium Priority
?
69 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 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
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 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

In this post we will be converting StringData saved within a text file into a hash table. This can be further used in a PowerShell script for replacing settings that are dynamic in nature from environment to environment.
How to deal with a specific error when using the Enable-RemoteMailbox cmdlet to create a mailbox in the cloud-based service, for an existing user in an on-premises Active Directory.
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 walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
Suggested Courses

705 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