Click here to Skip to main content
15,921,028 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,


I have vb script which sets the "user must change the password at next logon" for a specific user. I tried running it on Windows 2003 systems and it works.
But the same doesnot work on win 2000. can some body help out for this issue...
Posted
Comments
Sandeep Mewara 7-Apr-11 6:22am    
Share the VB script. We cannot comment otherwise.

This is on the User Properties, "Local Users and Group", set up per user.
A script? You need to show your available script or relevant part of it. I don't remember essential differences between XP and 2000 in this aspect.

—SA
 
Share this answer
 
v2
Comments
v17.poornima 7-Apr-11 6:45am    
Please note that the script required is not for any system in domain, but for a local work group
Try code below:

VB
Set objUser = GetObject _
 ("LDAP://cn=MyerKen,ou=Management,dc=NA,dc=fabrikam,dc=com")
objUser.Put "pwdLastSet", 0
objUser.SetInfo


Source - http://technet.microsoft.com/en-us/library/ee198797.aspx[^]
 
Share this answer
 
Comments
v17.poornima 7-Apr-11 6:31am    
Thanks for the code.But this is not working Amit

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900