![]() Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Determine Whether or Not My Local Users are Required to Have a Password
|
||
Const ADS_UF_PASSWD_NOTREQD = &H0020
Set colUsers = GetObject("WinNT://atl-fs-01") colUsers.Filter = Array("User") For Each objUser in colUsers If objUser.UserFlags AND ADS_UF_PASSWD_NOTREQD Then Wscript.Echo objUser.Name & ": Password not required." Else Wscript.Echo objUser.Name & ": Password required." End If Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |