Re: Setting attribute in AD

Tech-Archive recommends: Speed Up your PC by fixing your registry



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


.



Relevant Pages

  • Re: Mass password change - how?
    ... Account Tab, select the checkbox for "user must change password at next ... logon". ...
    (microsoft.public.exchange.admin)
  • RE: Updating AD Account Options for Multiple Users
    ... Right checkbox "which is grayed out" becomes active after you check left ... Where "Your AD base DN to start " is the BASE AD DN below which the command ... Options to "User must change password at next logon". ... in a container and right click/properties/Account and in Account options I ...
    (microsoft.public.windows.server.active_directory)