Skip to content

Instantly share code, notes, and snippets.

@pinecones-sx
Last active October 2, 2015 19:27
Show Gist options
  • Save pinecones-sx/d5485b8692bf1c5977b9 to your computer and use it in GitHub Desktop.
Save pinecones-sx/d5485b8692bf1c5977b9 to your computer and use it in GitHub Desktop.
set AD users
(get-aduser -Filter * -Properties *) |
where {$_.ScriptPath -eq "BenefitsTrans.bat"} |
ForEach-Object {
Write-Host $_.Name
set-aduser $_.samaccountName -ScriptPath "BenefitsAdmin.bat"
Write-Host $_.Name $_.ScriptPath
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment