Friday, June 28, 2013

Handy active directory command line script to set all the user to not expire

dsquery user -startnode "ou=users,dc=train,dc=company,dc=com" -limit 30000 | dsmod user -pwdneverexpires yes

No comments:

Post a Comment