Re: Password Expiration
- From: "Diane Walker" <ett9300@xxxxxxxxx>
- Date: Tue, 4 Mar 2008 19:24:51 -0800
Thanks very much.
"Richard Mueller [MVP]" <rlmueller-nospam@xxxxxxxxxxxxxxxxxxxx> wrote in
message news:Oa9s$oGfIHA.4164@xxxxxxxxxxxxxxxxxxxxxxx
The VBScript program could be similar to:Name
==========
Option Explicit
Dim objUser
' Bind to the specific user object, using the full Distinguished Name.
Set objUser = GetObject("LDAP://cn=Jim
Smith,ou=Sales,ou=West,dc=MyDomain,dc=com")
' Expire the password so it must be change at next logon.
objUser.pwdLastSet = 0
' Save Changes.
objUser.SetInfo
==========
Whenever this script runs, the user will need to change their password the
next time they logon. The tricky part is determining the Distinguished
of the user.the
--
Richard Mueller
Microsoft MVP Scripting and ADSI
Hilltop Lab - http://www.rlmueller.net
--
"Diane Walker" <ett9300@xxxxxxxxx> wrote in message
news:ezjeoiweIHA.5160@xxxxxxxxxxxxxxxxxxxxxxx
Thanks for your prompt response.
Do you have any recommendation how I can go about creating a custom
script?
"Marcin" <marcin@xxxxxxxxxxxxxxxx> wrote in message
news:5BFE0FAA-1E4F-4505-979F-38F079EF6869@xxxxxxxxxxxxxxxx
Diane,
maximum password age affecting domain user accounts is a domain-level
setting - unless you are running Windows Server 2008 functional level
domain...
You can use a workaround by creating a custom script that will force
itdesignated user to change the password at the next logon and schedule
to run on the target date...
hth
Marcin
.
- References:
- Re: Password Expiration
- From: Richard Mueller [MVP]
- Re: Password Expiration
- Prev by Date: Re: Screen Saver Policy only works when applied to Domain
- Next by Date: Re: Password Expiration
- Previous by thread: Re: Password Expiration
- Next by thread: Re: Password Expiration
- Index(es):
Relevant Pages
|
Loading