This will do it.

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

-----Original Message-----
From: Jason Kane [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, October 01, 2002 4:24 AM
To: NT 2000 Discussions
Subject: How to programatically disable user must change password at first
logon?


Hi folks,
 
I am currently performing an interforest migration and am using ADMT to
migrate users and groups, and CSVDE to migrate contacts into the new
directory.  By default ADMT sets the account properties on the users it
creates in the new target domain with the "user must change password at next
logon" checkbox enabled.
 
 
In the first instance users wont actually be logging into this account,
however they will be authenticating against Content Management Server using
this new account, this is where the problem occurs as CMS cannot handle the
request to change the users password, and with the users not physically
being in the domain, they cant change it.
 
Does anyone know of a script or a way to programatically disable this
checkbox for all users within a directory?  Or even the attirbute name and
syntax if its possible to modify via LDIFDE.
 
Any help would be gratefully received.

TIA, Jason


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


*********************************************************************

The information contained in this communication is
confidential, is intended only for the use of the recipient
named above, and may be legally privileged.
If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, 
distribution, or copying of this communication is strictly
prohibited.
If you have received this communication in error,
please re-send this communication to the sender and
delete the original message or any copy of it from your
computer system. Thank You.


------
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