Created
October 9, 2015 10:55
-
-
Save jespernohr/cb0bfc329980cb149ba9 to your computer and use it in GitHub Desktop.
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
# set all users in an OU to have password expiration enabled. | |
# use -limit x if you have more that 100 users in the OU. | |
dsquery user "OU=Postal Workers,OU=Nuuk,OU=Users,OU=Business Unit,DC=test,DC=contoso,DC=com" -limit 2000 | dsmod user -pwdneverexpires no |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment