General discussion

Locked

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.

This conversation is currently closed to new comments.

1 total post (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Change local W2K admin password from srv

by tamj123 In reply to Change local W2K admin pa ...

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

Back to Networks Forum
1 total post (Page 1 of 1)  

Related Discussions

Related Forums