Search  
Monday, February 06, 2012 ..:: Blog ::.. Register  Login
 How to Change the Local Administrator Password on Several Workstations
Location: BlogsSteve Walcher
Posted by: sjw Saturday, May 27, 2006 6:41 PM

Attached are some batch files and the exe that will set the local Administrator password on a group of computers.

---------------------------------------------------------------------------------

@ECHO OFF
REM *** RunSetAdminPass.BAT
REM ***
REM *** Set Administrator Password of all workstations
REM ***
REM *** Syntax: RunSetAdminPass <password>
REM ***
REM *** Required:
REM ***           SetAdminPass.BAT
REM ***
REM ***
REM ***           NETVIEW.TXT
REM ***             KARENB1,
REM ***             KELLYH,
REM ***             LATHE_01,
REM ***             LIZW,
REM ***             MEGAN,
REM ***             NEW,
REM ***             NEW-01,
REM ***
REM ***  Netview.txt is a comma delimited list of PC names.
REM ***  (can be created w/ "NET VIEW > NETVIEW.TXT" then edit slightly)
REM ***
REM ***

if '%1' == '' goto NULL


FOR /F "eol=; tokens=1* delims=," %%i in (netview.txt) do call SetAdminPass.bat %%i %1

GOTO END

:NULL
echo.
echo **ERROR** The proper format is:
echo.
echo RunSetAdminPass <password>
echo.
goto END

:END

---------------------------------------------------------------------------------

REM *** SetAdminPass.bat - Set PCs local Administrator password
echo Processing \\%1
cusrmgr.exe -u Administrator -m \\%1 -P %2
ECHO.

---------------------------------------------------------------------------------

References:
----------------------------------------------------------
How to Change the Local Administrator Password on Several Workstations
'http://support.microsoft.com/default.aspx?scid=kb;EN-US;272530'

Is System Lockdown the Secret Weapon?
'http://www.eweek.com/article2/0,1759,1891447,00.asp'

How to enable and use the "Run As" command when running programs in Windows
'http://support.microsoft.com/default.aspx?scid=kb;en-us;294676&sd=tech'

"RunAs" basic (and intermediate) topics
'http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx'

Running as Limited User - the Easy Way
'http://www.sysinternals.com/blog/2006/03/running-as-limited-user-easy-way.html'

Help protect your personal information with strong passwords
'http://www.microsoft.com/athome/security/privacy/password.mspx'


  

Copyright 1991-2006 TinPanAlley BBS   Terms Of Use  Privacy Statement
DotNetNuke® is copyright 2002-2012 by Perpetual Motion Interactive Systems Inc.