Last active
October 2, 2015 19:27
-
-
Save pinecones-sx/d5485b8692bf1c5977b9 to your computer and use it in GitHub Desktop.
set AD users
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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