I am trying to create a .csv file with user data from a specific OU in Active directory.
Can someone please provide me with a powershell statement that will get this information into a CSV file? This is what I have so far:
1. Open PowerShell, as an administrator, on a Domain Controller computer
2. Type in:
Get-ADUser -SearchBase "OU=Atlanta,OU=Georgia,DC=Company,DC=ORG" -prop * -Filter * | select SamAccounName,FirstName,LastName,FullName,Description,EmailAddress | export-csv c:\users\me\desktop\user-info-atlanta.csv
I am obviously new to PowerShell, so I want to be sure no data will be edited, only read =)