General discussion


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.

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


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

' Sets password
oUser.setPassword "newpassord"


Set oUser=Nothing

Related Discussions

Related Forums