Jump to content

unattend predefine on/off for Windows Xp service


Recommended Posts


And here is an inf for XP Pro using his 'Safe' settings.

He used to provide reg file for applying and another to reset, this will right click to install and should reset to defaults from Add/Remove Programs

; Safe pro services
[Version]
Signature=$CHICAGO$

[DefaultInstall]
AddReg=Reg.Settings
AddReg=Reg.Uninstall
CopyFiles=Inf.Copy

[DefaultUninstall]
AddReg=Reg.Back
DelReg=Reg.Uninstall
DelFiles=Inf.Copy

[Reg.Settings]
; Sets Computer Browser to Disabled
HKLM,%PATH%\Browser,Start,0x10001,0x04
; Sets Distributed Link Tracking Client to Manual
HKLM,%PATH%\TrkWks,Start,0x10001,0x03
; Sets Error Reporting Service to Disabled
HKLM,%PATH%\ERSvc,Start,0x10001,0x04
; Sets Help and Support to Manual
HKLM,%PATH%\helpsvc,Start,0x10001,0x03
; Sets Indexing Service to Disabled
HKLM,%PATH%\cisvc,Start,0x10001,0x04
; Sets Logical Disk Manager to Manual
HKLM,%PATH%\dmserver,Start,0x10001,0x03
; Sets Net Logon to Disabled
HKLM,%PATH%\Netlogon,Start,0x10001,0x04
; Sets NetMeeting Remote Desktop Sharing to Disabled
HKLM,%PATH%\mnmsrvc,Start,0x10001,0x04
; Sets Network Provisioning Service to Disabled
HKLM,%PATH%\xmlprov,Start,0x10001,0x04
; Sets Performance Logs and Alerts to Disabled
HKLM,%PATH%\SysmonLog,Start,0x10001,0x04
; Sets Portable Media Serial Number Service to Disabled
HKLM,%PATH%\WmdmPmSN,Start,0x10001,0x04
; Sets QoS RSVP to Disabled
HKLM,%PATH%\RSVP,Start,0x10001,0x04
; Sets Remote Desktop Help Session Manager to Disabled
HKLM,%PATH%\RDSessMgr,Start,0x10001,0x04
; Sets Remote Registry Service to Disabled
HKLM,%PATH%\RemoteRegistry,Start,0x10001,0x04
; Sets Secondary Logon to Disabled
HKLM,%PATH%\seclogon,Start,0x10001,0x04
; Sets Security Center to Disabled
HKLM,%PATH%\wscsvc,Start,0x10001,0x04
; Sets Server to Disabled
HKLM,%PATH%\lanmanserver,Start,0x10001,0x04
; Sets Smart Card to Disabled
HKLM,%PATH%\SCardSvr,Start,0x10001,0x04
; Sets SSDP Discovery Service to Disabled
HKLM,%PATH%\SSDPSRV,Start,0x10001,0x04
; Sets System Restore Service to Disabled
HKLM,%PATH%\srservice,Start,0x10001,0x04
; Sets TCP/IP NetBIOS Helper Service to Disabled
HKLM,%PATH%\LmHosts,Start,0x10001,0x04
; Sets Uninterruptible Power Supply to Disabled
HKLM,%PATH%\UPS,Start,0x10001,0x04
; Sets Universal Plug and Play Device Host to Disabled
HKLM,%PATH%\upnphost,Start,0x10001,0x04
; Sets WebClient to Disabled
HKLM,%PATH%\WebClient,Start,0x10001,0x04
; Sets Windows Time to Disabled
HKLM,%PATH%\W32Time,Start,0x10001,0x04
; Sets Wireless Zero Configuration to Disabled
HKLM,%PATH%\WZCSVC,Start,0x10001,0x04
; Sets WMI Performance Adapter to Disabled
HKLM,%PATH%\WmiApSrv,Start,0x10001,0x04

[Reg.Uninstall]
HKCU,%UNINSTALL%\%NAME%
HKCU,%UNINSTALL%\%NAME%,DisplayName,,"%NAME%"
HKCU,%UNINSTALL%\%NAME%,UninstallString\
,,"rundll32 setupapi,InstallHinfSection DefaultUninstall 132"\
"%53%\Application Data\Custom\services.inf"

[Reg.Back]
; Sets Computer Browser to Automatic
HKLM,%PATH%\Browser,Start,0x10001,0x02
; Sets Distributed Link Tracking Client to Automatic
HKLM,%PATH%\TrkWks,Start,0x10001,0x02
; Sets Error Reporting Service to Automatic
HKLM,%PATH%\ERSvc,Start,0x10001,0x02
; Sets Help and Support to Automatic
HKLM,%PATH%\helpsvc,Start,0x10001,0x02
; Sets Indexing Service to Manual
HKLM,%PATH%\cisvc,Start,0x10001,0x03
; Sets Logical Disk Manager to Automatic
HKLM,%PATH%\dmserver,Start,0x10001,0x02
; Sets Net Logon to Manual
HKLM,%PATH%\Netlogon,Start,0x10001,0x03
; Sets NetMeeting Remote Desktop Sharing to Manual
HKLM,%PATH%\mnmsrvc,Start,0x10001,0x03
; Sets Network Provisioning Service to Manual
HKLM,%PATH%\xmlprov,Start,0x10001,0x03
; Sets Performance Logs and Alerts to Manual
HKLM,%PATH%\SysmonLog,Start,0x10001,0x03
; Sets Portable Media Serial Number Service to Manual
HKLM,%PATH%\WmdmPmSN,Start,0x10001,0x03
; Sets QoS RSVP to Manual
HKLM,%PATH%\RSVP,Start,0x10001,0x03
; Sets Remote Desktop Help Session Manager to Manual
HKLM,%PATH%\RDSessMgr,Start,0x10001,0x03
; Sets Remote Registry Service to Automatic
HKLM,%PATH%\RemoteRegistry,Start,0x10001,0x02
; Sets Secondary Logon to Automatic
HKLM,%PATH%\seclogon,Start,0x10001,0x02
; Sets Security Center to Automatic
HKLM,%PATH%\wscsvc,Start,0x10001,0x02
; Sets Server to Automatic
HKLM,%PATH%\lanmanserver,Start,0x10001,0x02
; Sets Smart Card to Manual
HKLM,%PATH%\SCardSvr,Start,0x10001,0x03
; Sets SSDP Discovery Service to Manual
HKLM,%PATH%\SSDPSRV,Start,0x10001,0x03
; Sets System Restore Service to Automatic
HKLM,%PATH%\srservice,Start,0x10001,0x02
; Sets TCP/IP NetBIOS Helper Service to Automatic
HKLM,%PATH%\LmHosts,Start,0x10001,0x02
; Sets Uninterruptible Power Supply to Manual
HKLM,%PATH%\UPS,Start,0x10001,0x03
; Sets Universal Plug and Play Device Host to Manual
HKLM,%PATH%\upnphost,Start,0x10001,0x03
; Sets WebClient to Automatic
HKLM,%PATH%\WebClient,Start,0x10001,0x02
; Sets Windows Time to Automatic
HKLM,%PATH%\W32Time,Start,0x10001,0x02
; Sets Wireless Zero Configuration to Automatic
HKLM,%PATH%\WZCSVC,Start,0x10001,0x02
; Sets WMI Performance Adapter to Manual
HKLM,%PATH%\WmiApSrv,Start,0x10001,0x04

[Inf.Copy]
services.inf

[DestinationDirs]
Inf.Copy=53,Application Data\Custom

[SourceDisksNames]
55=%DISKNAME%

[SourceDisksFiles]
services.inf=55

[Strings]
PATH="SYSTEM\CurrentControlSet\Services"
UNINSTALL="Software\Microsoft\Windows\CurrentVersion\Uninstall"
NAME="SP2 Services"
DISKNAME="Setup Files"

For unattended purposes you can apply this by running it from cmdlines.txt like this:

[Commands]
"rundll32.exe setupapi,InstallHinfSection DefaultInstall 128 .\services.inf"

Edit, forgot to mention, this file is for Service Pack 2 only!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...