Re: Setting attribute in AD
- From: "Richard Mueller [MVP]" <rlmueller-nospam@xxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 25 Mar 2008 20:53:51 -0500
Brad wrote:
I have created around 5000 users in AD using a script. It has flagged the
"user must change password on next logon" checkbox under the users
properties. Is there an easy way to clear this checkbox for all users in
the
domain?
Assign -1 to pwdLastSet attribute of all user objects. The DC changes this
value to the current time. You can do this with a script or command line
tool.
--
Richard Mueller
Microsoft MVP Scripting and ADSI
Hilltop Lab - http://www.rlmueller.net
--
.
- Prev by Date: Re: how to send email to extranet
- Next by Date: Re: How to display the status bar at the bottom of the HTA window?
- Previous by thread: Unexpected retrieved value in Environment Varaibles
- Next by thread: do and exiting issue
- Index(es):
Relevant Pages
|