Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Modify a Local User Account Password So It Never ExpiresContent of Modify a Local User Account Password So It Never Expires.vbsMD5 Hash: 19D5C40C4D36067D226BCF412B572F70 |
||
' Description: Binds to a local user account on a computer named atl-win2k-01, and configures the account password so it never expires.
Const ADS_UF_DONT_EXPIRE_PASSWD = &h10000 strDomainOrWorkgroup = "Fabrikam" strComputer = "atl-win2k-01" strUser = "KenMeyer" Set objUser = GetObject("WinNT://" & strDomainOrWorkgroup & "/" & _ strComputer & "/" & strUser & ",User") objUserFlags = objUser.Get("UserFlags") objPasswordExpirationFlag = objUserFlags OR ADS_UF_DONT_EXPIRE_PASSWD objUser.Put "userFlags", objPasswordExpirationFlag objUser.SetInfo | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |