Changing the local administrator account password

Package Definition

Use this package to change the local administrator password for a client PC.

<!-- To set the password, edit setadminpassword.bat -->
<package id="setadminpassword"
          name="Set admin password"
          revision="2012050302"
          priority="999"
          reboot="false"
          execute="once">
          <install cmd='%SOFTWARE%\setadminpassword\setadminpassword.bat' />
          <upgrade cmd='%SOFTWARE%\setadminpassword\setadminpassword.bat' />
</package>

Dos Batch File

Here is a sample batch file that sets the local administrator password. Upload this file to the software section of your windows share.

REM Edit this file to change the administrator password
REM This file runs directly from the server and so does not get
REM downloaded to the local PC's hard disk.

%COMSPEC% /c net user administrator secretpassword