Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Prevent a Local User From Changing His or Her PasswordContent of Prevent a Local User From Changing His or Her Password.vbsMD5 Hash: 500F548384B1394040351C489F7BC40F |
||
Const ADS_UF_PASSWD_CANT_CHANGE = &H0040
Set objUser = GetObject("WinNT://atl-ws-01/kenmyer") If Not objUser.UserFlags AND ADS_UF_PASSWD_CANT_CHANGE Then objPasswordNoChangeFlag = objUser.UserFlags XOR ADS_UF_PASSWD_CANT_CHANGE objUser.Put "userFlags", objPasswordNoChangeFlag objUser.SetInfo End If | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |