Difference between revisions of "Various settings"
From WPKG | Open Source Software Deployment and Distribution
m |
(Removed Support_388945a0 & Pomocnik as they're specific to an individual; moved firewall settings to firewall page) |
||
| Line 3: | Line 3: | ||
<package id="disableaccount" name="Disable account" revision="1" priority="999" reboot="false" execute="once"> | <package id="disableaccount" name="Disable account" revision="1" priority="999" reboot="false" execute="once"> | ||
<install cmd='cmd /c net user Guest /active:no' /> | <install cmd='cmd /c net user Guest /active:no' /> | ||
| − | |||
| − | |||
</package> | </package> | ||
| Line 14: | Line 12: | ||
</package> | </package> | ||
| − | <package id=" | + | <package id="setadministratorpassword" name="Set administrator password" revision="1" priority="999" reboot="false" execute="once"> |
<install cmd='cmd /c net user administrator password' /> | <install cmd='cmd /c net user administrator password' /> | ||
</package> | </package> | ||
| Line 21: | Line 19: | ||
| − | + | Alternatively WPKG can call these from a batch file: | |
<package | <package | ||
| Line 29: | Line 27: | ||
priority="1" | priority="1" | ||
execute="once"> | execute="once"> | ||
| − | <install cmd="\\ | + | <install cmd="\\server\wpkg_programs\install.bat" /> |
| − | <upgrade cmd="\\ | + | <upgrade cmd="\\server\wpkg_programs\install.bat" /> |
</package> | </package> | ||
| − | install.bat: | + | Where the contents of install.bat could be: |
net user Guest /active:no | net user Guest /active:no | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
[[Category: Changing Windows settings]] | [[Category: Changing Windows settings]] | ||
Latest revision as of 11:28, 26 May 2009
Various settings, like disabling guest account etc.
<package id="disableaccount" name="Disable account" revision="1" priority="999" reboot="false" execute="once">
<install cmd='cmd /c net user Guest /active:no' />
</package>
<package id="cleansystemtmp" name="Clean System temporary files" revision="1" priority="1999" reboot="false" execute="always">
<install cmd='cmd /c rd /S /Q "%SYSTEMROOT%\Temp"'/>
<install cmd='cmd /c mkdir "%SYSTEMROOT%\Temp"'/>
<install cmd='cmd /c rd /S /Q "%SYSTEMDRIVE%\Temp"'/>
<install cmd='cmd /c mkdir "%SYSTEMDRIVE%\Temp"'/>
</package>
<package id="setadministratorpassword" name="Set administrator password" revision="1" priority="999" reboot="false" execute="once">
<install cmd='cmd /c net user administrator password' />
</package>
NOTE: The password is visible on local wpkg.xml, remove after install, or better yet, use the command in a separate .bat file....
Alternatively WPKG can call these from a batch file:
<package
id="preface"
name="Various settings"
revision="1"
priority="1"
execute="once">
<install cmd="\\server\wpkg_programs\install.bat" />
<upgrade cmd="\\server\wpkg_programs\install.bat" />
</package>
Where the contents of install.bat could be:
net user Guest /active:no