Loading
Scriptbox
 VBScript Links 
 About VBscript 
 JavaScript Links 
 About JavaScript 
 Powershell Links 
 PSCRIPT the Script Launcher 
 PowerShell Shortcut Keys 
 About Powershell 
     VBScript
    JavaScript
    Powershell
Disclaimer
Contact
Latest 10 Scripts
Script search
  :: { Category } :: 0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ
         

Search Options:  Determine  Whether  or  Not  My  Local  Users  are  Required  to  Have  a  Password  

 Content of Determine Whether or Not My Local Users are Required to Have a Password.vbs
MD5 Hash: 158038F6DE97DD1B5A81035D3F5A4E2E
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 ::
  Google Entries:n/a
  Yahoo Backlinks:n/a
  Live Backlinks:n/a
  del.icio.us Bookmarks:n/a
  Technorati Links:n/a