Force Password Change for Entire Domain

G

Guest

I need to know how I can process a list of user accounts against the following script which will force a password change for all domain users at next logon.

Set objUser = GetObject
("LDAP://CN=UserName,CN=Users,DC=DOMAIN,DC=com"
objUser.Put "pwdLastSet",
objUser.SetInf
The script works for one user at a time, but I need to do it in a more efficient manner.

Thank you.
 
J

Jerold Schulman

I need to know how I can process a list of user accounts against the following script which will force a password change for all domain users at next logon.

Set objUser = GetObject _
("LDAP://CN=UserName,CN=Users,DC=DOMAIN,DC=com")
objUser.Put "pwdLastSet", 0
objUser.SetInfo
The script works for one user at a time, but I need to do it in a more efficient manner.

Thank you.


See tip 4755 in the 'Tips & Tricks' at http://www.jsiinc.com

Jerold Schulman
Windows: General MVP
JSI, Inc.
http://www.jsiinc.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top