User must change password at next logon

  • Thread starter Thread starter Daved
  • Start date Start date
D

Daved

Does anyone know what the vb name of this atribute is. I
have an asp wrapped script to reset Domain accounts but
I'm finding that users are sometimes gettting "domain is
not available" errors when they try to logon - resolved
by unticking this option and asking them to change their
passwords after they have logged in. Ideally though I'd
like the script to untick this option automatically.

Any help greatly appreciated

Thanks

Daved
 
Try this... regards Joern

Dim User
Dim UserName
Dim UserDomain
Dim PasswordExpired
UserDomain = "Target_User_Domain"
UserName = "Target_User_Name"
Set User = GetObject("WinNT://" & UserDomain & "/" &
UserName & ",user")
User.Put "PasswordExpired", 1
User.SetInfo
 
Back
Top