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
 

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

Back
Top