GP settings for changing password at next login

  • Thread starter Thread starter Neil
  • Start date Start date
N

Neil

Hi ,

I was wondering if there is a GP setting for ALL users to change their
password at the "next login".

Thanks in advance for your help.

Neil

I
 
It´s not, This should you control within the Must change password at next
logon attribute on the particular user in AD Users and Computers.

--
Regards,

Christoffer Andersson
No email replies please - reply in the newsgroup
If the information was help full, you can let me know at:
http://www.itsystem.se/employers.asp?ID=1
 
To set this for all users you would have to script this using ADSI

Try something like this
'**Script start
Dim oOU
Dim oUser
Dim sPath

sPath="OU=<OU Where I keep my accounts>,DC=Mydomain,DC=Com"
Set oOU=GetObject("LDAP://" & sPath)

For Each user In oOU
Set oUser=GetObject("LDAP://" & user.distinguishedname)
oUser.put "pwdlastset",0
oUser.setinfo
next

'***Script end
Good luck

Niclas Lindblom
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top