Difference between revisions of "Various settings"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
Line 1: Line 1:
 
Various settings, like disabling guest account etc.
 
Various settings, like disabling guest account etc.
  
  <package id="disableaccount" name="Disable account" revision="1" priority="999" reboot="false" execute="always">
+
  <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' />
 
         <install cmd='cmd /c net user Support_388945a0 /active:no' />
 
         <install cmd='cmd /c net user Support_388945a0 /active:no' />
 
         <install cmd='cmd /c net user Pomocnik /active:no' />
 
         <install cmd='cmd /c net user Pomocnik /active:no' />
  </package>
+
  </package
  
 
  <package id="cleansystemtmp" name="Clean System temporary files" revision="1" priority="1999" reboot="false" execute="always">
 
  <package id="cleansystemtmp" name="Clean System temporary files" revision="1" priority="1999" reboot="false" execute="always">
Line 11: Line 11:
 
         <install cmd='cmd /c mkdir "%SYSTEMROOT%\Temp"'/>
 
         <install cmd='cmd /c mkdir "%SYSTEMROOT%\Temp"'/>
 
         <install cmd='cmd /c rd /S /Q "%SYSTEMDRIVE%\Temp"'/>
 
         <install cmd='cmd /c rd /S /Q "%SYSTEMDRIVE%\Temp"'/>
        <install cmd='cmd /c mkdir "%SYSTEMDRIVE%\Temp"'/>
+
        <install cmd='cmd /c mkdir "%SYSTEMDRIVE%\Temp"'/>
 
  </package>
 
  </package>
  

Revision as of 10:07, 13 December 2007

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' />
       <install cmd='cmd /c net user Support_388945a0 /active:no' />
       <install cmd='cmd /c net user Pomocnik /active:no' />
</package
<package id="cleansystemtmp" name="Clean System temporary files" revision="1" priority="1999" reboot="false" execute="always">
       <install cmd='md /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="setadminpassword" name="Set admin password" revision="1" priority="999" reboot="false" execute="once">
       <install cmd='cmd /c net user administrator password' />
</package>


or:

<package
       id="preface"
       name="Various settings"
       revision="1"
       priority="1"
       execute="once">
       <install cmd="\\radca\programy\wstepne\install.bat" />
       <upgrade cmd="\\radca\programy\wstepne\install.bat" />
</package>

install.bat:

net user Guest /active:no
net user Support_388945a0 /active:no
net user Pomocnik /active:no
netsh firewall set service fileandprint enable
netsh firewall set service remoteadmin disable
netsh firewall set allowedprogram program =
c:\windows\system32\sessmgr.exe mode = disable