Discussion:
Modify PwdLastSet value
(too old to reply)
Star
2007-06-30 03:31:41 UTC
Permalink
Hi,


I need some help with writing a script that will bulk change the
"PwdLastSet" attribute for user accounts. Can anyone out there provide
me with some assistance?

What I want to do is use a script and set users passwords to expire
within 10 days or so, so I want to be able to change the "PwdLastSet"
value such that it will expire within 10 days.

Urgent please help............


many thanks
Richard Mueller [MVP]
2007-06-30 04:02:31 UTC
Permalink
Post by Star
I need some help with writing a script that will bulk change the
"PwdLastSet" attribute for user accounts. Can anyone out there provide
me with some assistance?
What I want to do is use a script and set users passwords to expire
within 10 days or so, so I want to be able to change the "PwdLastSet"
value such that it will expire within 10 days.
The only value that can be assigned to the pwdLastSet attribute is 0. To
make passwords expire at a set time, say in 10 days, is to run a program at
that time that assigns 0 to pwdLastSet.
--
Richard Mueller
Microsoft MVP Scripting and ADSI
Hilltop Lab - http://www.rlmueller.net
--
Star
2007-07-02 10:26:05 UTC
Permalink
Richard,

Thanks for the reply. The reason I'm asking the question is because we
ae going to implement pasword policy and alot of users are out the
office and rely on SSL VPN to connect back to the office.

So if this only the passwdlastset value can only be changed to "0" it
means users once we set the value the next time users connect back to
the office the password will expire and they will not be able to
access the network resources unless they change their password.

Do you have any recommendations on the best way to do this?

Cheers....

Loading...