Difference between revisions of "Changing the local administrator account password"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(Created page with "== Package Definition == Use this package to change the local administrator password for a client PC. <source lang="xml"> <!-- To set the password, edit setadminpassword.bat --...")
 
m
 
Line 28: Line 28:
 
</pre>
 
</pre>
  
[[Category:Silent Installers]]
+
[[Category:Changing Windows settings]]

Latest revision as of 13:38, 3 May 2012

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