Skip to content

Instantly share code, notes, and snippets.

@russom-woldezghi
Created February 1, 2013 19:03
Show Gist options
  • Save russom-woldezghi/4693311 to your computer and use it in GitHub Desktop.
Save russom-woldezghi/4693311 to your computer and use it in GitHub Desktop.
PoweShell script to batch update Active Directory User accounts from .csv file (using Quest)
Import-CSV "c:\Path\to\file\usersupdate.csv" |
ForEach-Object {Set-QADUSer $_.SamAccountName -scriptPath $_.LoginScript -homeDirectory $_.HomeDirectory -title $_.JobTitle -department $_.Department -office $_.Office -streetAddress $_.StreetAddress -l $_.City -State $_.State -postalCode $_.PostalCode -company $_.Company -Manager $_.ManagerAdspath }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment