Quantcast
Channel: Windows PowerShell Forum
Viewing all articles
Browse latest Browse all 2562

Exporting AD Users to CSV, editing/updating, then importing back into AD

$
0
0

Hi guys,

 

I am very new to Powershell and need some help. I would like to export all users to a CSV, file ( with only the details name, department, description, title, company,and office ) update the details I want to for each user, save the CSV file, then upload it back into AD to overwrite/update the users.

I can export what I want just fine into a CSV with:

get-aduser -filter * -properties department,description,title,company,office | Select-Object name,department,description,title,company,office | Export-CSV C:\adusers.csv

 

Then I can go in and update each attribute, but am having problems uploading back into AD

 

Any help would be appreciated

 

Thanks

 

Kieran


Viewing all articles
Browse latest Browse all 2562

Trending Articles