none
Vb Script to modify all users local RRS feed

  • General discussion

  • Hello,

    I made this script for one user to modify:  don't expery the password and password change at next logon. It's working well.
     Now,  I want to modify for all users locals. I made several tests but I didn't get it.  could anybody help me what I have to modify for all users locals. Thanks a lot.

    ' Bind to local user object.
    Set objUser = GetObject("WinNT://myserver/Peter,user")
    Const ADS_UF_DONT_EXPIRE_PASSWD = &H800000
     objPasswordExpirationFlag = ADS_UF_DONT_EXPIRE_PASSWD
     objUser.Put "userFlags", objPasswordExpirationFlag
     objUser.SetInfo
    ' Require password change at next logon.
    objUser.PasswordExpired = 1
    objUser.SetInfo

    • Changed type Bill_Stewart Wednesday, July 26, 2017 7:35 PM
    • Moved by Bill_Stewart Wednesday, July 26, 2017 7:35 PM This is not "scripts on demand"
    Friday, June 16, 2017 11:32 AM

All replies