TMG server is down after paching some security patches.

Hi experts,
I have a TMG server running windows 2k8, after installing some security patch from Microsoft this week, TMG has not worked anymore.
Currently, I cannot ping this server, cannot remote this server, all TMG Services are stopped and cannot start again. We are using .pac file to access Internet, and now we must change to another backup TMG. Please advise, it is urgent. Thanks for any assistance.
Quang TranAsked:
Who is Participating?
 
Sam Simon NasserIT Support ProfessionalCommented:
ok, my hense is there are some services stopoed, that TMG depend on them.
copy the code below and save it in notepad as batch file ( save with name "Services.bat" with quotations) and run it as administrator. this batch will reset the windows server to their default, then restart. hope it work.

@echo OFF
REM THIS SCRIPT WILL RESTORE YOUR WINDOWS 7 SP1 SERVICES TO THEIR DEFAULT VALUES
REM BASED ON THIS DATA: http://www.blackviper.com/service-configurations/black-vipers-windows-7-service-pack-1-service-configurations/
REM https://pw999.wordpress.com
REM CHECKING IF YOU HAVE ADMIN RIGHTS
ECHO ****************************WARNING****************************
ECHO *                                                             *
ECHO * THIS SCRIPT WILL MODIFY YOUR SYSTEM SETTINGS AND MUST BE    *
ECHO * EXECUTED AS ADMINISTRATOR. IF YOU DON'T KNOW WHAT YOU'RE    *
ECHO * DOING THEN PLEASE STOP THIS SCRIPT IMMEDIATELY.             *
ECHO * IF YOU CONTINUE THEN YOU DO IT AT YOUR OWN RISK.            *
ECHO *                                                             *
ECHO ***************************************************************
 
REM Check for admin rights: http://stackoverflow.com/questions/4051883/batch-script-how-to-check-for-admin-rights
net session >nul 2>&1
IF %ERRORLEVEL% EQU 0 (
    ECHO [OK] Admin rights, detected.
    :VER
    ECHO Pick a version:
    ECHO  Starter (sta)
    ECHO  Home Basic (bas)
    ECHO  Home Premium (pre)
    ECHO  Professional (pro)
    ECHO  Ultimate (ult)
    ECHO  Enterprise (ent)
    ECHO  Quit (q) -- IF YOU DON'T KNOW WHAT YOU'RE DOING OR DON'T WANT TO TAKE THE RISK
    SET /P version=Which version are you running ? [sta/bas/pre/pro/ult/ent/q]:
    if "%version%"=="" GOTO VER
    if "%version%"=="q" GOTO CLOSE
    if "%version%"=="sta" GOTO STARTER
    if "%version%"=="bas" GOTO BASIC
    if "%version%"=="pre" GOTO PREMIUM
    if "%version%"=="pro" GOTO PRO
    if "%version%"=="ult" GOTO ULTIMATE
    if "%version%"=="ent" GOTO ENTERPRISE
    GOTO VER
) ELSE (
    ECHO [ERROR] Not Admin
    ECHO ****************************ERROR****************************
    ECHO *                                                           *
    ECHO *                                                           *
    ECHO *    YOU MUST RUN THIS BATCH FILE WITH ADMIN RIGHTS         *
    ECHO * RIGHT-CLICK THE BAT FILE AND SELECT 'RUN AS ADMINISTRATOR *
    ECHO *                                                           *
    ECHO *                                                           *
    ECHO *************************************************************
    GOTO CLOSE
)
 
:STARTER
    ECHO [OK] WINDOWS 7 SP1 - STARTER SETTINGS
    ECHO CHANGING ActiveX Installer
    sc config AxInstSV start= demand
    ECHO SKIPPING Adaptive Brightness
    ECHO CHANGING Application Experience
    sc config AeLookupSvc start= demand
    ECHO SKIPPING Application Host Helper Service
    ECHO CHANGING Application Identity
    sc config AppIDSvc start= demand
    ECHO CHANGING Application Information
    sc config Appinfo start= demand
    ECHO CHANGING Application Layer Gateway Service
    sc config ALG start= demand
    ECHO SKIPPING Application Management
    ECHO SKIPPING ASP.NET State Service
    ECHO CHANGING Background Intelligent Transfer Service
    sc config BITS start= demand
    ECHO CHANGING Base Filtering Engine
    sc config BFE start= auto
    ECHO CHANGING BitLocker Drive Encryption Service
    sc config BDESVC start= demand
    ECHO CHANGING Block Level Backup Engine Service
    sc config wbengine start= demand
    ECHO CHANGING Bluetooth Support Service
    sc config bthserv start= demand
    ECHO SKIPPING BranchCache
    ECHO CHANGING Certificate Propagation
    sc config CertPropSvc start= demand
    ECHO SKIPPING Client for NFS
    ECHO CHANGING CNG Key Isolation
    sc config KeyIso start= demand
    ECHO CHANGING COM+ Event System
    sc config EventSystem start= auto
    ECHO CHANGING COM+ System Application
    sc config COMSysApp start= demand
    ECHO CHANGING Computer Browser
    sc config Browser start= demand
    ECHO CHANGING Credential Manager
    sc config VaultSvc start= demand
    ECHO CHANGING Cryptographic Services
    sc config CryptSvc start= auto
    ECHO SKIPPING DCOM Server Process Launcher
 
    ECHO CHANGING Desktop Window Manager Session Manager
    sc config UxSms start= auto
    ECHO CHANGING DHCP Client
    sc config Dhcp start= auto
    ECHO CHANGING Diagnostic Policy Service
    sc config DPS start= auto
    ECHO CHANGING Diagnostic Service Host
    sc config WdiServiceHost start= demand
    ECHO CHANGING Diagnostic System Host
    sc config WdiSystemHost start= demand
    ECHO CHANGING Disk Defragmenter
    sc config defragsvc start= demand
    ECHO CHANGING Distributed Link Tracking Client
    sc config TrkWks start= auto
    ECHO CHANGING Distributed Transaction Coordinator
    sc config MSDTC start= demand
    ECHO CHANGING DNS Client
    sc config Dnscache start= auto
    ECHO CHANGING Encrypting File System (EFS)
    sc config EFS start= demand
    ECHO CHANGING Extensible Authentication Protocol
    sc config EapHost start= demand
    ECHO CHANGING Fax
    sc config Fax start= demand
    ECHO CHANGING Function Discovery Provider Host
    sc config fdPHost start= demand
    ECHO CHANGING Function Discovery Resource Publication
    sc config FDResPub start= auto
    ECHO SKIPPING Group Policy Client
 
    ECHO CHANGING Health Key and Certificate Management
    sc config hkmsvc start= demand
    ECHO CHANGING HomeGroup Listener
    sc config HomeGroupListener start= demand
    ECHO CHANGING HomeGroup Provider
    sc config HomeGroupProvider start= demand
    ECHO CHANGING Human Interface Device Access
    sc config hidserv start= demand
    ECHO SKIPPING IIS Admin Service
    ECHO CHANGING IKE and AuthIP IPsec Keying Modules
    sc config IKEEXT start= demand
    ECHO SKIPPING Indexing Service
    ECHO CHANGING Interactive Services Detection
    sc config UI0Detect start= demand
    ECHO CHANGING Internet Connection Sharing (ICS)
    sc config SharedAccess start= Disabled
    ECHO CHANGING IP Helper
    sc config iphlpsvc start= auto
    ECHO CHANGING IPsec Policy Agent
    sc config PolicyAgent start= demand
    ECHO CHANGING KtmRm for Distributed Transaction Coordinator
    sc config KtmRm start= demand
    ECHO CHANGING Link-Layer Topology Discovery Mapper
    sc config lltdsvc start= demand
    ECHO SKIPPING LPD Service
    ECHO SKIPPING Media Center Extender Service
    ECHO SKIPPING Message Queuing
    ECHO SKIPPING Message Queuing Triggers
    ECHO CHANGING Microsoft .NET Framework NGEN v2.0.50727
    sc config clr_optimization_v2.0.50727 start= demand
    ECHO SKIPPING Microsoft FTP Service
    ECHO CHANGING Microsoft iSCSI Initiator Service
    sc config MSiSCSI start= demand
    ECHO CHANGING Microsoft Software Shadow Copy Provider
    sc config swprv start= demand
    ECHO CHANGING Multimedia Class Scheduler
    sc config MMCSS start= auto
    ECHO SKIPPING Net.Msmq Listener Adapter
    ECHO SKIPPING Net.Pipe Listener Adapter
    ECHO SKIPPING Net.Tcp Listener Adapter
    ECHO CHANGING Net.Tcp Port Sharing Service
    sc config NetTcpPortSharing start= Disabled
    ECHO CHANGING Netlogon
    sc config Netlogon start= demand
    ECHO CHANGING Network Access Protection Agent
    sc config napagent start= demand
    ECHO CHANGING Network Connections
    sc config Netman start= demand
    ECHO CHANGING Network List Service
    sc config netprofm start= demand
    ECHO CHANGING Network Location Awareness
    sc config NlaSvc start= auto
    ECHO CHANGING Network Store Interface Service
    sc config nsi start= auto
    ECHO SKIPPING Offline Files
    ECHO CHANGING Parental Controls
    sc config WPCSvc start= demand
    ECHO CHANGING Peer Name Resolution Protocol
    sc config PNRPsvc start= demand
    ECHO CHANGING Peer Networking Grouping
    sc config p2psvc start= demand
    ECHO CHANGING Peer Networking Identity Manager
    sc config p2pimsvc start= demand
    ECHO CHANGING Performance Logs and Alerts
    sc config pla start= demand
    ECHO CHANGING Plug and Play
    sc config PlugPlay start= auto
    ECHO CHANGING PnP-X IP Bus Enumerator
    sc config IPBusEnum start= demand
    ECHO CHANGING PNRP Machine Name Publication Service
    sc config PNRPAutoReg start= demand
    ECHO CHANGING Portable Device Enumerator Service
    sc config WPDBusEnum start= demand
    ECHO CHANGING Power
    sc config Power start= auto
    ECHO CHANGING Print Spooler
    sc config Spooler start= auto
    ECHO CHANGING Problem Reports and Solutions Control Panel Support
    sc config wercplsupport start= demand
    ECHO CHANGING Program Compatibility Assistant Service
    sc config PcaSvc start= demand
    ECHO CHANGING Protected Storage
    sc config ProtectedStorage start= demand
    ECHO CHANGING Quality Windows Audio Video Experience
    sc config QWAVE start= demand
    ECHO CHANGING Remote Access Auto Connection Manager
    sc config RasAuto start= demand
    ECHO CHANGING Remote Access Connection Manager
    sc config RasMan start= demand
    ECHO CHANGING Remote Desktop Configuration
    sc config SessionEnv start= demand
    ECHO CHANGING Remote Desktop Services
    sc config TermService start= demand
    ECHO SKIPPING Remote Desktop Services UserMode Port Redirector
    ECHO SKIPPING Remote Procedure Call (RPC)
 
    ECHO SKIPPING Remote Procedure Call (RPC) Locator
 
    ECHO CHANGING Remote Registry
    sc config RemoteRegistry start= demand
    ECHO SKIPPING RIP Listener
    ECHO CHANGING Routing and Remote Access
    sc config RemoteAccess start= Disabled
    ECHO SKIPPING RPC Endpoint Mapper
    sc config RpcEptMapper start= auto
    ECHO SKIPPING SeaPort
    ECHO CHANGING Secondary Logon
    sc config seclogon start= demand
    ECHO CHANGING Secure Socket Tunneling Protocol Service
    sc config SstpSvc start= demand
    ECHO CHANGING Security Accounts Manager
    sc config SamSs start= auto
    ECHO CHANGING Security Center
    sc config wscsvc start= delayed-auto
    ECHO CHANGING Server
    sc config LanmanServer start= auto
    ECHO CHANGING Shell Hardware Detection
    sc config ShellHWDetection start= auto
    ECHO SKIPPING Simple TCP/IP Services
    ECHO CHANGING Smart Card
    sc config SCardSvr start= demand
    ECHO CHANGING Smart Card Removal Policy
    sc config SCPolicySvc start= demand
    ECHO SKIPPING SNMP Service
    ECHO CHANGING SNMP Trap
    sc config SNMPTRAP start= demand
    ECHO CHANGING Software Protection
    sc config sppsvc start= delayed-auto
    ECHO CHANGING SPP Notification Service
    sc config sppuinotify start= demand
    ECHO CHANGING SSDP Discovery
    sc config SSDPSRV start= demand
    ECHO SKIPPING Storage Service
    ECHO CHANGING Superfetch
    sc config SysMain start= auto
    ECHO CHANGING System Event Notification Service
    sc config SENS start= auto
    ECHO CHANGING Tablet PC Input Service
    sc config TabletInputService start= demand
    ECHO SKIPPING Task Scheduler
 
    ECHO CHANGING TCP/IP NetBIOS Helper
    sc config lmhosts start= auto
    ECHO CHANGING Telephony
    sc config TapiSrv start= demand
    ECHO SKIPPING Telnet
    ECHO CHANGING Themes
    sc config Themes start= auto
    ECHO CHANGING Thread Ordering Server
    sc config THREADORDER start= demand
    ECHO CHANGING TPM Base Services
    sc config TBS start= demand
    ECHO CHANGING UPnP Device Host
    sc config upnphost start= demand
    ECHO CHANGING User Profile Service
    sc config ProfSvc start= auto
    ECHO CHANGING Virtual Disk
    sc config vds start= demand
    ECHO CHANGING Volume Shadow Copy
    sc config VSS start= demand
    ECHO SKIPPING Web Management Service
    ECHO CHANGING WebClient
    sc config WebClient start= demand
    ECHO CHANGING Windows Audio
    sc config AudioSrv start= auto
    ECHO CHANGING Windows Audio Endpoint Builder
    sc config AudioEndpointBuilder start= auto
    ECHO CHANGING Windows Backup
    sc config SDRSVC start= demand
    ECHO CHANGING Windows Biometric Service
    sc config WbioSrvc start= demand
    ECHO CHANGING Windows CardSpace
    sc config idsvc start= demand
    ECHO CHANGING Windows Color System
    sc config WcsPlugInService start= demand
    ECHO CHANGING Windows Connect Now – Config Registrar
    sc config wcncsvc start= demand
    ECHO CHANGING Windows Defender
    sc config WinDefend start= delayed-auto
    ECHO CHANGING Windows Driver Foundation – User-mode Driver Framework
    sc config wudfsvc start= demand
    ECHO CHANGING Windows Error Reporting Service
    sc config WerSvc start= demand
    ECHO CHANGING Windows Event Collector
    sc config Wecsvc start= demand
    ECHO CHANGING Windows Event Log
    sc config EventLog start= auto
    ECHO CHANGING Windows Firewall
    sc config MpsSvc start= auto
    ECHO CHANGING Windows Font Cache Service
    sc config FontCache start= delayed-auto
    ECHO CHANGING Windows Image Acquisition (WIA)
    sc config StiSvc start= demand
    ECHO CHANGING Windows Installer
    sc config msiserver start= demand
    ECHO SKIPPING Windows Live Family Safety
    ECHO CHANGING Windows Management Instrumentation
    sc config Winmgmt start= auto
    ECHO SKIPPING Windows Media Center Receiver Service
    ECHO SKIPPING Windows Media Center Scheduler Service
    ECHO CHANGING Windows Media Player Network Sharing Service
    sc config WMPNetworkSvc start= demand
    ECHO CHANGING Windows Modules Installer
    sc config TrustedInstaller start= demand
    ECHO CHANGING Windows Presentation Foundation Font Cache 3.0.0.0
    sc config FontCache3.0.0.0 start= demand
    ECHO SKIPPING Windows Process Activation Service
    ECHO CHANGING Windows Remote Management (WS-Management)
    sc config WinRM start= demand
    ECHO CHANGING Windows Search
    sc config WSearch start= delayed-auto
    ECHO CHANGING Windows Time
    sc config W32Time start= demand
    ECHO CHANGING Windows Update
    sc config wuauserv start= delayed-auto
    ECHO CHANGING WinHTTP Web Proxy Auto-Discovery Service
    sc config WinHttpAutoProxySvc start= demand
    ECHO CHANGING Wired AutoConfig
    sc config dot3svc start= demand
    ECHO CHANGING WLAN AutoConfig
    sc config Wlansvc start= demand
    ECHO CHANGING WMI Performance Adapter
    sc config wmiApSrv start= demand
    ECHO CHANGING Workstation
    sc config LanmanWorkstation start= auto
    ECHO SKIPPING World Wide Web Publishing Service
    ECHO CHANGING WWAN AutoConfig
    sc config WwanSvc start= demand
    GOTO FINISHED
:END
 
:BASIC
    ECHO [OK] WINDOWS 7 SP1 - HOME-BASIC SETTINGS
    ECHO CHANGING ActiveX Installer
    sc config AxInstSV start= demand
    ECHO CHANGING Adaptive Brightness
    sc config SensrSvc start= demand
    ECHO CHANGING Application Experience
    sc config AeLookupSvc start= demand
    ECHO SKIPPING Application Host Helper Service
    ECHO CHANGING Application Identity
    sc config AppIDSvc start= demand
    ECHO CHANGING Application Information
    sc config Appinfo start= demand
    ECHO CHANGING Application Layer Gateway Service
    sc config ALG start= demand
    ECHO SKIPPING Application Management
    ECHO SKIPPING ASP.NET State Service
    ECHO CHANGING Background Intelligent Transfer Service
    sc config BITS start= demand
    ECHO CHANGING Base Filtering Engine
    sc config BFE start= auto
    ECHO CHANGING BitLocker Drive Encryption Service
    sc config BDESVC start= demand
    ECHO CHANGING Block Level Backup Engine Service
    sc config wbengine start= demand
    ECHO CHANGING Bluetooth Support Service
    sc config bthserv start= demand
    ECHO SKIPPING BranchCache
    ECHO CHANGING Certificate Propagation
    sc config CertPropSvc start= demand
    ECHO SKIPPING Client for NFS
    ECHO CHANGING CNG Key Isolation
    sc config KeyIso start= demand
    ECHO CHANGING COM+ Event System
    sc config EventSystem start= auto
    ECHO CHANGING COM+ System Application
    sc config COMSysApp start= demand
    ECHO CHANGING Computer Browser
    sc config Browser start= demand
    ECHO CHANGING Credential Manager
    sc config VaultSvc start= demand
    ECHO CHANGING Cryptographic Services
    sc config CryptSvc start= auto
    ECHO SKIPPING DCOM Server Process Launcher
 
    ECHO CHANGING Desktop Window Manager Session Manager
    sc config UxSms start= auto
    ECHO CHANGING DHCP Client
    sc config Dhcp start= auto
    ECHO CHANGING Diagnostic Policy Service
    sc config DPS start= auto
    ECHO CHANGING Diagnostic Service Host
    sc config WdiServiceHost start= demand
    ECHO CHANGING Diagnostic System Host
    sc config WdiSystemHost start= demand
    ECHO CHANGING Disk Defragmenter
    sc config defragsvc start= demand
    ECHO CHANGING Distributed Link Tracking Client
    sc config TrkWks start= auto
    ECHO CHANGING Distributed Transaction Coordinator
    sc config MSDTC start= demand
    ECHO CHANGING DNS Client
    sc config Dnscache start= auto
    ECHO CHANGING Encrypting File System (EFS)
    sc config EFS start= demand
    ECHO CHANGING Extensible Authentication Protocol
    sc config EapHost start= demand
    ECHO CHANGING Fax
    sc config Fax start= demand
    ECHO CHANGING Function Discovery Provider Host
    sc config fdPHost start= demand
    ECHO CHANGING Function Discovery Resource Publication
    sc config FDResPub start= auto
    ECHO SKIPPING Group Policy Client
 
    ECHO CHANGING Health Key and Certificate Management
    sc config hkmsvc start= demand
    ECHO CHANGING HomeGroup Listener
    sc config HomeGroupListener start= demand
    ECHO CHANGING HomeGroup Provider
    sc config HomeGroupProvider start= demand
    ECHO CHANGING Human Interface Device Access
    sc config hidserv start= demand
    ECHO SKIPPING IIS Admin Service
    ECHO CHANGING IKE and AuthIP IPsec Keying Modules
    sc config IKEEXT start= demand
    ECHO SKIPPING Indexing Service
    ECHO CHANGING Interactive Services Detection
    sc config UI0Detect start= demand
    ECHO CHANGING Internet Connection Sharing (ICS)
    sc config SharedAccess start= Disabled
    ECHO CHANGING IP Helper
    sc config iphlpsvc start= auto
    ECHO CHANGING IPsec Policy Agent
    sc config PolicyAgent start= demand
    ECHO CHANGING KtmRm for Distributed Transaction Coordinator
    sc config KtmRm start= demand
    ECHO CHANGING Link-Layer Topology Discovery Mapper
    sc config lltdsvc start= demand
    ECHO SKIPPING LPD Service
    ECHO SKIPPING Media Center Extender Service
    ECHO SKIPPING Message Queuing
    ECHO SKIPPING Message Queuing Triggers
    ECHO CHANGING Microsoft .NET Framework NGEN v2.0.50727
    sc config clr_optimization_v2.0.50727 start= demand
    ECHO SKIPPING Microsoft FTP Service
    ECHO CHANGING Microsoft iSCSI Initiator Service
    sc config MSiSCSI start= demand
    ECHO CHANGING Microsoft Software Shadow Copy Provider
    sc config swprv start= demand
    ECHO CHANGING Multimedia Class Scheduler
    sc config MMCSS start= auto
    ECHO SKIPPING Net.Msmq Listener Adapter
    ECHO SKIPPING Net.Pipe Listener Adapter
    ECHO SKIPPING Net.Tcp Listener Adapter
    ECHO CHANGING Net.Tcp Port Sharing Service
    sc config NetTcpPortSharing start= Disabled
    ECHO CHANGING Netlogon
    sc config Netlogon start= demand
    ECHO CHANGING Network Access Protection Agent
    sc config napagent start= demand
    ECHO CHANGING Network Connections
    sc config Netman start= demand
    ECHO CHANGING Network List Service
    sc config netprofm start= demand
    ECHO CHANGING Network Location Awareness
    sc config NlaSvc start= auto
    ECHO CHANGING Network Store Interface Service
    sc config nsi start= auto
    ECHO SKIPPING Offline Files
    ECHO CHANGING Parental Controls
    sc config WPCSvc start= demand
    ECHO CHANGING Peer Name Resolution Protocol
    sc config PNRPsvc start= demand
    ECHO CHANGING Peer Networking Grouping
    sc config p2psvc start= demand
    ECHO CHANGING Peer Networking Identity Manager
    sc config p2pimsvc start= demand
    ECHO CHANGING Performance Logs and Alerts
    sc config pla start= demand
    ECHO CHANGING Plug and Play
    sc config PlugPlay start= auto
    ECHO CHANGING PnP-X IP Bus Enumerator
    sc config IPBusEnum start= demand
    ECHO CHANGING PNRP Machine Name Publication Service
    sc config PNRPAutoReg start= demand
    ECHO CHANGING Portable Device Enumerator Service
    sc config WPDBusEnum start= demand
    ECHO CHANGING Power
    sc config Power start= auto
    ECHO CHANGING Print Spooler
    sc config Spooler start= auto
    ECHO CHANGING Problem Reports and Solutions Control Panel Support
    sc config wercplsupport start= demand
    ECHO CHANGING Program Compatibility Assistant Service
    sc config PcaSvc start= demand
    ECHO CHANGING Protected Storage
    sc config ProtectedStorage start= demand
    ECHO CHANGING Quality Windows Audio Video Experience
    sc config QWAVE start= demand
    ECHO CHANGING Remote Access Auto Connection Manager
    sc config RasAuto start= demand
    ECHO CHANGING Remote Access Connection Manager
    sc config RasMan start= demand
    ECHO CHANGING Remote Desktop Configuration
    sc config SessionEnv start= demand
    ECHO CHANGING Remote Desktop Services
    sc config TermService start= demand
    ECHO SKIPPING Remote Desktop Services UserMode Port Redirector
    ECHO SKIPPING Remote Procedure Call (RPC)
 
    ECHO SKIPPING Remote Procedure Call (RPC) Locator
 
    ECHO CHANGING Remote Registry
    sc config RemoteRegistry start= demand
    ECHO SKIPPING RIP Listener
    ECHO CHANGING Routing and Remote Access
    sc config RemoteAccess start= Disabled
    ECHO SKIPPING RPC Endpoint Mapper
    sc config RpcEptMapper start= auto
    ECHO SKIPPING SeaPort
    ECHO CHANGING Secondary Logon
    sc config seclogon start= demand
    ECHO CHANGING Secure Socket Tunneling Protocol Service
    sc config SstpSvc start= demand
    ECHO CHANGING Security Accounts Manager
    sc config SamSs start= auto
    ECHO CHANGING Security Center
    sc config wscsvc start= delayed-auto
    ECHO CHANGING Server
    sc config LanmanServer start= auto
    ECHO CHANGING Shell Hardware Detection
    sc config ShellHWDetection start= auto
    ECHO SKIPPING Simple TCP/IP Services
    ECHO CHANGING Smart Card
    sc config SCardSvr start= demand
    ECHO CHANGING Smart Card Removal Policy
    sc config SCPolicySvc start= demand
    ECHO SKIPPING SNMP Service
    ECHO CHANGING SNMP Trap
    sc config SNMPTRAP start= demand
    ECHO CHANGING Software Protection
    sc config sppsvc start= delayed-auto
    ECHO CHANGING SPP Notification Service
    sc config sppuinotify start= demand
    ECHO CHANGING SSDP Discovery
    sc config SSDPSRV start= demand
    ECHO SKIPPING Storage Service
    ECHO CHANGING Superfetch
    sc config SysMain start= auto
    ECHO CHANGING System Event Notification Service
    sc config SENS start= auto
    ECHO CHANGING Tablet PC Input Service
    sc config TabletInputService start= demand
    ECHO SKIPPING Task Scheduler
 
    ECHO CHANGING TCP/IP NetBIOS Helper
    sc config lmhosts start= auto
    ECHO CHANGING Telephony
    sc config TapiSrv start= demand
    ECHO SKIPPING Telnet
    ECHO CHANGING Themes
    sc config Themes start= auto
    ECHO CHANGING Thread Ordering Server
    sc config THREADORDER start= demand
    ECHO CHANGING TPM Base Services
    sc config TBS start= demand
    ECHO CHANGING UPnP Device Host
    sc config upnphost start= demand
    ECHO CHANGING User Profile Service
    sc config ProfSvc start= auto
    ECHO CHANGING Virtual Disk
    sc config vds start= demand
    ECHO CHANGING Volume Shadow Copy
    sc config VSS start= demand
    ECHO SKIPPING Web Management Service
    ECHO CHANGING WebClient
    sc config WebClient start= demand
    ECHO CHANGING Windows Audio
    sc config AudioSrv start= auto
    ECHO CHANGING Windows Audio Endpoint Builder
    sc config AudioEndpointBuilder start= auto
    ECHO CHANGING Windows Backup
    sc config SDRSVC start= demand
    ECHO CHANGING Windows Biometric Service
    sc config WbioSrvc start= demand
    ECHO CHANGING Windows CardSpace
    sc config idsvc start= demand
    ECHO CHANGING Windows Color System
    sc config WcsPlugInService start= demand
    ECHO CHANGING Windows Connect Now – Config Registrar
    sc config wcncsvc start= demand
    ECHO CHANGING Windows Defender
    sc config WinDefend start= delayed-auto
    ECHO CHANGING Windows Driver Foundation – User-mode Driver Framework
    sc config wudfsvc start= demand
    ECHO CHANGING Windows Error Reporting Service
    sc config WerSvc start= demand
    ECHO CHANGING Windows Event Collector
    sc config Wecsvc start= demand
    ECHO CHANGING Windows Event Log
    sc config EventLog start= auto
    ECHO CHANGING Windows Firewall
    sc config MpsSvc start= auto
    ECHO CHANGING Windows Font Cache Service
    sc config FontCache start= delayed-auto
    ECHO CHANGING Windows Image Acquisition (WIA)
    sc config StiSvc start= demand
    ECHO CHANGING Windows Installer
    sc config msiserver start= demand
    ECHO SKIPPING Windows Live Family Safety
    ECHO CHANGING Windows Management Instrumentation
    sc config Winmgmt start= auto
    ECHO SKIPPING Windows Media Center Receiver Service
    ECHO SKIPPING Windows Media Center Scheduler Service
    ECHO CHANGING Windows Media Player Network Sharing Service
    sc config WMPNetworkSvc start= demand
    ECHO CHANGING Windows Modules Installer
    sc config TrustedInstaller start= demand
    ECHO CHANGING Windows Presentation Foundation Font Cache 3.0.0.0
    sc config FontCache3.0.0.0 start= demand
    ECHO SKIPPING Windows Process Activation Service
    ECHO CHANGING Windows Remote Management (WS-Management)
    sc config WinRM start= demand
    ECHO CHANGING Windows Search
    sc config WSearch start= delayed-auto
    ECHO CHANGING Windows Time
    sc config W32Time start= demand
    ECHO CHANGING Windows Update
    sc config wuauserv start= delayed-auto
    ECHO CHANGING WinHTTP Web Proxy Auto-Discovery Service
    sc config WinHttpAutoProxySvc start= demand
    ECHO CHANGING Wired AutoConfig
    sc config dot3svc start= demand
    ECHO CHANGING WLAN AutoConfig
    sc config Wlansvc start= demand
    ECHO CHANGING WMI Performance Adapter
    sc config wmiApSrv start= demand
    ECHO CHANGING Workstation
    sc config LanmanWorkstation start= auto
    ECHO SKIPPING World Wide Web Publishing Service
    ECHO CHANGING WWAN AutoConfig
    sc config WwanSvc start= demand
    GOTO FINISHED
:END
 
:PREMIUM
    ECHO [OK] WINDOWS 7 SP1 - HOME-PREMIUM SETTINGS
    ECHO CHANGING ActiveX Installer
    sc config AxInstSV start= demand
    ECHO CHANGING Adaptive Brightness
    sc config SensrSvc start= demand
    ECHO CHANGING Application Experience
    sc config AeLookupSvc start= demand
    ECHO SKIPPING Application Host Helper Service
    ECHO CHANGING Application Identity
    sc config AppIDSvc start= demand
    ECHO CHANGING Application Information
    sc config Appinfo start= demand
    ECHO CHANGING Application Layer Gateway Service
    sc config ALG start= demand
    ECHO SKIPPING Application Management
    ECHO SKIPPING ASP.NET State Service
    ECHO CHANGING Background Intelligent Transfer Service
    sc config BITS start= demand
    ECHO CHANGING Base Filtering Engine
    sc config BFE start= auto
    ECHO CHANGING BitLocker Drive Encryption Service
    sc config BDESVC start= demand
    ECHO CHANGING Block Level Backup Engine Service
    sc config wbengine start= demand
    ECHO CHANGING Bluetooth Support Service
    sc config bthserv start= demand
    ECHO SKIPPING BranchCache
    ECHO CHANGING Certificate Propagation
    sc config CertPropSvc start= demand
    ECHO SKIPPING Client for NFS
    ECHO CHANGING CNG Key Isolation
    sc config KeyIso start= demand
    ECHO CHANGING COM+ Event System
    sc config EventSystem start= auto
    ECHO CHANGING COM+ System Application
    sc config COMSysApp start= demand
    ECHO CHANGING Computer Browser
    sc config Browser start= demand
    ECHO CHANGING Credential Manager
    sc config VaultSvc start= demand
    ECHO CHANGING Cryptographic Services
    sc config CryptSvc start= auto
    ECHO SKIPPING DCOM Server Process Launcher
 
    ECHO CHANGING Desktop Window Manager Session Manager
    sc config UxSms start= auto
    ECHO CHANGING DHCP Client
    sc config Dhcp start= auto
    ECHO CHANGING Diagnostic Policy Service
    sc config DPS start= auto
    ECHO CHANGING Diagnostic Service Host
    sc config WdiServiceHost start= demand
    ECHO CHANGING Diagnostic System Host
    sc config WdiSystemHost start= demand
    ECHO CHANGING Disk Defragmenter
    sc config defragsvc start= demand
    ECHO CHANGING Distributed Link Tracking Client
    sc config TrkWks start= auto
    ECHO CHANGING Distributed Transaction Coordinator
    sc config MSDTC start= demand
    ECHO CHANGING DNS Client
    sc config Dnscache start= auto
    ECHO CHANGING Encrypting File System (EFS)
    sc config EFS start= demand
    ECHO CHANGING Extensible Authentication Protocol
    sc config EapHost start= demand
    ECHO CHANGING Fax
    sc config Fax start= demand
    ECHO CHANGING Function Discovery Provider Host
    sc config fdPHost start= demand
    ECHO CHANGING Function Discovery Resource Publication
    sc config FDResPub start= auto
    ECHO SKIPPING Group Policy Client
 
    ECHO CHANGING Health Key and Certificate Management
    sc config hkmsvc start= demand
    ECHO CHANGING HomeGroup Listener
    sc config HomeGroupListener start= demand
    ECHO CHANGING HomeGroup Provider
    sc config HomeGroupProvider start= demand
    ECHO CHANGING Human Interface Device Access
    sc config hidserv start= demand
    ECHO SKIPPING IIS Admin Service
    ECHO CHANGING IKE and AuthIP IPsec Keying Modules
    sc config IKEEXT start= demand
    ECHO SKIPPING Indexing Service
    ECHO CHANGING Interactive Services Detection
    sc config UI0Detect start= demand
    ECHO CHANGING Internet Connection Sharing (ICS)
    sc config SharedAccess start= Disabled
    ECHO CHANGING IP Helper
    sc config iphlpsvc start= auto
    ECHO CHANGING IPsec Policy Agent
    sc config PolicyAgent start= demand
    ECHO CHANGING KtmRm for Distributed Transaction Coordinator
    sc config KtmRm start= demand
    ECHO CHANGING Link-Layer Topology Discovery Mapper
    sc config lltdsvc start= demand
    ECHO SKIPPING LPD Service
    ECHO CHANGING Media Center Extender Service
    sc config Mcx2Svc start= Disabled
    ECHO SKIPPING Message Queuing
    ECHO SKIPPING Message Queuing Triggers
    ECHO CHANGING Microsoft .NET Framework NGEN v2.0.50727
    sc config clr_optimization_v2.0.50727 start= demand
    ECHO SKIPPING Microsoft FTP Service
    ECHO CHANGING Microsoft iSCSI Initiator Service
    sc config MSiSCSI start= demand
    ECHO CHANGING Microsoft Software Shadow Copy Provider
    sc config swprv start= demand
    ECHO CHANGING Multimedia Class Scheduler
    sc config MMCSS start= auto
    ECHO SKIPPING Net.Msmq Listener Adapter
    ECHO SKIPPING Net.Pipe Listener Adapter
    ECHO SKIPPING Net.Tcp Listener Adapter
    ECHO CHANGING Net.Tcp Port Sharing Service
    sc config NetTcpPortSharing start= Disabled
    ECHO CHANGING Netlogon
    sc config Netlogon start= demand
    ECHO CHANGING Network Access Protection Agent
    sc config napagent start= demand
    ECHO CHANGING Network Connections
    sc config Netman start= demand
    ECHO CHANGING Network List Service
    sc config netprofm start= demand
    ECHO CHANGING Network Location Awareness
    sc config NlaSvc start= auto
    ECHO CHANGING Network Store Interface Service
    sc config nsi start= auto
    ECHO SKIPPING Offline Files
    ECHO CHANGING Parental Controls
    sc config WPCSvc start= demand
    ECHO CHANGING Peer Name Resolution Protocol
    sc config PNRPsvc start= demand
    ECHO CHANGING Peer Networking Grouping
    sc config p2psvc start= demand
    ECHO CHANGING Peer Networking Identity Manager
    sc config p2pimsvc start= demand
    ECHO CHANGING Performance Logs and Alerts
    sc config pla start= demand
    ECHO CHANGING Plug and Play
    sc config PlugPlay start= auto
    ECHO CHANGING PnP-X IP Bus Enumerator
    sc config IPBusEnum start= demand
    ECHO CHANGING PNRP Machine Name Publication Service
    sc config PNRPAutoReg start= demand
    ECHO CHANGING Portable Device Enumerator Service
    sc config WPDBusEnum start= demand
    ECHO CHANGING Power
    sc config Power start= auto
    ECHO CHANGING Print Spooler
    sc config Spooler start= auto
    ECHO CHANGING Problem Reports and Solutions Control Panel Support
    sc config wercplsupport start= demand
    ECHO CHANGING Program Compatibility Assistant Service
    sc config PcaSvc start= demand
    ECHO CHANGING Protected Storage
    sc config ProtectedStorage start= demand
    ECHO CHANGING Quality Windows Audio Video Experience
    sc config QWAVE start= demand
    ECHO CHANGING Remote Access Auto Connection Manager
    sc config RasAuto start= demand
    ECHO CHANGING Remote Access Connection Manager
    sc config RasMan start= demand
    ECHO CHANGING Remote Desktop Configuration
    sc config SessionEnv start= demand
    ECHO CHANGING Remote Desktop Services
    sc config TermService start= demand
    ECHO SKIPPING Remote Desktop Services UserMode Port Redirector
    ECHO SKIPPING Remote Procedure Call (RPC)
 
    ECHO SKIPPING Remote Procedure Call (RPC) Locator
 
    ECHO CHANGING Remote Registry
    sc config RemoteRegistry start= demand
    ECHO SKIPPING RIP Listener
    ECHO CHANGING Routing and Remote Access
    sc config RemoteAccess start= Disabled
    ECHO SKIPPING RPC Endpoint Mapper
    sc config RpcEptMapper start= auto
    ECHO SKIPPING SeaPort
    ECHO CHANGING Secondary Logon
    sc config seclogon start= demand
    ECHO CHANGING Secure Socket Tunneling Protocol Service
    sc config SstpSvc start= demand
    ECHO CHANGING Security Accounts Manager
    sc config SamSs start= auto
    ECHO CHANGING Security Center
    sc config wscsvc start= delayed-auto
    ECHO CHANGING Server
    sc config LanmanServer start= auto
    ECHO CHANGING Shell Hardware Detection
    sc config ShellHWDetection start= auto
    ECHO SKIPPING Simple TCP/IP Services
    ECHO CHANGING Smart Card
    sc config SCardSvr start= demand
    ECHO CHANGING Smart Card Removal Policy
    sc config SCPolicySvc start= demand
    ECHO SKIPPING SNMP Service
    ECHO CHANGING SNMP Trap
    sc config SNMPTRAP start= demand
    ECHO CHANGING Software Protection
    sc config sppsvc start= delayed-auto
    ECHO CHANGING SPP Notification Service
    sc config sppuinotify start= demand
    ECHO CHANGING SSDP Discovery
    sc config SSDPSRV start= demand
    ECHO SKIPPING Storage Service
    ECHO CHANGING Superfetch
    sc config SysMain start= auto
    ECHO CHANGING System Event Notification Service
    sc config SENS start= auto
    ECHO CHANGING Tablet PC Input Service
    sc config TabletInputService start= demand
    ECHO SKIPPING Task Scheduler
 
    ECHO CHANGING TCP/IP NetBIOS Helper
    sc config lmhosts start= auto
    ECHO CHANGING Telephony
    sc config TapiSrv start= demand
    ECHO SKIPPING Telnet
    ECHO CHANGING Themes
    sc config Themes start= auto
    ECHO CHANGING Thread Ordering Server
    sc config THREADORDER start= demand
    ECHO CHANGING TPM Base Services
    sc config TBS start= demand
    ECHO CHANGING UPnP Device Host
    sc config upnphost start= demand
    ECHO CHANGING User Profile Service
    sc config ProfSvc start= auto
    ECHO CHANGING Virtual Disk
    sc config vds start= demand
    ECHO CHANGING Volume Shadow Copy
    sc config VSS start= demand
    ECHO SKIPPING Web Management Service
    ECHO CHANGING WebClient
    sc config WebClient start= demand
    ECHO CHANGING Windows Audio
    sc config AudioSrv start= auto
    ECHO CHANGING Windows Audio Endpoint Builder
    sc config AudioEndpointBuilder start= auto
    ECHO CHANGING Windows Backup
    sc config SDRSVC start= demand
    ECHO CHANGING Windows Biometric Service
    sc config WbioSrvc start= demand
    ECHO CHANGING Windows CardSpace
    sc config idsvc start= demand
    ECHO CHANGING Windows Color System
    sc config WcsPlugInService start= demand
    ECHO CHANGING Windows Connect Now – Config Registrar
    sc config wcncsvc start= demand
    ECHO CHANGING Windows Defender
    sc config WinDefend start= delayed-auto
    ECHO CHANGING Windows Driver Foundation – User-mode Driver Framework
    sc config wudfsvc start= demand
    ECHO CHANGING Windows Error Reporting Service
    sc config WerSvc start= demand
    ECHO CHANGING Windows Event Collector
    sc config Wecsvc start= demand
    ECHO CHANGING Windows Event Log
    sc config EventLog start= auto
    ECHO CHANGING Windows Firewall
    sc config MpsSvc start= auto
    ECHO CHANGING Windows Font Cache Service
    sc config FontCache start= delayed-auto
    ECHO CHANGING Windows Image Acquisition (WIA)
    sc config StiSvc start= demand
    ECHO CHANGING Windows Installer
    sc config msiserver start= demand
    ECHO SKIPPING Windows Live Family Safety
    ECHO CHANGING Windows Management Instrumentation
    sc config Winmgmt start= auto
    ECHO CHANGING Windows Media Center Receiver Service
    sc config ehRecvr start= demand
    ECHO CHANGING Windows Media Center Scheduler Service
    sc config ehSched start= demand
    ECHO CHANGING Windows Media Player Network Sharing Service
    sc config WMPNetworkSvc start= demand
    ECHO CHANGING Windows Modules Installer
    sc config TrustedInstaller start= demand
    ECHO CHANGING Windows Presentation Foundation Font Cache 3.0.0.0
    sc config FontCache3.0.0.0 start= demand
    ECHO SKIPPING Windows Process Activation Service
    ECHO CHANGING Windows Remote Management (WS-Management)
    sc config WinRM start= demand
    ECHO CHANGING Windows Search
    sc config WSearch start= delayed-auto
    ECHO CHANGING Windows Time
    sc config W32Time start= demand
    ECHO CHANGING Windows Update
    sc config wuauserv start= delayed-auto
    ECHO CHANGING WinHTTP Web Proxy Auto-Discovery Service
    sc config WinHttpAutoProxySvc start= demand
    ECHO CHANGING Wired AutoConfig
    sc config dot3svc start= demand
    ECHO CHANGING WLAN AutoConfig
    sc config Wlansvc start= demand
    ECHO CHANGING WMI Performance Adapter
    sc config wmiApSrv start= demand
    ECHO CHANGING Workstation
    sc config LanmanWorkstation start= auto
    ECHO SKIPPING World Wide Web Publishing Service
    ECHO CHANGING WWAN AutoConfig
    sc config WwanSvc start= demand
    GOTO FINISHED
:END
 
:PRO
    ECHO [OK] WINDOWS 7 SP1 - PROFESSIONAL SETTINGS
    ECHO CHANGING ActiveX Installer
    sc config AxInstSV start= demand
    ECHO CHANGING Adaptive Brightness
    sc config SensrSvc start= demand
    ECHO CHANGING Application Experience
    sc config AeLookupSvc start= demand
    ECHO SKIPPING Application Host Helper Service
    ECHO CHANGING Application Identity
    sc config AppIDSvc start= demand
    ECHO CHANGING Application Information
    sc config Appinfo start= demand
    ECHO CHANGING Application Layer Gateway Service
    sc config ALG start= demand
    ECHO CHANGING Application Management
    sc config AppMgmt start= demand
    ECHO SKIPPING ASP.NET State Service
    ECHO CHANGING Background Intelligent Transfer Service
    sc config BITS start= demand
    ECHO CHANGING Base Filtering Engine
    sc config BFE start= auto
    ECHO CHANGING BitLocker Drive Encryption Service
    sc config BDESVC start= demand
    ECHO CHANGING Block Level Backup Engine Service
    sc config wbengine start= demand
    ECHO CHANGING Bluetooth Support Service
    sc config bthserv start= demand
    ECHO CHANGING BranchCache
    sc config PeerDistSvc start= demand
    ECHO CHANGING Certificate Propagation
    sc config CertPropSvc start= demand
    ECHO SKIPPING Client for NFS
    ECHO CHANGING CNG Key Isolation
    sc config KeyIso start= demand
    ECHO CHANGING COM+ Event System
    sc config EventSystem start= auto
    ECHO CHANGING COM+ System Application
    sc config COMSysApp start= demand
    ECHO CHANGING Computer Browser
    sc config Browser start= demand
    ECHO CHANGING Credential Manager
    sc config VaultSvc start= demand
    ECHO CHANGING Cryptographic Services
    sc config CryptSvc start= auto
    ECHO SKIPPING DCOM Server Process Launcher
 
    ECHO CHANGING Desktop Window Manager Session Manager
    sc config UxSms start= auto
    ECHO CHANGING DHCP Client
    sc config Dhcp start= auto
    ECHO CHANGING Diagnostic Policy Service
    sc config DPS start= auto
    ECHO CHANGING Diagnostic Service Host
    sc config WdiServiceHost start= demand
    ECHO CHANGING Diagnostic System Host
    sc config WdiSystemHost start= demand
    ECHO CHANGING Disk Defragmenter
    sc config defragsvc start= demand
    ECHO CHANGING Distributed Link Tracking Client
    sc config TrkWks start= auto
    ECHO CHANGING Distributed Transaction Coordinator
    sc config MSDTC start= demand
    ECHO CHANGING DNS Client
    sc config Dnscache start= auto
    ECHO CHANGING Encrypting File System (EFS)
    sc config EFS start= demand
    ECHO CHANGING Extensible Authentication Protocol
    sc config EapHost start= demand
    ECHO CHANGING Fax
    sc config Fax start= demand
    ECHO CHANGING Function Discovery Provider Host
    sc config fdPHost start= demand
    ECHO CHANGING Function Discovery Resource Publication
    sc config FDResPub start= auto
    ECHO SKIPPING Group Policy Client
 
    ECHO CHANGING Health Key and Certificate Management
    sc config hkmsvc start= demand
    ECHO CHANGING HomeGroup Listener
    sc config HomeGroupListener start= demand
    ECHO CHANGING HomeGroup Provider
    sc config HomeGroupProvider start= demand
    ECHO CHANGING Human Interface Device Access
    sc config hidserv start= demand
    ECHO SKIPPING IIS Admin Service
    ECHO CHANGING IKE and AuthIP IPsec Keying Modules
    sc config IKEEXT start= demand
    ECHO SKIPPING Indexing Service
    ECHO CHANGING Interactive Services Detection
    sc config UI0Detect start= demand
    ECHO CHANGING Internet Connection Sharing (ICS)
    sc config SharedAccess start= Disabled
    ECHO CHANGING IP Helper
    sc config iphlpsvc start= auto
    ECHO CHANGING IPsec Policy Agent
    sc config PolicyAgent start= demand
    ECHO CHANGING KtmRm for Distributed Transaction Coordinator
    sc config KtmRm start= demand
    ECHO CHANGING Link-Layer Topology Discovery Mapper
    sc config lltdsvc start= demand
    ECHO SKIPPING LPD Service
    ECHO CHANGING Media Center Extender Service
    sc config Mcx2Svc start= Disabled
    ECHO SKIPPING Message Queuing
    ECHO SKIPPING Message Queuing Triggers
    ECHO CHANGING Microsoft .NET Framework NGEN v2.0.50727
    sc config clr_optimization_v2.0.50727 start= delayed-auto
    ECHO SKIPPING Microsoft FTP Service
    ECHO CHANGING Microsoft iSCSI Initiator Service
    sc config MSiSCSI start= demand
    ECHO CHANGING Microsoft Software Shadow Copy Provider
    sc config swprv start= demand
    ECHO CHANGING Multimedia Class Scheduler
    sc config MMCSS start= auto
    ECHO SKIPPING Net.Msmq Listener Adapter
    ECHO SKIPPING Net.Pipe Listener Adapter
    ECHO SKIPPING Net.Tcp Listener Adapter
    ECHO CHANGING Net.Tcp Port Sharing Service
    sc config NetTcpPortSharing start= Disabled
    ECHO CHANGING Netlogon
    sc config Netlogon start= demand
    ECHO CHANGING Network Access Protection Agent
    sc config napagent start= demand
    ECHO CHANGING Network Connections
    sc config Netman start= demand
    ECHO CHANGING Network List Service
    sc config netprofm start= demand
    ECHO CHANGING Network Location Awareness
    sc config NlaSvc start= auto
    ECHO CHANGING Network Store Interface Service
    sc config nsi start= auto
    ECHO CHANGING Offline Files
    sc config CscService start= auto
    ECHO CHANGING Parental Controls
    sc config WPCSvc start= demand
    ECHO CHANGING Peer Name Resolution Protocol
    sc config PNRPsvc start= demand
    ECHO CHANGING Peer Networking Grouping
    sc config p2psvc start= demand
    ECHO CHANGING Peer Networking Identity Manager
    sc config p2pimsvc start= demand
    ECHO CHANGING Performance Logs and Alerts
    sc config pla start= demand
    ECHO CHANGING Plug and Play
    sc config PlugPlay start= auto
    ECHO CHANGING PnP-X IP Bus Enumerator
    sc config IPBusEnum start= demand
    ECHO CHANGING PNRP Machine Name Publication Service
    sc config PNRPAutoReg start= demand
    ECHO CHANGING Portable Device Enumerator Service
    sc config WPDBusEnum start= demand
    ECHO CHANGING Power
    sc config Power start= auto
    ECHO CHANGING Print Spooler
    sc config Spooler start= auto
    ECHO CHANGING Problem Reports and Solutions Control Panel Support
    sc config wercplsupport start= demand
    ECHO CHANGING Program Compatibility Assistant Service
    sc config PcaSvc start= demand
    ECHO CHANGING Protected Storage
    sc config ProtectedStorage start= demand
    ECHO CHANGING Quality Windows Audio Video Experience
    sc config QWAVE start= demand
    ECHO CHANGING Remote Access Auto Connection Manager
    sc config RasAuto start= demand
    ECHO CHANGING Remote Access Connection Manager
    sc config RasMan start= demand
    ECHO CHANGING Remote Desktop Configuration
    sc config SessionEnv start= demand
    ECHO CHANGING Remote Desktop Services
    sc config TermService start= demand
    ECHO CHANGING Remote Desktop Services UserMode Port Redirector
    sc config UmRdpService start= demand
    ECHO SKIPPING Remote Procedure Call (RPC)
 
    ECHO SKIPPING Remote Procedure Call (RPC) Locator
 
    ECHO CHANGING Remote Registry
    sc config RemoteRegistry start= demand
    ECHO SKIPPING RIP Listener
    ECHO CHANGING Routing and Remote Access
    sc config RemoteAccess start= Disabled
    ECHO SKIPPING RPC Endpoint Mapper
    sc config RpcEptMapper start= auto
    ECHO SKIPPING SeaPort
    ECHO CHANGING Secondary Logon
    sc config seclogon start= demand
    ECHO CHANGING Secure Socket Tunneling Protocol Service
    sc config SstpSvc start= demand
    ECHO CHANGING Security Accounts Manager
    sc config SamSs start= auto
    ECHO CHANGING Security Center
    sc config wscsvc start= delayed-auto
    ECHO CHANGING Server
    sc config LanmanServer start= auto
    ECHO CHANGING Shell Hardware Detection
    sc config ShellHWDetection start= auto
    ECHO SKIPPING Simple TCP/IP Services
    ECHO CHANGING Smart Card
    sc config SCardSvr start= demand
    ECHO CHANGING Smart Card Removal Policy
    sc config SCPolicySvc start= demand
    ECHO SKIPPING SNMP Service
    ECHO CHANGING SNMP Trap
    sc config SNMPTRAP start= demand
    ECHO CHANGING Software Protection
    sc config sppsvc start= delayed-auto
    ECHO CHANGING SPP Notification Service
    sc config sppuinotify start= demand
    ECHO CHANGING SSDP Discovery
    sc config SSDPSRV start= demand
    ECHO CHANGING Storage Service
    sc config StorSvc start= demand
    ECHO CHANGING Superfetch
    sc config SysMain start= auto
    ECHO CHANGING System Event Notification Service
    sc config SENS start= auto
    ECHO CHANGING Tablet PC Input Service
    sc config TabletInputService start= demand
    ECHO SKIPPING Task Scheduler
 
    ECHO CHANGING TCP/IP NetBIOS Helper
    sc config lmhosts start= auto
    ECHO CHANGING Telephony
    sc config TapiSrv start= demand
    ECHO SKIPPING Telnet
    ECHO CHANGING Themes
    sc config Themes start= auto
    ECHO CHANGING Thread Ordering Server
    sc config THREADORDER start= demand
    ECHO CHANGING TPM Base Services
    sc config TBS start= demand
    ECHO CHANGING UPnP Device Host
    sc config upnphost start= demand
    ECHO CHANGING User Profile Service
    sc config ProfSvc start= auto
    ECHO CHANGING Virtual Disk
    sc config vds start= demand
    ECHO CHANGING Volume Shadow Copy
    sc config VSS start= demand
    ECHO SKIPPING Web Management Service
    ECHO CHANGING WebClient
    sc config WebClient start= demand
    ECHO CHANGING Windows Audio
    sc config AudioSrv start= auto
    ECHO CHANGING Windows Audio Endpoint Builder
    sc config AudioEndpointBuilder start= auto
    ECHO CHANGING Windows Backup
    sc config SDRSVC start= demand
    ECHO CHANGING Windows Biometric Service
    sc config WbioSrvc start= demand
    ECHO CHANGING Windows CardSpace
    sc config idsvc start= demand
    ECHO CHANGING Windows Color System
    sc config WcsPlugInService start= demand
    ECHO CHANGING Windows Connect Now – Config Registrar
    sc config wcncsvc start= demand
    ECHO CHANGING Windows Defender
    sc config WinDefend start= delayed-auto
    ECHO CHANGING Windows Driver Foundation – User-mode Driver Framework
    sc config wudfsvc start= demand
    ECHO CHANGING Windows Error Reporting Service
    sc config WerSvc start= demand
    ECHO CHANGING Windows Event Collector
    sc config Wecsvc start= demand
    ECHO CHANGING Windows Event Log
    sc config EventLog start= auto
    ECHO CHANGING Windows Firewall
    sc config MpsSvc start= auto
    ECHO CHANGING Windows Font Cache Service
    sc config FontCache start= delayed-auto
    ECHO CHANGING Windows Image Acquisition (WIA)
    sc config StiSvc start= demand
    ECHO CHANGING Windows Installer
    sc config msiserver start= demand
    ECHO SKIPPING Windows Live Family Safety
    ECHO CHANGING Windows Management Instrumentation
    sc config Winmgmt start= auto
    ECHO CHANGING Windows Media Center Receiver Service
    sc config ehRecvr start= demand
    ECHO CHANGING Windows Media Center Scheduler Service
    sc config ehSched start= demand
    ECHO CHANGING Windows Media Player Network Sharing Service
    sc config WMPNetworkSvc start= demand
    ECHO CHANGING Windows Modules Installer
    sc config TrustedInstaller start= demand
    ECHO CHANGING Windows Presentation Foundation Font Cache 3.0.0.0
    sc config FontCache3.0.0.0 start= demand
    ECHO SKIPPING Windows Process Activation Service
    ECHO CHANGING Windows Remote Management (WS-Management)
    sc config WinRM start= demand
    ECHO CHANGING Windows Search
    sc config WSearch start= delayed-auto
    ECHO CHANGING Windows Time
    sc config W32Time start= demand
    ECHO CHANGING Windows Update
    sc config wuauserv start= delayed-auto
    ECHO CHANGING WinHTTP Web Proxy Auto-Discovery Service
    sc config WinHttpAutoProxySvc start= demand
    ECHO CHANGING Wired AutoConfig
    sc config dot3svc start= demand
    ECHO CHANGING WLAN AutoConfig
    sc config Wlansvc start= demand
    ECHO CHANGING WMI Performance Adapter
    sc config wmiApSrv start= demand
    ECHO CHANGING Workstation
    sc config LanmanWorkstation start= auto
    ECHO SKIPPING World Wide Web Publishing Service
    ECHO CHANGING WWAN AutoConfig
    sc config WwanSvc start= demand
    GOTO FINISHED
:END
 
:ULTIMATE
    ECHO [OK] WINDOWS 7 SP1 - ULTIMATE SETTINGS
    ECHO CHANGING ActiveX Installer
    sc config AxInstSV start= demand
    ECHO CHANGING Adaptive Brightness
    sc config SensrSvc start= demand
    ECHO CHANGING Application Experience
    sc config AeLookupSvc start= demand
    ECHO SKIPPING Application Host Helper Service
    ECHO CHANGING Application Identity
    sc config AppIDSvc start= demand
    ECHO CHANGING Application Information
    sc config Appinfo start= demand
    ECHO CHANGING Application Layer Gateway Service
    sc config ALG start= demand
    ECHO CHANGING Application Management
    sc config AppMgmt start= demand
    ECHO SKIPPING ASP.NET State Service
    ECHO CHANGING Background Intelligent Transfer Service
    sc config BITS start= demand
    ECHO CHANGING Base Filtering Engine
    sc config BFE start= auto
    ECHO CHANGING BitLocker Drive Encryption Service
    sc config BDESVC start= demand
    ECHO CHANGING Block Level Backup Engine Service
    sc config wbengine start= demand
    ECHO CHANGING Bluetooth Support Service
    sc config bthserv start= demand
    ECHO CHANGING BranchCache
    sc config PeerDistSvc start= demand
    ECHO CHANGING Certificate Propagation
    sc config CertPropSvc start= demand
    ECHO SKIPPING Client for NFS
    ECHO CHANGING CNG Key Isolation
    sc config KeyIso start= demand
    ECHO CHANGING COM+ Event System
    sc config EventSystem start= auto
    ECHO CHANGING COM+ System Application
    sc config COMSysApp start= demand
    ECHO CHANGING Computer Browser
    sc config Browser start= demand
    ECHO CHANGING Credential Manager
    sc config VaultSvc start= demand
    ECHO CHANGING Cryptographic Services
    sc config CryptSvc start= auto
    ECHO SKIPPING DCOM Server Process Launcher
 
    ECHO CHANGING Desktop Window Manager Session Manager
    sc config UxSms start= auto
    ECHO CHANGING DHCP Client
    sc config Dhcp start= auto
    ECHO CHANGING Diagnostic Policy Service
    sc config DPS start= auto
    ECHO CHANGING Diagnostic Service Host
    sc config WdiServiceHost start= demand
    ECHO CHANGING Diagnostic System Host
    sc config WdiSystemHost start= demand
    ECHO CHANGING Disk Defragmenter
    sc config defragsvc start= demand
    ECHO CHANGING Distributed Link Tracking Client
    sc config TrkWks start= auto
    ECHO CHANGING Distributed Transaction Coordinator
    sc config MSDTC start= demand
    ECHO CHANGING DNS Client
    sc config Dnscache start= auto
    ECHO CHANGING Encrypting File System (EFS)
    sc config EFS start= demand
    ECHO CHANGING Extensible Authentication Protocol
    sc config EapHost start= demand
    ECHO CHANGING Fax
    sc config Fax start= demand
    ECHO CHANGING Function Discovery Provider Host
    sc config fdPHost start= demand
    ECHO CHANGING Function Discovery Resource Publication
    sc config FDResPub start= auto
    ECHO SKIPPING Group Policy Client
 
    ECHO CHANGING Health Key and Certificate Management
    sc config hkmsvc start= demand
    ECHO CHANGING HomeGroup Listener
    sc config HomeGroupListener start= demand
    ECHO CHANGING HomeGroup Provider
    sc config HomeGroupProvider start= demand
    ECHO CHANGING Human Interface Device Access
    sc config hidserv start= demand
    ECHO SKIPPING IIS Admin Service
    ECHO CHANGING IKE and AuthIP IPsec Keying Modules
    sc config IKEEXT start= demand
    ECHO SKIPPING Indexing Service
    ECHO CHANGING Interactive Services Detection
    sc config UI0Detect start= demand
    ECHO CHANGING Internet Connection Sharing (ICS)
    sc config SharedAccess start= Disabled
    ECHO CHANGING IP Helper
    sc config iphlpsvc start= auto
    ECHO CHANGING IPsec Policy Agent
    sc config PolicyAgent start= demand
    ECHO CHANGING KtmRm for Distributed Transaction Coordinator
    sc config KtmRm start= demand
    ECHO CHANGING Link-Layer Topology Discovery Mapper
    sc config lltdsvc start= demand
    ECHO SKIPPING LPD Service
    ECHO CHANGING Media Center Extender Service
    sc config Mcx2Svc start= Disabled
    ECHO SKIPPING Message Queuing
    ECHO SKIPPING Message Queuing Triggers
    ECHO CHANGING Microsoft .NET Framework NGEN v2.0.50727
    sc config clr_optimization_v2.0.50727 start= demand
    ECHO SKIPPING Microsoft FTP Service
    ECHO CHANGING Microsoft iSCSI Initiator Service
    sc config MSiSCSI start= demand
    ECHO CHANGING Microsoft Software Shadow Copy Provider
    sc config swprv start= demand
    ECHO CHANGING Multimedia Class Scheduler
    sc config MMCSS start= auto
    ECHO SKIPPING Net.Msmq Listener Adapter
    ECHO SKIPPING Net.Pipe Listener Adapter
    ECHO SKIPPING Net.Tcp Listener Adapter
    ECHO CHANGING Net.Tcp Port Sharing Service
    sc config NetTcpPortSharing start= Disabled
    ECHO CHANGING Netlogon
    sc config Netlogon start= demand
    ECHO CHANGING Network Access Protection Agent
    sc config napagent start= demand
    ECHO CHANGING Network Connections
    sc config Netman start= demand
    ECHO CHANGING Network List Service
    sc config netprofm start= demand
    ECHO CHANGING Network Location Awareness
    sc config NlaSvc start= auto
    ECHO CHANGING Network Store Interface Service
    sc config nsi start= auto
    ECHO CHANGING Offline Files
    sc config CscService start= auto
    ECHO CHANGING Parental Controls
    sc config WPCSvc start= demand
    ECHO CHANGING Peer Name Resolution Protocol
    sc config PNRPsvc start= demand
    ECHO CHANGING Peer Networking Grouping
    sc config p2psvc start= demand
    ECHO CHANGING Peer Networking Identity Manager
    sc config p2pimsvc start= demand
    ECHO CHANGING Performance Logs and Alerts
    sc config pla start= demand
    ECHO CHANGING Plug and Play
    sc config PlugPlay start= auto
    ECHO CHANGING PnP-X IP Bus Enumerator
    sc config IPBusEnum start= demand
    ECHO CHANGING PNRP Machine Name Publication Service
    sc config PNRPAutoReg start= demand
    ECHO CHANGING Portable Device Enumerator Service
    sc config WPDBusEnum start= demand
    ECHO CHANGING Power
    sc config Power start= auto
    ECHO CHANGING Print Spooler
    sc config Spooler start= auto
    ECHO CHANGING Problem Reports and Solutions Control Panel Support
    sc config wercplsupport start= demand
    ECHO CHANGING Program Compatibility Assistant Service
    sc config PcaSvc start= demand
    ECHO CHANGING Protected Storage
    sc config ProtectedStorage start= demand
    ECHO CHANGING Quality Windows Audio Video Experience
    sc config QWAVE start= demand
    ECHO CHANGING Remote Access Auto Connection Manager
    sc config RasAuto start= demand
    ECHO CHANGING Remote Access Connection Manager
    sc config RasMan start= demand
    ECHO CHANGING Remote Desktop Configuration
    sc config SessionEnv start= demand
    ECHO CHANGING Remote Desktop Services
    sc config TermService start= demand
    ECHO CHANGING Remote Desktop Services UserMode Port Redirector
    sc config UmRdpService start= demand
    ECHO SKIPPING Remote Procedure Call (RPC)
 
    ECHO SKIPPING Remote Procedure Call (RPC) Locator
 
    ECHO CHANGING Remote Registry
    sc config RemoteRegistry start= demand
    ECHO SKIPPING RIP Listener
    ECHO CHANGING Routing and Remote Access
    sc config RemoteAccess start= Disabled
    ECHO SKIPPING RPC Endpoint Mapper
    sc config RpcEptMapper start= auto
    ECHO SKIPPING SeaPort
    ECHO CHANGING Secondary Logon
    sc config seclogon start= demand
    ECHO CHANGING Secure Socket Tunneling Protocol Service
    sc config SstpSvc start= demand
    ECHO CHANGING Security Accounts Manager
    sc config SamSs start= auto
    ECHO CHANGING Security Center
    sc config wscsvc start= delayed-auto
    ECHO CHANGING Server
    sc config LanmanServer start= auto
    ECHO CHANGING Shell Hardware Detection
    sc config ShellHWDetection start= auto
    ECHO SKIPPING Simple TCP/IP Services
    ECHO CHANGING Smart Card
    sc config SCardSvr start= demand
    ECHO CHANGING Smart Card Removal Policy
    sc config SCPolicySvc start= demand
    ECHO SKIPPING SNMP Service
    ECHO CHANGING SNMP Trap
    sc config SNMPTRAP start= demand
    ECHO CHANGING Software Protection
    sc config sppsvc start= delayed-auto
    ECHO CHANGING SPP Notification Service
    sc config sppuinotify start= demand
    ECHO CHANGING SSDP Discovery
    sc config SSDPSRV start= demand
    ECHO SKIPPING Storage Service
    ECHO CHANGING Superfetch
    sc config SysMain start= auto
    ECHO CHANGING System Event Notification Service
    sc config SENS start= auto
    ECHO CHANGING Tablet PC Input Service
    sc config TabletInputService start= demand
    ECHO SKIPPING Task Scheduler
 
    ECHO CHANGING TCP/IP NetBIOS Helper
    sc config lmhosts start= auto
    ECHO CHANGING Telephony
    sc config TapiSrv start= demand
    ECHO SKIPPING Telnet
    ECHO CHANGING Themes
    sc config Themes start= auto
    ECHO CHANGING Thread Ordering Server
    sc config THREADORDER start= demand
    ECHO CHANGING TPM Base Services
    sc config TBS start= demand
    ECHO CHANGING UPnP Device Host
    sc config upnphost start= demand
    ECHO CHANGING User Profile Service
    sc config ProfSvc start= auto
    ECHO CHANGING Virtual Disk
    sc config vds start= demand
    ECHO CHANGING Volume Shadow Copy
    sc config VSS start= demand
    ECHO SKIPPING Web Management Service
    ECHO CHANGING WebClient
    sc config WebClient start= demand
    ECHO CHANGING Windows Audio
    sc config AudioSrv start= auto
    ECHO CHANGING Windows Audio Endpoint Builder
    sc config AudioEndpointBuilder start= auto
    ECHO CHANGING Windows Backup
    sc config SDRSVC start= demand
    ECHO CHANGING Windows Biometric Service
    sc config WbioSrvc start= demand
    ECHO CHANGING Windows CardSpace
    sc config idsvc start= demand
    ECHO CHANGING Windows Color System
    sc config WcsPlugInService start= demand
    ECHO CHANGING Windows Connect Now – Config Registrar
    sc config wcncsvc start= demand
    ECHO CHANGING Windows Defender
    sc config WinDefend start= delayed-auto
    ECHO CHANGING Windows Driver Foundation – User-mode Driver Framework
    sc config wudfsvc start= demand
    ECHO CHANGING Windows Error Reporting Service
    sc config WerSvc start= demand
    ECHO CHANGING Windows Event Collector
    sc config Wecsvc start= demand
    ECHO CHANGING Windows Event Log
    sc config EventLog start= auto
    ECHO CHANGING Windows Firewall
    sc config MpsSvc start= auto
    ECHO CHANGING Windows Font Cache Service
    sc config FontCache start= delayed-auto
    ECHO CHANGING Windows Image Acquisition (WIA)
    sc config StiSvc start= demand
    ECHO CHANGING Windows Installer
    sc config msiserver start= demand
    ECHO SKIPPING Windows Live Family Safety
    ECHO CHANGING Windows Management Instrumentation
    sc config Winmgmt start= auto
    ECHO CHANGING Windows Media Center Receiver Service
    sc config ehRecvr start= demand
    ECHO CHANGING Windows Media Center Scheduler Service
    sc config ehSched start= demand
    ECHO CHANGING Windows Media Player Network Sharing Service
    sc config WMPNetworkSvc start= demand
    ECHO CHANGING Windows Modules Installer
    sc config TrustedInstaller start= demand
    ECHO CHANGING Windows Presentation Foundation Font Cache 3.0.0.0
    sc config FontCache3.0.0.0 start= demand
    ECHO SKIPPING Windows Process Activation Service
    ECHO CHANGING Windows Remote Management (WS-Management)
    sc config WinRM start= demand
    ECHO CHANGING Windows Search
    sc config WSearch start= delayed-auto
    ECHO CHANGING Windows Time
    sc config W32Time start= demand
    ECHO CHANGING Windows Update
    sc config wuauserv start= delayed-auto
    ECHO CHANGING WinHTTP Web Proxy Auto-Discovery Service
    sc config WinHttpAutoProxySvc start= demand
    ECHO CHANGING Wired AutoConfig
    sc config dot3svc start= demand
    ECHO CHANGING WLAN AutoConfig
    sc config Wlansvc start= demand
    ECHO CHANGING WMI Performance Adapter
    sc config wmiApSrv start= demand
    ECHO CHANGING Workstation
    sc config LanmanWorkstation start= auto
    ECHO SKIPPING World Wide Web Publishing Service
    ECHO CHANGING WWAN AutoConfig
    sc config WwanSvc start= demand
GOTO FINISHED
:END
 
:ENTERPRISE
    ECHO [OK] WINDOWS 7 SP1 - ENTERPRISE SETTINGS
    ECHO CHANGING ActiveX Installer
    sc config AxInstSV start= demand
    ECHO CHANGING Adaptive Brightness
    sc config SensrSvc start= demand
    ECHO CHANGING Application Experience
    sc config AeLookupSvc start= demand
    ECHO SKIPPING Application Host Helper Service
    ECHO CHANGING Application Identity
    sc config AppIDSvc start= demand
    ECHO CHANGING Application Information
    sc config Appinfo start= demand
    ECHO CHANGING Application Layer Gateway Service
    sc config ALG start= demand
    ECHO CHANGING Application Management
    sc config AppMgmt start= demand
    ECHO SKIPPING ASP.NET State Service
    ECHO CHANGING Background Intelligent Transfer Service
    sc config BITS start= demand
    ECHO CHANGING Base Filtering Engine
    sc config BFE start= auto
    ECHO CHANGING BitLocker Drive Encryption Service
    sc config BDESVC start= demand
    ECHO CHANGING Block Level Backup Engine Service
    sc config wbengine start= demand
    ECHO CHANGING Bluetooth Support Service
    sc config bthserv start= demand
    ECHO CHANGING BranchCache
    sc config PeerDistSvc start= demand
    ECHO CHANGING Certificate Propagation
    sc config CertPropSvc start= demand
    ECHO SKIPPING Client for NFS
    ECHO CHANGING CNG Key Isolation
    sc config KeyIso start= demand
    ECHO CHANGING COM+ Event System
    sc config EventSystem start= auto
    ECHO CHANGING COM+ System Application
    sc config COMSysApp start= demand
    ECHO CHANGING Computer Browser
    sc config Browser start= demand
    ECHO CHANGING Credential Manager
    sc config VaultSvc start= demand
    ECHO CHANGING Cryptographic Services
    sc config CryptSvc start= auto
    ECHO SKIPPING DCOM Server Process Launcher
 
    ECHO CHANGING Desktop Window Manager Session Manager
    sc config UxSms start= auto
    ECHO CHANGING DHCP Client
    sc config Dhcp start= auto
    ECHO CHANGING Diagnostic Policy Service
    sc config DPS start= auto
    ECHO CHANGING Diagnostic Service Host
    sc config WdiServiceHost start= demand
    ECHO CHANGING Diagnostic System Host
    sc config WdiSystemHost start= demand
    ECHO CHANGING Disk Defragmenter
    sc config defragsvc start= demand
    ECHO CHANGING Distributed Link Tracking Client
    sc config TrkWks start= auto
    ECHO CHANGING Distributed Transaction Coordinator
    sc config MSDTC start= demand
    ECHO CHANGING DNS Client
    sc config Dnscache start= auto
    ECHO CHANGING Encrypting File System (EFS)
    sc config EFS start= demand
    ECHO CHANGING Extensible Authentication Protocol
    sc config EapHost start= demand
    ECHO CHANGING Fax
    sc config Fax start= demand
    ECHO CHANGING Function Discovery Provider Host
    sc config fdPHost start= demand
    ECHO CHANGING Function Discovery Resource Publication
    sc config FDResPub start= auto
    ECHO SKIPPING Group Policy Client
 
    ECHO CHANGING Health Key and Certificate Management
    sc config hkmsvc start= demand
    ECHO CHANGING HomeGroup Listener
    sc config HomeGroupListener start= demand
    ECHO CHANGING HomeGroup Provider
    sc config HomeGroupProvider start= demand
    ECHO CHANGING Human Interface Device Access
    sc config hidserv start= demand
    ECHO SKIPPING IIS Admin Service
    ECHO CHANGING IKE and AuthIP IPsec Keying Modules
    sc config IKEEXT start= demand
    ECHO SKIPPING Indexing Service
    ECHO CHANGING Interactive Services Detection
    sc config UI0Detect start= demand
    ECHO CHANGING Internet Connection Sharing (ICS)
    sc config SharedAccess start= Disabled
    ECHO CHANGING IP Helper
    sc config iphlpsvc start= auto
    ECHO CHANGING IPsec Policy Agent
    sc config PolicyAgent start= demand
    ECHO CHANGING KtmRm for Distributed Transaction Coordinator
    sc config KtmRm start= demand
    ECHO CHANGING Link-Layer Topology Discovery Mapper
    sc config lltdsvc start= demand
    ECHO SKIPPING LPD Service
    ECHO CHANGING Media Center Extender Service
    sc config Mcx2Svc start= Disabled
    ECHO SKIPPING Message Queuing
    ECHO SKIPPING Message Queuing Triggers
    ECHO CHANGING Microsoft .NET Framework NGEN v2.0.50727
    sc config clr_optimization_v2.0.50727 start= delayed-auto
    ECHO SKIPPING Microsoft FTP Service
    ECHO CHANGING Microsoft iSCSI Initiator Service
    sc config MSiSCSI start= demand
    ECHO CHANGING Microsoft Software Shadow Copy Provider
    sc config swprv start= demand
    ECHO CHANGING Multimedia Class Scheduler
    sc config MMCSS start= auto
    ECHO SKIPPING Net.Msmq Listener Adapter
    ECHO SKIPPING Net.Pipe Listener Adapter
    ECHO SKIPPING Net.Tcp Listener Adapter
    ECHO CHANGING Net.Tcp Port Sharing Service
    sc config NetTcpPortSharing start= Disabled
    ECHO CHANGING Netlogon
    sc config Netlogon start= demand
    ECHO CHANGING Network Access Protection Agent
    sc config napagent start= demand
    ECHO CHANGING Network Connections
    sc config Netman start= demand
    ECHO CHANGING Network List Service
    sc config netprofm start= demand
    ECHO CHANGING Network Location Awareness
    sc config NlaSvc start= auto
    ECHO CHANGING Network Store Interface Service
    sc config nsi start= auto
    ECHO CHANGING Offline Files
    sc config CscService start= auto
    ECHO CHANGING Parental Controls
    sc config WPCSvc start= demand
    ECHO CHANGING Peer Name Resolution Protocol
    sc config PNRPsvc start= demand
    ECHO CHANGING Peer Networking Grouping
    sc config p2psvc start= demand
    ECHO CHANGING Peer Networking Identity Manager
    sc config p2pimsvc start= demand
    ECHO CHANGING Performance Logs and Alerts
    sc config pla start= demand
    ECHO CHANGING Plug and Play
    sc config PlugPlay start= auto
    ECHO CHANGING PnP-X IP Bus Enumerator
    sc config IPBusEnum start= demand
    ECHO CHANGING PNRP Machine Name Publication Service
    sc config PNRPAutoReg start= demand
    ECHO CHANGING Portable Device Enumerator Service
    sc config WPDBusEnum start= demand
    ECHO CHANGING Power
    sc config Power start= auto
    ECHO CHANGING Print Spooler
    sc config Spooler start= auto
    ECHO CHANGING Problem Reports and Solutions Control Panel Support
    sc config wercplsupport start= demand
    ECHO CHANGING Program Compatibility Assistant Service
    sc config PcaSvc start= demand
    ECHO CHANGING Protected Storage
    sc config ProtectedStorage start= demand
    ECHO CHANGING Quality Windows Audio Video Experience
    sc config QWAVE start= demand
    ECHO CHANGING Remote Access Auto Connection Manager
    sc config RasAuto start= demand
    ECHO CHANGING Remote Access Connection Manager
    sc config RasMan start= demand
    ECHO CHANGING Remote Desktop Configuration
    sc config SessionEnv start= demand
    ECHO CHANGING Remote Desktop Services
    sc config TermService start= demand
    ECHO CHANGING Remote Desktop Services UserMode Port Redirector
    sc config UmRdpService start= demand
    ECHO SKIPPING Remote Procedure Call (RPC)
 
    ECHO SKIPPING Remote Procedure Call (RPC) Locator
 
    ECHO CHANGING Remote Registry
    sc config RemoteRegistry start= demand
    ECHO SKIPPING RIP Listener
    ECHO CHANGING Routing and Remote Access
    sc config RemoteAccess start= Disabled
    ECHO SKIPPING RPC Endpoint Mapper
    sc config RpcEptMapper start= auto
    ECHO SKIPPING SeaPort
    ECHO CHANGING Secondary Logon
    sc config seclogon start= demand
    ECHO CHANGING Secure Socket Tunneling Protocol Service
    sc config SstpSvc start= demand
    ECHO CHANGING Security Accounts Manager
    sc config SamSs start= auto
    ECHO CHANGING Security Center
    sc config wscsvc start= delayed-auto
    ECHO CHANGING Server
    sc config LanmanServer start= auto
    ECHO CHANGING Shell Hardware Detection
    sc config ShellHWDetection start= auto
    ECHO SKIPPING Simple TCP/IP Services
    ECHO CHANGING Smart Card
    sc config SCardSvr start= demand
    ECHO CHANGING Smart Card Removal Policy
    sc config SCPolicySvc start= demand
    ECHO SKIPPING SNMP Service
    ECHO CHANGING SNMP Trap
    sc config SNMPTRAP start= demand
    ECHO CHANGING Software Protection
    sc config sppsvc start= delayed-auto
    ECHO CHANGING SPP Notification Service
    sc config sppuinotify start= demand
    ECHO CHANGING SSDP Discovery
    sc config SSDPSRV start= demand
    ECHO CHANGING Storage Service
    sc config StorSvc start= demand
    ECHO CHANGING Superfetch
    sc config SysMain start= auto
    ECHO CHANGING System Event Notification Service
    sc config SENS start= auto
    ECHO CHANGING Tablet PC Input Service
    sc config TabletInputService start= demand
    ECHO SKIPPING Task Scheduler
 
    ECHO CHANGING TCP/IP NetBIOS Helper
    sc config lmhosts start= auto
    ECHO CHANGING Telephony
    sc config TapiSrv start= demand
    ECHO SKIPPING Telnet
    ECHO CHANGING Themes
    sc config Themes start= auto
    ECHO CHANGING Thread Ordering Server
    sc config THREADORDER start= demand
    ECHO CHANGING TPM Base Services
    sc config TBS start= demand
    ECHO CHANGING UPnP Device Host
    sc config upnphost start= demand
    ECHO CHANGING User Profile Service
    sc config ProfSvc start= auto
    ECHO CHANGING Virtual Disk
    sc config vds start= demand
    ECHO CHANGING Volume Shadow Copy
    sc config VSS start= demand
    ECHO SKIPPING Web Management Service
    ECHO CHANGING WebClient
    sc config WebClient start= demand
    ECHO CHANGING Windows Audio
    sc config AudioSrv start= auto
    ECHO CHANGING Windows Audio Endpoint Builder
    sc config AudioEndpointBuilder start= auto
    ECHO CHANGING Windows Backup
    sc config SDRSVC start= demand
    ECHO CHANGING Windows Biometric Service
    sc config WbioSrvc start= demand
    ECHO CHANGING Windows CardSpace
    sc config idsvc start= demand
    ECHO CHANGING Windows Color System
    sc config WcsPlugInService start= demand
    ECHO CHANGING Windows Connect Now – Config Registrar
    sc config wcncsvc start= demand
    ECHO CHANGING Windows Defender
    sc config WinDefend start= delayed-auto
    ECHO CHANGING Windows Driver Foundation – User-mode Driver Framework
    sc config wudfsvc start= demand
    ECHO CHANGING Windows Error Reporting Service
    sc config WerSvc start= demand
    ECHO CHANGING Windows Event Collector
    sc config Wecsvc start= demand
    ECHO CHANGING Windows Event Log
    sc config EventLog start= auto
    ECHO CHANGING Windows Firewall
    sc config MpsSvc start= auto
    ECHO CHANGING Windows Font Cache Service
    sc config FontCache start= delayed-auto
    ECHO CHANGING Windows Image Acquisition (WIA)
    sc config StiSvc start= demand
    ECHO CHANGING Windows Installer
    sc config msiserver start= demand
    ECHO SKIPPING Windows Live Family Safety
    ECHO CHANGING Windows Management Instrumentation
    sc config Winmgmt start= auto
    ECHO CHANGING Windows Media Center Receiver Service
    sc config ehRecvr start= demand
    ECHO CHANGING Windows Media Center Scheduler Service
    sc config ehSched start= demand
    ECHO CHANGING Windows Media Player Network Sharing Service
    sc config WMPNetworkSvc start= demand
    ECHO CHANGING Windows Modules Installer
    sc config TrustedInstaller start= demand
    ECHO CHANGING Windows Presentation Foundation Font Cache 3.0.0.0
    sc config FontCache3.0.0.0 start= demand
    ECHO SKIPPING Windows Process Activation Service
    ECHO CHANGING Windows Remote Management (WS-Management)
    sc config WinRM start= demand
    ECHO CHANGING Windows Search
    sc config WSearch start= delayed-auto
    ECHO CHANGING Windows Time
    sc config W32Time start= demand
    ECHO CHANGING Windows Update
    sc config wuauserv start= delayed-auto
    ECHO CHANGING WinHTTP Web Proxy Auto-Discovery Service
    sc config WinHttpAutoProxySvc start= demand
    ECHO CHANGING Wired AutoConfig
    sc config dot3svc start= demand
    ECHO CHANGING WLAN AutoConfig
    sc config Wlansvc start= demand
    ECHO CHANGING WMI Performance Adapter
    sc config wmiApSrv start= demand
    ECHO CHANGING Workstation
    sc config LanmanWorkstation start= auto
    ECHO SKIPPING World Wide Web Publishing Service
    ECHO CHANGING WWAN AutoConfig
    sc config WwanSvc start= demand
    GOTO FINISHED
:END
 
:FINISHED
ECHO Processing has finished. The following services can't be changed and are thus excluded from this script:
ECHO - DCOM Server Process Launcher
ECHO - Group Policy Client
ECHO - Remote Procedure Call (RPC)
ECHO - RPC Endpoint Mapper
ECHO - Task Scheduler
 
GOTO CLOSE
:END
 
:CLOSE
pause

Open in new window

1
 
Sam Simon NasserIT Support ProfessionalCommented:
you cannot ping or remote, is the server at your organization or remotely?
if you can access the server physically, do the following from elevated command as administrator:
chkdsk c: /r /f
sfc /scannow

Open in new window


also, from the control panel, remove the latest installed updates who caused this issue.
1
 
Quang TranAuthor Commented:
The server is at my office, I can access it physically.
Last week, I did uninstalled all new patches but no joy.
I ran "sfc" but no errors found.
I ran "chkdsk", it took 12 hours and TMG still does not work. What should I do next ?
0
 
Quang TranAuthor Commented:
I tried your script and also tried to repair TMG in Add/Remove programs. After that, all TMG services works well :) Thanks you very much.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.