Re: AD Script to set passwords to expire in 10 days
- From: "Jorge Silva" <jorgesilva_pt@xxxxxxxxxxx>
- Date: Fri, 5 Jan 2007 00:23:12 -0000
I'm saying to run the script that sets the pwdLastSet attribute in scheduled maner.
The other weird thing is that the post title suggest password expiration, but the post talks about account expiration, Andrea what do you want to do?
--
I hope that the information above helps you.
Have a Nice day.
Jorge Silva
MCSE
"Joe Kaplan" <joseph.e.kaplan@xxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:%233GNujFMHHA.3944@xxxxxxxxxxxxxxxxxxxxxxx
You can't set pwdLastSet to any value other than -1 or 0. Please try it if you don't believe me. Otherwise, I don't know what you mean.
Joe K.
--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
"Jorge Silva" <jorgesilva_pt@xxxxxxxxxxx> wrote in message news:8636F2A6-6B53-4A53-9D99-23CBFE8D802F@xxxxxxxxxxxxxxxxHi
Can't be done?
what about running that script schedule to a specific date and time...
--
I hope that the information above helps you.
Have a Nice day.
Jorge Silva
MCSE
"Joe Kaplan" <joseph.e.kaplan@xxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:%23mH0vAFMHHA.4916@xxxxxxxxxxxxxxxxxxxxxxxCan't be done. You can't set the pwdLastSet attribute to a specific date. You can only set it to 0, which is essentially "password must be changed at next logon", or -1 which set the date to "now". If you set the value to -1 and changed your domain pwd policy so that passwords expire in 10 days, then everyone's password would expire in 10 days, so that might get you what you want.
You also need to make sure that all users who will expire are NOT set to "password never expires".
Joe K.
--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
"Andrea" <ahayworth@xxxxxxxxxxxxxx> wrote in message news:1167949045.285887.122940@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxGood Afternoon,
I have been asked to write an AD script that will set the user accounts
of an OU to expire in 10 days. I found a script that showed how to set
a password to expire now, but I need the 10 day warning. Does anyone
know how to do this?
Thanks! :)
.
- Follow-Ups:
- Re: AD Script to set passwords to expire in 10 days
- From: Joe Richards [MVP]
- Re: AD Script to set passwords to expire in 10 days
- References:
- AD Script to set passwords to expire in 10 days
- From: Andrea
- Re: AD Script to set passwords to expire in 10 days
- From: Joe Kaplan
- Re: AD Script to set passwords to expire in 10 days
- From: Jorge Silva
- Re: AD Script to set passwords to expire in 10 days
- From: Joe Kaplan
- AD Script to set passwords to expire in 10 days
- Prev by Date: Re: Computers disappearing from "Entire Network" on Domain
- Next by Date: Re: removing a computer from a domain does not remove object from
- Previous by thread: Re: AD Script to set passwords to expire in 10 days
- Next by thread: Re: AD Script to set passwords to expire in 10 days
- Index(es):
Relevant Pages
|