[windows2000] Re: Resetting Password Expiration

  • From: Jeff Malczewski <jmalczewski@xxxxxxxx>
  • To: "'windows2000@xxxxxxxxxxxxx'" <windows2000@xxxxxxxxxxxxx>
  • Date: Fri, 21 May 2004 13:42:22 -0400

Set User = GetObject("WinNT://<domain_name>/<username>,user")
Flags = User.Get("UserFlags")
User.Put "UserFlags", Flags XOR &H10000
User.SetInfo



That piece of code will toggle the flag.  Just put it in a for/next look
with some variables to step through your OUs and you'll be all set.


That's VBScript, just in case.... 

-----Original Message-----
From: Puetz, Christoph [mailto:christoph.puetz@xxxxxxxxxxx]
Sent: Friday, May 21, 2004 1:23 PM
To: 'windows2000@xxxxxxxxxxxxx'
Subject: [windows2000] Resetting Password Expiration


Is there an easy to remove the password expiration (to not expire) on 500
users with a script? We're finally allowed to have passwords expire and
force users to change it. I do not want to click 500 check boxes to uncheck
this setting in AD.

Christoph

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________
********************************************************
This Weeks Sponsor StressedPuppy.com Games
Feeling stressed out? Check out our games to
relieve your stress.
http://www.StressedPuppy.com
********************************************************
To Unsubscribe, set digest or vacation
mode or view archives use the below link.

http://thethin.net/win2000list.cfm

This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. If 
you have received this email in error please notify the system manager. This 
message contains confidential information and is intended only for the 
individual named. If you are not the named addressee you should not 
disseminate, distribute or copy this e-mail.
********************************************************
This Weeks Sponsor StressedPuppy.com Games
Feeling stressed out? Check out our games to
relieve your stress.
http://www.StressedPuppy.com
********************************************************
To Unsubscribe, set digest or vacation
mode or view archives use the below link.

http://thethin.net/win2000list.cfm

Other related posts: