here is a vbscript file can do it. you will need to install ADSI.
http://www.microsoft.com/NTWorkstation/downloads/Other/ADSI25.asp

be careful to watch out for word wrap (5 lines).
run from cmd as: filename.vbs DOMAIN USERID
'=======================================
Dim User
Dim PasswordExpired

Set User = GetObject("WinNT://" & Wscript.Arguments(0) & "/" &
Wscript.Arguments(1) & ",user")
User.Put "PasswordExpired", 1
User.SetInfo
'=======================================
 

-----Original Message-----
From: Matt Hoffman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 10:22 AM
To: MSWinNT Discussions
Subject: CLI: setting flag on "User Must Change Password at Next Logon"


Anyone know of a CLI tool to set the flag on the "User Must Change Password
at Next Logon" for a user account in NT 4.0?  I've been looking in the
reskit and haven't found anything yet, and unfortunately NET USER doesn't do
it.  I'm needing this for a script I'm writing...

Thanks!

Matt

------
You are subscribed as [EMAIL PROTECTED]
Archives: http://www.swynk.com/sitesearch/search.asp
To unsubscribe send a blank email to %%email.unsub%%

------
You are subscribed as [email protected]
Archives: http://www.swynk.com/sitesearch/search.asp
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to