![]() Loading |
| VBScript |
| JavaScript |
| Powershell |
Search Options: Get a List of All the Local Users Who Have an Expiring Password
|
||
|
Const ADS_UF_DONT_EXPIRE_PASSWD = &H10000
strComputer = "atl-ws-01" Set colAccounts = GetObject("WinNT://" & strComputer & "") colAccounts.Filter = Array("user") For Each objUser In colAccounts If Not objUser.UserFlags AND ADS_UF_DONT_EXPIRE_PASSWD Then Wscript.Echo objUser.Name End If Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: | ||