Link to home
Start Free TrialLog in
Avatar of P S
P S

asked on

Need a script to enable checkbox "user must change password at next logon" for bulk accounts

I've around 100+ accounts in an OU. OU path is OU=Test1,DC=Test,DC=COM. Few accounts in this OU have check box set to "password never expire" and i want to disable this check box and enable "user must change password at next logon". Additionally, for the same accounts, i've to set an attribute "XXX" to value 2.

I've CSV file with samaccountnames on which this change is needed.

Can anyone help me with a script?

Thanks
ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of P S
P S

ASKER

Thank you. It worked perfectly.