but this will reuire each user to know a password to use before they can change it
i want to force the password flag to "change password at next logon"
Main Topics
Browse All TopicsWhat is the best way to get ecveryones flag set to change password at next logon?
I know there used to be a utility to do this. Help!
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
An easier way is to use ADModify to change this setting and several others for any number of users all at once. Very easy to make mass modifications to objects.
http://www.gotdotnet.com/w
We use an NT 4 logon server for our domain. In ours, you can just go into start/programs/administrat
Business Accounts
Answer for Membership
by: sirbountyPosted on 2005-07-19 at 06:37:06ID: 14474788
This should do it... ---------- ---------- ---------- -'
) ingContext ")
---------- ---------- ---------- ' ---------- ---------- ---------- '
---------- ---------- ---------' ---------- ---------- ---------'
ance.co.uk /ezine/ezi ne50.htm
PwdLastSet.vbs
' Example VBScript to FORCE a user's password change
' Author Ulrich P amended by Guy Thomas
' Version 2.0 - October 17th 2004
' --------------------------
Option Explicit
Dim objOU, objUser, objRootDSE
Dim strContainer, strLastUser, strDNSDomain, strPassword
Dim intCounter, intAccValue, intPwdValue
Set objRootDSE = GetObject("LDAP://RootDSE"
strDNSDomain = objRootDSE.Get("DefaultNam
intAccValue = 544
intPwdValue = 0
' --------------------------
' Important change OU= to reflect your domain
' --------------------------
strContainer = "OU=Accounts, "
strPassword = "P@ssw0rd"
' --------------------------
' Makes the user change P@ssw0rd at first logon
' --------------------------
strContainer = strContainer & strDNSDomain
set objOU =GetObject("LDAP://" & strContainer )
intCounter = 0
For each objUser in objOU
If objUser.class="user" then
objUser.SetPassword strPassword
objUser.SetInfo
objUser.Put "pwdLastSet", intPwdValue
objUser.SetInfo
objUser.Put "userAccountControl", intAccValue
objUser.SetInfo
intCounter = intCounter +1
strLastUser = objUser.Get ("name")
End if
next
WScript.Echo strPassword & " is Password. UserAccountValue = " _
& intAccValue
WScript.Quit
' End of Script
ref: http://www.computerperform