Discussion Locked

Change local W2K admin password from srv

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

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.

1 reply

by tamj123

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")

strDomain=WshSysEnv("COMPUTERNAME")
strUser="Administrator"

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

' Sets password
oUser.setPassword "newpassord"

oUser.SetInfo()

Set oUser=Nothing

This discussion is closed to new replies.