General discussion

  • Creator
  • #2134879

    Change local W2K admin password from srv


    by jeremy ong ·

    Is there a way where the Windows 2000 LAN administrator can change all the LOCAL Windows 2000 administrator password from the server? I need to change the local admin password periodically and I think there should be a better way.

    Thanks for yourhelp.

All Comments

  • Author
    • #3625220

      Change local W2K admin password from srv

      by tamj123 ·

      In reply to Change local W2K admin password from srv

      Change local administrator password on a regular basis on all computers in your network by adding this VBscript to your logon script. Requires admin privilegies.

      Dim WSHShell,WshSysEnv
      Dim strDomain, strUser

      Set WSHShell = CreateObject(“WScript.Shell”)
      Set WshSysEnv = WshShell.Environment(“PROCESS”)


      Set oUser = GetObject(“WinNT://” & strDomain & “/” & strUser)

      ‘ Sets password
      oUser.setPassword “newpassord”


      Set oUser=Nothing

Viewing 0 reply threads