From 9057e8ae2e9777e7bba4d360e4049623788392c1 Mon Sep 17 00:00:00 2001 From: PusPC <136448868+PusPC@users.noreply.github.com> Date: Fri, 10 Nov 2023 12:06:24 +0100 Subject: [PATCH] Add files via upload Fixed some things. And added really good stuff to it. */\*\/*/\*\/* PUSPC V1.1 */\*\/*/\*\/* --- Pus1.1.bat | 1336 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 1336 insertions(+) create mode 100644 Pus1.1.bat diff --git a/Pus1.1.bat b/Pus1.1.bat new file mode 100644 index 0000000..c6f2f3c --- /dev/null +++ b/Pus1.1.bat @@ -0,0 +1,1336 @@ +@echo off +title Pus +reg query "HKU\S-1-5-19\Environment" +if %ERRORLEVEL% neq 0 ( +Cls & Echo You must have administrator rights to continue ... +Pause & Exit +) +cls +cd %systemroot%\system32 +echo. +echo WARNING! MAKE RESTORE POINT BEFORE DEBLOATING +echo *********************************** +echo * * * * +echo. Want to make a restore point? +echo * * * * +echo *********************************** +echo WARNING! MAKE RESTORE POINT BEFORE DEBLOATING +echo. Press "Y" to make a restore point +echo. Press "N" to skip +echo. +set /p choice=Enter choice [Y/N]: +IF /I "%choice%"=="Y" goto apply +IF /I "%choice%"=="N" goto next +echo. +:apply +:: if not "%1" == "max" start /MAX cmd /c %0 max & exit/b +title Creating restore point... +echo Creating restore point... +Wmic.exe /Namespace:\\root\default Path SystemRestore Call CreateRestorePoint "Before speedup", 100, 12 > nul +if %ERRORLEVEL% neq 0 ( +echo ERROR! There was an error while creating restore point. +pause & exit > nul +) +echo Succesfully created restore point. +timeout 2 > nul +goto :next +:next +cls +echo Starting speedup... +title Pus +timeout 2 > nul +cls +timeout 2 > nul +cls +echo Hello! I want to recommend you a really good program for making memory better. +echo It will save ram and make the whole windows experience better. +echo Github link: https://github.com/IgorMundstein/WinMemoryCleaner +echo Download link: https://github.com/IgorMundstein/WinMemoryCleaner/releases/latest/download/WinMemoryCleaner.exe +echo ************************** +echo * * * * +echo. Want to download it? +echo * * * * +echo ************************** +echo. Press "Y" to apply. +echo. Press "N" to skip. +echo. +set /p choice=Enter choice [Y/N]: +IF /I "%choice%"=="Y" goto apply377 +IF /I "%choice%"=="N" goto next377 +echo. +:apply377 +cd /d "%~dp0" +cls +echo Downloading . . . +timeout 3 > nul +powershell "Invoke-WebRequest -Uri "https://github.com/IgorMundstein/WinMemoryCleaner/releases/latest/download/WinMemoryCleaner.exe" -OutFile "WinMemoryCleaner.exe" +echo Downloaded! Filename: "WinMemoryCleaner.exe" +timeout 5 > nul +echo Recommended settings: Defaults + Run on startup + Start minimized + When the free memory is below 10% and every 2 hours +:next377 +cls +echo ***************************** +echo * * * * +echo. Want to tweak registry? +echo * * * * +echo ***************************** +echo. Press "Y" to apply. +echo. Press "N" to skip. +echo. +set /p choice=Enter choice [Y/N]: +IF /I "%choice%"=="Y" goto apply +IF /I "%choice%"=="N" goto nextnoreg +echo. +:apply +REM ; Disable typing telemetry ;) +reg add "HKLM\SOFTWARE\Microsoft\Input\TIPC" /v "Enabled" /t REG_DWORD /d 0 /f +reg add "HKCU\SOFTWARE\Microsoft\Input\TIPC" /v "Enabled" /t REG_DWORD /d 0 /f +REM ; You're welcome for disabling these services you don't need +sc stop "diagnosticshub.standardcollector.service" > nul +sc config "diagnosticshub.standardcollector.service" start= disabled > nul +sc stop "DiagTrack" > nul +sc config "DiagTrack" start= disabled > nul +sc stop "ndu" > nul +sc config "ndu" start= disabled > nul +REM ; Some pre-hardening +reg add "HKLM\SOFTWARE\Policies\Google\Chrome" /v ChromeCleanupEnabled /t REG_SZ /d 0 /f > nul +reg add "HKLM\SOFTWARE\Policies\Google\Chrome" /v ChromeCleanupReportingEnabled /t REG_SZ /d 0 /f > nul +reg add "HKLM\SOFTWARE\Policies\Google\Chrome" /v MetricsReportingEnabled /t REG_SZ /d 0 /f > nul +set key624="HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\software_reporter_tool.exe" +reg query %key624% > nul 2>&1 +if %errorlevel% neq 0 ( + reg add %key624% /f > nul +) +reg add %key624% /v Debugger /t REG_SZ /d "%windir%\System32\taskkill.exe" /f > nul +reg add "HKLM\SOFTWARE\Policies\Mozilla\Firefox" /v DisableTelemetry /t REG_DWORD /d 1 /f > nul +reg add "HKLM\SOFTWARE\Policies\Mozilla\Firefox" /v DisableDefaultBrowserAgent /t REG_DWORD /d 1 /f > nul +reg add "HKCU\SOFTWARE\Microsoft\MediaPlayer\Preferences" /v UsageTracking /t REG_DWORD /d 0 /f > nul +reg add "HKCU\Software\Policies\Microsoft\WindowsMediaPlayer" /v PreventCDDVDMetadataRetrieval /t REG_DWORD /d 1 /f > nul +reg add "HKCU\Software\Policies\Microsoft\WindowsMediaPlayer" /v PreventMusicFileMetadataRetrieval /t REG_DWORD /d 1 /f > nul +reg add "HKCU\Software\Policies\Microsoft\WindowsMediaPlayer" /v PreventRadioPresetsRetrieval /t REG_DWORD /d 0 /f > nul +reg add "HKLM\SOFTWARE\Policies\Microsoft\WMDRM" /v DisableOnline /t REG_DWORD /d 1 /f > nul +sc config WMPNetworkSvc start= disabled > nul +cls +cd %systemroot%\system32 +echo ******************************************************************** +echo * * * * +echo. Want to debloat windows? (Remove automatically installed apps) +echo * * * * +echo ******************************************************************** +echo. Press "Y" to apply +echo. Press "N" to skip +echo. +set /p choice=Enter choice [Y/N]: +IF /I "%choice%"=="Y" goto apply +IF /I "%choice%"=="N" goto next +echo. +:apply +@echo off +REM ; Remove Background Tasks +reg delete "HKCR\Extensions\ContractId\Windows.BackgroundTasks\PackageId\46928bounde.EclipseManager_2.2.4.51_neutral__a5h4egax66k6y" /f > nul +reg delete "HKCR\Extensions\ContractId\Windows.BackgroundTasks\PackageId\ActiproSoftwareLLC.562882FEEB491_2.6.18.18_neutral__24pqs290vpjk0" /f > nul +reg delete "HKCR\Extensions\ContractId\Windows.BackgroundTasks\PackageId\Microsoft.MicrosoftOfficeHub_17.7909.7600.0_x64__8wekyb3d8bbwe" /f > nul +reg delete "HKCR\Extensions\ContractId\Windows.BackgroundTasks\PackageId\Microsoft.PPIProjection_10.0.15063.0_neutral_neutral_cw5n1h2txyewy" /f > nul +reg delete "HKCR\Extensions\ContractId\Windows.BackgroundTasks\PackageId\Microsoft.XboxGameCallableUI_1000.15063.0.0_neutral_neutral_cw5n1h2txyewy" /f > nul +reg delete "HKCR\Extensions\ContractId\Windows.BackgroundTasks\PackageId\Microsoft.XboxGameCallableUI_1000.16299.15.0_neutral_neutral_cw5n1h2txyewy" /f > nul +REM ; Remove Windows File +reg delete "HKCR\Extensions\ContractId\Windows.File\PackageId\ActiproSoftwareLLC.562882FEEB491_2.6.18.18_neutral__24pqs290vpjk0" /f > nul +REM ; Remove Registry keys +reg delete "HKCR\Extensions\ContractId\Windows.Launch\PackageId\46928bounde.EclipseManager_2.2.4.51_neutral__a5h4egax66k6y" /f > nul +reg delete "HKCR\Extensions\ContractId\Windows.Launch\PackageId\ActiproSoftwareLLC.562882FEEB491_2.6.18.18_neutral__24pqs290vpjk0" /f > nul +reg delete "HKCR\Extensions\ContractId\Windows.Launch\PackageId\Microsoft.PPIProjection_10.0.15063.0_neutral_neutral_cw5n1h2txyewy" /f > nul +reg delete "HKCR\Extensions\ContractId\Windows.Launch\PackageId\Microsoft.XboxGameCallableUI_1000.15063.0.0_neutral_neutral_cw5n1h2txyewy" /f > nul +reg delete "HKCR\Extensions\ContractId\Windows.Launch\PackageId\Microsoft.XboxGameCallableUI_1000.16299.15.0_neutral_neutral_cw5n1h2txyewy" /f > nul +REM ; Remove Scheduled Tasks +reg delete "HKCR\Extensions\ContractId\Windows.PreInstalledConfigTask\PackageId\Microsoft.MicrosoftOfficeHub_17.7909.7600.0_x64__8wekyb3d8bbwe" /f > nul +REM ; Remove Windows Protocol Keys +reg delete "HKCR\Extensions\ContractId\Windows.Protocol\PackageId\ActiproSoftwareLLC.562882FEEB491_2.6.18.18_neutral__24pqs290vpjk0" /f > nul +reg delete "HKCR\Extensions\ContractId\Windows.Protocol\PackageId\Microsoft.PPIProjection_10.0.15063.0_neutral_neutral_cw5n1h2txyewy" /f > nul +reg delete "HKCR\Extensions\ContractId\Windows.Protocol\PackageId\Microsoft.XboxGameCallableUI_1000.15063.0.0_neutral_neutral_cw5n1h2txyewy" /f > nul +reg delete "HKCR\Extensions\ContractId\Windows.Protocol\PackageId\Microsoft.XboxGameCallableUI_1000.16299.15.0_neutral_neutral_cw5n1h2txyewy" /f > nul +REM ; Remove Windows Share Target +reg delete "HKCR\Extensions\ContractId\Windows.ShareTarget\PackageId\ActiproSoftwareLLC.562882FEEB491_2.6.18.18_neutral__24pqs290vpjk0" /f > nul +REM ; DELETE APPX PACKAGES +REM ; Remove specific AppX packages +powershell -Command "Get-AppxPackage -Name Microsoft.BingNews | Remove-AppxPackage -AllUsers" +powershell -Command "Get-AppxPackage -Name Microsoft.GetHelp | Remove-AppxPackage -AllUsers" +powershell -Command "Get-AppxPackage -Name Microsoft.Getstarted | Remove-AppxPackage -AllUsers" +powershell -Command "Get-AppxPackage -Name Microsoft.Messaging | Remove-AppxPackage -AllUsers" +powershell -Command "Get-AppxPackage -Name Microsoft.Microsoft3DViewer | Remove-AppxPackage -AllUsers" +powershell -Command "Get-AppxPackage -Name Microsoft.MicrosoftOfficeHub | Remove-AppxPackage -AllUsers" +powershell -Command "Get-AppxPackage -Name Microsoft.MicrosoftSolitaireCollection | Remove-AppxPackage -AllUsers" +powershell -Command "Get-AppxPackage -Name Microsoft.NetworkSpeedTest | Remove-AppxPackage -AllUsers" +powershell -Command "Get-AppxPackage -Name Microsoft.News | Remove-AppxPackage -AllUsers" +powershell -Command "Get-AppxPackage -Name Microsoft.Office.Lens | Remove-AppxPackage -AllUsers" +powershell -Command "Get-AppxPackage -Name Microsoft.Office.OneNote | Remove-AppxPackage -AllUsers" +powershell -Command "Get-AppxPackage -Name Microsoft.Office.Sway | Remove-AppxPackage -AllUsers" +powershell -Command "Get-AppxPackage -Name Microsoft.OneConnect | Remove-AppxPackage -AllUsers" +powershell -Command "Get-AppxPackage -Name Microsoft.People | Remove-AppxPackage -AllUsers" +powershell -Command "Get-AppxPackage -Name Microsoft.Print3D | Remove-AppxPackage -AllUsers" +powershell -Command "Get-AppxPackage -Name Microsoft.RemoteDesktop | Remove-AppxPackage -AllUsers" +powershell -Command "Get-AppxPackage -Name Microsoft.SkypeApp | Remove-AppxPackage -AllUsers" +powershell -Command "Get-AppxPackage -Name Microsoft.StorePurchaseApp | Remove-AppxPackage -AllUsers" +powershell -Command "Get-AppxPackage -Name Microsoft.Office.Todo.List | Remove-AppxPackage -AllUsers" +powershell -Command "Get-AppxPackage -Name Microsoft.Whiteboard | Remove-AppxPackage -AllUsers" +powershell -Command "Get-AppxPackage -Name Microsoft.WindowsAlarms | Remove-AppxPackage -AllUsers" +powershell -Command "Get-AppxPackage -Name microsoft.windowscommunicationsapps | Remove-AppxPackage -AllUsers" +powershell -Command "Get-AppxPackage -Name Microsoft.WindowsFeedbackHub | Remove-AppxPackage -AllUsers" +powershell -Command "Get-AppxPackage -Name Microsoft.WindowsMaps | Remove-AppxPackage -AllUsers" +powershell -Command "Get-AppxPackage -Name Microsoft.WindowsSoundRecorder | Remove-AppxPackage -AllUsers" +powershell -Command "Get-AppxPackage -Name Microsoft.Xbox.TCUI | Remove-AppxPackage -AllUsers" +powershell -Command "Get-AppxPackage -Name Microsoft.XboxApp | Remove-AppxPackage -AllUsers" +powershell -Command "Get-AppxPackage -Name Microsoft.XboxGameOverlay | Remove-AppxPackage -AllUsers" +powershell -Command "Get-AppxPackage -Name Microsoft.XboxIdentityProvider | Remove-AppxPackage -AllUsers" +powershell -Command "Get-AppxPackage -Name Microsoft.XboxSpeechToTextOverlay | Remove-AppxPackage -AllUsers" +powershell -Command "Get-AppxPackage -Name Microsoft.ZuneMusic | Remove-AppxPackage -AllUsers" +powershell -Command "Get-AppxPackage -Name Microsoft.ZuneVideo | Remove-AppxPackage -AllUsers" +echo Halfway there . . . . . +REM ; Remove Sponsored Windows 10 AppX Apps +powershell -Command "Get-AppxPackage *EclipseManager* | Remove-AppxPackage -AllUsers" +powershell -Command "Get-AppxPackage *ActiproSoftwareLLC* | Remove-AppxPackage -AllUsers" +powershell -Command "Get-AppxPackage *AdobeSystemsIncorporated.AdobePhotoshopExpress* | Remove-AppxPackage -AllUsers" +powershell -Command "Get-AppxPackage *Duolingo-LearnLanguagesforFree* | Remove-AppxPackage -AllUsers" +powershell -Command "Get-AppxPackage *PandoraMediaInc* | Remove-AppxPackage -AllUsers" +powershell -Command "Get-AppxPackage *CandyCrush* | Remove-AppxPackage -AllUsers" +powershell -Command "Get-AppxPackage *BubbleWitch3Saga* | Remove-AppxPackage -AllUsers" +powershell -Command "Get-AppxPackage *Wunderlist* | Remove-AppxPackage -AllUsers" +powershell -Command "Get-AppxPackage *Flipboard* | Remove-AppxPackage -AllUsers" +powershell -Command "Get-AppxPackage *Twitter* | Remove-AppxPackage -AllUsers" +powershell -Command "Get-AppxPackage *Facebook* | Remove-AppxPackage -AllUsers" +powershell -Command "Get-AppxPackage *Spotify* | Remove-AppxPackage -AllUsers" +powershell -Command "Get-AppxPackage *Minecraft* | Remove-AppxPackage -AllUsers" +powershell -Command "Get-AppxPackage *Royal Revolt* | Remove-AppxPackage -AllUsers" +powershell -Command "Get-AppxPackage *Sway* | Remove-AppxPackage -AllUsers" +powershell -Command "Get-AppxPackage *Speed Test* | Remove-AppxPackage -AllUsers" +powershell -Command "Get-AppxPackage *Dolby* | Remove-AppxPackage -AllUsers" +REM ; Disable scheduled tasks +echo Disabling unnecessary scheduled tasks . . . . . +timeout 3 > nul +powershell -Command "Disable-ScheduledTask -TaskName XblGameSaveTaskLogon" +powershell -Command "Disable-ScheduledTask -TaskName XblGameSaveTask" +powershell -Command "Disable-ScheduledTask -TaskName Consolidator" +powershell -Command "Disable-ScheduledTask -TaskName UsbCeip" +powershell -Command "Disable-ScheduledTask -TaskName DmClient" +powershell -Command "Disable-ScheduledTask -TaskName DmClientOnScenarioDownload" +reg add HKCU\Software\Microsoft\Siuf /f > nul +reg add HKCU\Software\Microsoft\Siuf\Rules /f > nul +reg add HKCU\Software\Microsoft\Siuf\Rules\PeriodInNanoSeconds /v PeriodInNanoSeconds /t REG_DWORD /d 0 /f > nul +echo DONE! SUCCESSFULLY RAN DEBLOATER! +timeout 5 > nul +:next +cls +timeout 2 > nul +cls +cls +cd %systemroot%\system32 +echo *************************************** +echo * * * * +echo. Want to disable power throttling? +echo * * * * +echo *************************************** +echo. Press "Y" to apply +echo. Press "N" to skip +echo. +set /p choice=Enter choice [Y/N]: +IF /I "%choice%"=="Y" goto apply +IF /I "%choice%"=="N" goto next +echo. +:apply +REM ; Disables Power Throttling +reg add "HKLM\SYSTEM\ControlSet001\Control\Power\PowerThrottling" /v "PowerThrottlingOff" /t REG_DWORD /d "1" /f +reg add "HKLM\SYSTEM\ControlSet002\Control\Power\PowerThrottling" /v "PowerThrottlingOff" /t REG_DWORD /d "1" /f +reg add "HKLM\SYSTEM\CurrentControlSet\Control\Power\PowerThrottling" /v "PowerThrottlingOff" /t REG_DWORD /d "1" /f +goto :next +:next +cls +timeout 2 > nul +cls +cd %systemroot%\system32 +echo ****************************************************** +echo * * * * +echo. Want to display highly detailed status messages? +echo * * * * +echo ****************************************************** +echo. Press "Y" to apply +echo. Press "N" to skip +echo. +set /p choice=Enter choice [Y/N]: +IF /I "%choice%"=="Y" goto apply +IF /I "%choice%"=="N" goto next +echo. +:apply +REM ; Display highly detailed status messages +reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "VerboseStatus" /t REG_DWORD /d "1" /f +goto :next +:next +cls +timeout 2 > nul +cls +cd %systemroot%\system32 +echo ********************************************************* +echo * * * * +echo. Want to enable hardware accelerated GPU scheduling? +echo * * * * +echo ********************************************************* +echo. Press "Y" to apply +echo. Press "N" to skip +echo. +set /p choice=Enter choice [Y/N]: +IF /I "%choice%"=="Y" goto apply +IF /I "%choice%"=="N" goto next +echo. +:apply +REM ; Enabling Hardware Accelerated GPU Scheduling +reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\GraphicsDrivers" /F /V "HwSchMode" /T REG_DWORD /d "2" +goto :next +:next +cls +timeout 2 > nul +cd %systemroot%\system32 +echo ************************************* +echo * * * * +echo. Want to tweak GPU? (Video card) +echo * * * * +echo ************************************* +echo. Press "Y" to apply +echo. Press "N" to skip +echo. +set /p choice=Enter choice [Y/N]: +IF /I "%choice%"=="Y" goto apply +IF /I "%choice%"=="N" goto next +echo. +:apply +REM ; GPU tweaks +reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" /v "SystemResponsiveness" /t REG_DWORD /d "0" /f +reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" /v "NoLazyMode" /t REG_DWORD /d "1" /f +reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" /v "Background Only" /t REG_SZ /d "False" /f +reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" /v "GPU Priority" /t REG_DWORD /d "18" /f +reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" /v "Priority" /t REG_DWORD /d "6" /f +reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" /v "Scheduling Category" /t REG_SZ /d "High" /f +reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" /v "SFIO Priority" /t REG_SZ /d "High" /f +REM ; Disables Font Chache +reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\FontCache" /v "Start" /t REG_DWORD /d "4" /f +reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\FontCache3.0.0.0" /v "Start" /t REG_DWORD /d "4" /f +timeout 2 > nul +:next +cls +cd %systemroot%\system32 +echo **************************************************************************** +echo * * * * +echo. Want to disable background applications? (Can speed up computer a lot) +echo * * * * +echo **************************************************************************** +echo. Press "Y" to apply +echo. Press "N" to skip +echo. +set /p choice=Enter choice [Y/N]: +IF /I "%choice%"=="Y" goto apply +IF /I "%choice%"=="N" goto next +echo. +:apply +REM ; Disables Backgroound applications +reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications" /v "GlobalUserDisabled" /t REG_DWORD /d "1" /f +reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" /v "BackgroundAppGlobalToggle" /t REG_DWORD /d "0" /f +reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Search" /v "BackgroundAppGlobalToggle" /t REG_DWORD /d 0 /f +goto :next +:next +cls +timeout 2 > nul +cd %systemroot%\system32 +echo ************************************ +echo * * * * +echo. Want to tweak CPU? (Processor) +echo * * * * +echo ************************************ +echo. Press "Y" to apply +echo. Press "N" to skip +echo. +set /p choice=Enter choice [Y/N]: +IF /I "%choice%"=="Y" goto apply +IF /I "%choice%"=="N" goto next +echo. +:apply +REM ; Small CPU tweaks +reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Power" /v "CoalescingTimerInterval" /t REG_DWORD /d "0" /f +reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "CoalescingTimerInterval" /t REG_DWORD /d "0" /f +reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\kernel" /v "CoalescingTimerInterval" /t REG_DWORD /d "0" /f +reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Executive" /v "CoalescingTimerInterval" /t REG_DWORD /d "0" /f +reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager" /v "CoalescingTimerInterval" /t REG_DWORD /d "0" /f +reg add "HKLM\SYSTEM\CurrentControlSet\Control\Power\ModernSleep" /v "CoalescingTimerInterval" /t REG_DWORD /d "0" /f +reg add "HKLM\SYSTEM\CurrentControlSet\Control\Power" /v "CoalescingTimerInterval" /t REG_DWORD /d "0" /f +reg add "HKLM\SYSTEM\CurrentControlSet\Control" /v "CoalescingTimerInterval" /t REG_DWORD /d "0" /f +reg add "HKLM\SYSTEM\CurrentControlSet\Services\TimeBrokerSvc" /v "Start" /t REG_DWORD /d "3" /f +reg add "HKLM\SYSTEM\CurrentControlSet\Services\CryptSvc" /v "Start" /t REG_DWORD /d "2" /f +REM ; Decreases the amount of background and Windows processes. +reg add "HKCU\Control Panel\Desktop" /v HungAppTimeout /t REG_SZ /d 1000 /f > nul +goto :next +:next +cls +timeout 2 > nul +cd %systemroot%\system32 +echo ******************************** +echo * * * * +echo. Want to disable aero peek? +echo * * * * +echo ******************************** +echo. Press "Y" to apply +echo. Press "N" to skip +echo. +set /p choice=Enter choice [Y/N]: +IF /I "%choice%"=="Y" goto apply +IF /I "%choice%"=="N" goto next +echo. +:apply +REM ; Disables aero peek +reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM" /v "EnableAeroPeek" /t REG_DWORD /d "0" /f +goto :next +:next +cls +cls +timeout 2 > nul +cd %systemroot%\system32 +echo ******************************************* +echo * * * * +echo. Want to disable activity history tab? +echo * * * * +echo ******************************************* +echo. Press "Y" to apply +echo. Press "N" to skip +echo. +set /p choice=Enter choice [Y/N]: +IF /I "%choice%"=="Y" goto apply +IF /I "%choice%"=="N" goto next +echo. +:apply +REM ; Activity History tab +reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\System" /v "PublishUserActivities" /t REG_DWORD /d "0" /f +reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\System" /v "UploadUserActivities" /t REG_DWORD /d "0" /f +cls +goto :next +:next +cls +timeout 2 > nul +cd %systemroot%\system32 +echo ********************************************************* +echo * * * * +echo. Want to enable hardware accelerated GPU scheduling? +echo * * * * +echo ********************************************************* +echo. Press "Y" to apply +echo. Press "N" to skip +echo. +set /p choice=Enter choice [Y/N]: +IF /I "%choice%"=="Y" goto apply +IF /I "%choice%"=="N" goto next +echo. +:apply +REM ; Enable hardware accelerated Gpu scheduling +reg add "HKLM\SYSTEM\CurrentControlSet\Control\GraphicsDrivers" /v "HwSchedMode" /t REG_DWORD /d "2" /f +cls +goto :next +:next +cls +timeout 2 > nul +cd %systemroot%\system32 +echo **************************************************************** +echo * * * * +echo. Want to disable prelaunch? (Can make windows faster a lot) +echo * * * * +echo **************************************************************** +echo. Press "Y" to apply +echo. Press "N" to skip +echo. +set /p choice=Enter choice [Y/N]: +IF /I "%choice%"=="Y" goto apply +IF /I "%choice%"=="N" goto next +echo. +:apply +REM ; Tweaks everything (disables prelaunch) +reg add "HKLM\SOFTWARE\Wow6432Node\Policies\Microsoft\MicrosoftEdge\Main" /v "AllowPrelaunch" /t REG_DWORD /d "0" /fű +goto :next +:next +cls +timeout 2 > nul +cd %systemroot%\system32 +echo ********************************** +echo * * * * +echo. Want to make mouse smoother? +echo * * * * +echo ********************************** +echo. Press "Y" to apply +echo. Press "N" to skip +echo. +set /p choice=Enter choice [Y/N]: +IF /I "%choice%"=="Y" goto apply +IF /I "%choice%"=="N" goto next +echo. +:apply +REM ; Mouse tweaks +reg add "HKCU\Control Panel\Mouse" /v "SmoothMouseXCurve" /t REG_BINARY /d "000000000000000000a0000000000000004001000000000000800200000000000000050000000000" /f +reg add "HKCU\Control Panel\Mouse" /v "SmoothMouseYCurve" /t REG_BINARY /d "000000000000000066a6020000000000cd4c050000000000a0990a00000000003833150000000000" /f +goto :next +cls +:next +cls +timeout 2 > nul +cd %systemroot%\system32 +echo ****************************************************************** +echo * * * * +echo. Want to enable transparency? (To make windows little better) +echo * * * * +echo ****************************************************************** +echo. Press "Y" to apply +echo. Press "N" to skip +echo. +set /p choice=Enter choice [Y/N]: +IF /I "%choice%"=="Y" goto apply +IF /I "%choice%"=="N" goto next +echo. +:apply +REM ; Visual Tweaks (Enables Transparency to make windows look litte better) +reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize" /v "EnableTransparency" /t REG_DWORD /d "1" /f +goto :next +:next +cls +timeout 2 > nul +cd %systemroot%\system32 +echo ***************************************************************************** +echo * * * * +echo. Want to make jpeg import quality to 100%? (Can slow your pc down a bit) +echo * * * * +echo ***************************************************************************** +echo. Press "Y" to apply +echo. Press "N" to skip +echo. +set /p choice=Enter choice [Y/N]: +IF /I "%choice%"=="Y" goto apply +IF /I "%choice%"=="N" goto next +echo. +:apply +REM ; JPEG quality 100% :) +reg add "HKCU\Control Panel\Desktop" /v "JPEGImportQuality" /t REG_DWORD /d "100" /f +goto :next +:next +cls +timeout 2 > nul +cd %systemroot%\system32 + +echo ************************************************* +echo * * * * +echo. Want to deny programs to acess to location? +echo * * * * +echo ************************************************* +echo. Press "Y" to apply +echo. Press "N" to skip +echo. +set /p choice=Enter choice [Y/N]: +IF /I "%choice%"=="Y" goto apply +IF /I "%choice%"=="N" goto next +echo. +:apply +REM ; Dont let programs acess location +reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location" /v "Value" /t REG_SZ /d "Deny" /f +goto :next +:next +cls +timeout 2 > nul +cd %systemroot%\system32 +echo **************************************************** +echo * * * * +echo. Disable storage power saving? (HDD wont sleep) +echo * * * * +echo **************************************************** +echo. Press "Y" to apply +echo. Press "N" to skip +echo. +set /p choice=Enter choice [Y/N]: +IF /I "%choice%"=="Y" goto apply +IF /I "%choice%"=="N" goto next +echo. +:apply +REM ; Disables Storage power saving +for /f "tokens=*" %%i in ('reg query "HKLM\SYSTEM\CurrentControlSet\Enum" /s /f "StorPort"^| findstr "StorPort"') do reg add "%%i" /v "EnableIdlePowerManagement" /t REG_DWORD /d "0" /f +for %%i in (EnableHIPM EnableDIPM EnableHDDParking) do for /f %%a in ('reg query "HKLM\SYSTEM\CurrentControlSet\Services" /s /f "%%i" ^| findstr "HKEY"') do reg add "%%a" /v "%%i" /t REG_DWORD /d "0" /f +for %%i in (iaStorAC iaStorA iaStorAV) do for /f %%a in ('reg query "HKLM\SYSTEM\CurrentControlSet\Services" /s /f "%%i"^| findstr "HKEY"') do reg add "%%a\Parameters" /v "EnableAPM" /t REG_DWORD /d "0" /f +goto :next +:next +cls +timeout 2 > nul +cd %systemroot%\system32 +echo ********************************** +echo * * * * +echo. Disable some visual effects? +echo * * * * +echo ********************************** +echo. Press "Y" to apply +echo. Press "N" to skip +echo. +set /p choice=Enter choice [Y/N]: +IF /I "%choice%"=="Y" goto apply +IF /I "%choice%"=="N" goto next +echo. +:apply +REM ; Visual effects +reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects" /v "VisualFXSetting" /t REG_DWORD /d "3" /f +reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\AnimateMinMax" /v "DefaultApplied" /t REG_SZ /d "0" /f +reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\ControlAnimations" /v "DefaultApplied" /t REG_SZ /d "0" /f +reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\CursorShadow" /v "DefaultApplied" /t REG_SZ /d "0" /f +reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\DropShadow" /v "DefaultApplied" /t REG_SZ /d "0" /f +reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\DWMAeroPeekEnabled" /v "DefaultApplied" /t REG_SZ /d "0" /f +reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\DWMEnabled" /v "DefaultApplied" /t REG_DWORD /d "1" /f +reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\DWMSaveThumbnailEnabled" /v "DefaultApplied" /t REG_SZ /d "0" /f +reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\FontSmoothing" /v "DefaultApplied" /t REG_SZ /d "1" /f +reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\ListBoxSmoothScrolling" /v "DefaultApplied" /t REG_SZ /d "0" /f +reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\ListviewAlphaSelect" /v "DefaultApplied" /t REG_SZ /d "0" /f +reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\ListviewShadow" /v "DefaultApplied" /t REG_SZ /d "0" /f +reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\SelectionFade" /v "DefaultApplied" /t REG_SZ /d "0" /f +reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\TaskbarAnimations" /v "DefaultApplied" /t REG_SZ /d "0" /f +reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\ThumbnailsOrIcon" /v "DefaultApplied" /t REG_SZ /d "1" /f +reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\TooltipAnimation" /v "DefaultApplied" /t REG_SZ /d "0" /f +goto :next +cls +:next +cls +timeout 2 > nul +cd %systemroot%\system32 +echo ****************************** +echo * * * * +echo. Want to disable GameDVR? +echo * * * * +echo ****************************** +echo. Press "Y" to apply +echo. Press "N" to skip +echo. +set /p choice=Enter choice [Y/N]: +IF /I "%choice%"=="Y" goto apply +IF /I "%choice%"=="N" goto next +echo. +:apply +:: Checks 32 or 64 bit system +reg Query "HKLM\Hardware\Description\System\CentralProcessor\0" | find /i "x86" > NUL && set OS=32BIT || set OS=64BIT +if %OS%==32BIT call :32 +if %OS%==64BIT call :64 +:32 +reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\GameDVR" /v "AppCaptureEnabled" /t REG_DWORD /d "0" /f +reg add "HKCU\System\GameConfigStore" /v "GameDVR_Enabled" /t REG_DWORD /d "0" /f +reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\GameDVR" /v "AllowgameDVR" /t REG_DWORD /d "0" /f +call :done +:64 +reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\GameDVR" /v "AppCaptureEnabled" /t REG_DWORD /d "0" /f +reg add "HKCU\System\GameConfigStore" /v "GameDVR_Enabled" /t REG_DWORD /d "0" /f +reg add "HKLM\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows\GameDVR" /v "AllowgameDVR" /t REG_DWORD /d "0" /f +call :done +:done +goto :next +:next +cls +timeout 2 > nul +cd %systemroot%\system32 +echo ************************************* +echo * * * * +echo. Want to enable MSI mode on GPU? +echo * * * * +echo ************************************* +echo. Press "Y" to apply +echo. Press "N" to skip +echo. +set /p choice=Enter choice [Y/N]: +IF /I "%choice%"=="Y" goto apply +IF /I "%choice%"=="N" goto next +echo. +:apply +REM ; Enables MSI mode on GPU +for /f %%g in ('wmic path win32_videocontroller get PNPDeviceID ^| findstr /L "VEN_"') do ( +reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\%%g\Device Parameters\Interrupt Management\MessageSignaledInterruptProperties" /v "MSISupported" /t REG_DWORD /d "1" /f +reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\%%g\Device Parameters\Interrupt Management\Affinity Policy" /v "DevicePriority" /t REG_DWORD /d "2" /f +) +cls +goto :next +:next +cls +timeout 2 > nul +cd %systemroot%\system32 +echo ************************************************************************************************ +echo * * * * +echo. Want to disable some tracking and ads in Windows (Make Windows safer) (Windows hardening)? +echo * * * * +echo ************************************************************************************************ +echo. Press "Y" to apply +echo. Press "N" to skip +echo. +set /p choice=Enter choice [Y/N]: +IF /I "%choice%"=="Y" goto apply +IF /I "%choice%"=="N" goto next +echo. +:apply +REM ; Windows hardering +reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v "AllowSearchToUseLocation" /t REG_DWORD /d 0 /f +REM ; Google Chrome web hardering +reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun" /v "1" /t REG_SZ /d "software_reporter_tool.exe" /f +reg add "HKLM\SOFTWARE\Policies\Google\Chrome" /v "MetricsReportingEnabled" /t REG_DWORD /d "0" /f +reg add "HKLM\SOFTWARE\Policies\Google\Chrome" /v "ChromeCleanupReportingEnabled" /t REG_DWORD /d "0" /f +reg add "HKLM\SOFTWARE\Policies\Google\Chrome" /v AllowOutdatedPlugins /d "0" /t REG_DWORD /f +reg add "HKLM\SOFTWARE\Policies\Google\Chrome" /v DefaultCookiesSetting /d "0" /t REG_DWORD /f +reg add "HKLM\SOFTWARE\Policies\Google\Chrome" /v RemoteAccessHostAllowClientPairing /d "0" /t REG_DWORD /f +reg add "HKLM\SOFTWARE\Policies\Google\Chrome" /v CloudPrintProxyEnabled /d "0" /t REG_DWORD /f +reg add "HKLM\SOFTWARE\Policies\Google\Chrome" /v MetricsReportingEnabled /d "0" /t REG_DWORD /f +:: reg add "HKLM\SOFTWARE\Policies\Google\Chrome" /v SitePerProcess /d "1" /t REG_DWORD /f >nul Not needed for everyone +reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\Assistance\Client\1.0" /v "NoExplicitFeedback" /t REG_DWORD /d 1 /f +reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\Assistance\Client\1.0" /v "NoImplicitFeedback" /t REG_DWORD /d 1 /f +reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\Assistance\Client\1.0" /v "NoOnlineAssist" /t REG_DWORD /d 1 /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Assistance\Client\1.0" /v "NoActiveHelp" /t REG_DWORD /d 1 /f +reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\InputPersonalization" /v "RestrictImplicitInkCollection" /t REG_DWORD /d 1 /f +reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\InputPersonalization" /v "RestrictImplicitTextCollection" /t REG_DWORD /d 1 /f +reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\HandwritingErrorReports" /v "PreventHandwritingErrorReports" /t REG_DWORD /d 1 /f +reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\TabletPC" /v "PreventHandwritingDataSharing" /t REG_DWORD /d 1 /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\InputPersonalization" /v "AllowInputPersonalization" /t REG_DWORD /d 0 /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\InputPersonalization" /v "RestrictImplicitInkCollection" /t REG_DWORD /d 1 /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\InputPersonalization" /v "RestrictImplicitTextCollection" /t REG_DWORD /d 1 /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\HandwritingErrorReports" /v "PreventHandwritingErrorReports" /t REG_DWORD /d 1 /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\TabletPC" /v "PreventHandwritingDataSharing" /t REG_DWORD /d 1 /f +reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Safety\PrivacIE" /v "DisableLogging" /t REG_DWORD /d 1 /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Internet Explorer\Safety\PrivacIE" /v "DisableLogging" /t REG_DWORD /d 1 /f +reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\PhishingFilter" /v "EnabledV9" /t REG_DWORD /d 1 /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Internet Explorer\PhishingFilter" /v "EnabledV9" /t REG_DWORD /d 1 /f +reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\SQM" /v "DisableCustomerImprovementProgram" /t REG_DWORD /d 0 /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Internet Explorer\SQM" /v "DisableCustomerImprovementProgram" /t REG_DWORD /d 0 /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Internet Explorer" /v "AllowServicePoweredQSA" /t REG_DWORD /d 0 /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Internet Explorer\DomainSuggestion" /v "Enabled" /t REG_DWORD /d 0 /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Internet Explorer\SearchScopes" /v "TopResult" /t REG_DWORD /d 0 /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Internet Explorer\Suggested Sites" /v "Enabled" /t REG_DWORD /d 0 /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Internet Explorer\Main" /v "AutoSearch" /t REG_DWORD /d 0 /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Internet Explorer\Main\WindowsSearch" /v "EnabledScopes" /t REG_DWORD /d 0 /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Internet Explorer\ContinuousBrowsing" /v "Enabled" /t REG_DWORD /d 0 /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Internet Explorer\Main" /v "DEPOff" /t REG_DWORD /d 0 /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Internet Explorer\Main" /v "Isolation64Bit" /t REG_DWORD /d 1 /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Internet Explorer\PrefetchPrerender" /v "Enabled" /t REG_DWORD /d 0 /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Internet Explorer\Restrictions" /v "NoCrashDetection" /t REG_DWORD /d 1 /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\Internet Settings" /v "CallLegacyWCMPolicies" /t REG_DWORD /d 0 /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\Internet Settings" /v "EnableSSL3Fallback" /t REG_DWORD /d 0 /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\Internet Settings" /v "PreventIgnoreCertErrors" /t REG_DWORD /d 1 /f +reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\MicrosoftEdge\Main" /v "PreventLiveTileDataCollection" /t REG_DWORD /d 1 /f +reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\EdgeUI" /v "DisableMFUTracking" /t REG_DWORD /d 1 /f +reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\EdgeUI" /v "DisableRecentApps" /t REG_DWORD /d 1 /f +reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\EdgeUI" /v "TurnOffBackstack" /t REG_DWORD /d 1 /f +reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\DataCollection" /v "AllowTelemetry" /t REG_DWORD /d 0 /f +reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v "AllowTelemetry" /t REG_DWORD /d "0" /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v "AITEnable" /t REG_DWORD /d 0 /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v "AllowTelemetry" /t REG_DWORD /d 0 /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v "DoNotShowFeedbackNotifications" /t REG_DWORD /d 1 /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v "LimitEnhancedDiagnosticDataWindowsAnalytics" /t REG_DWORD /d 0 /f +reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer" /v "HidePeopleBar" /t REG_DWORD /d 1 /f +reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Windows Error Reporting" /v "Disabled" /t REG_DWORD /d 1 /f +reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Windows Error Reporting" /v "DontSendAdditionalData" /t REG_DWORD /d 1 /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\PCHealth\ErrorReporting" /v "DoReport" /t REG_DWORD /d 0 /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\PCHealth\ErrorReporting" /v "ForceQueueMode" /t REG_DWORD /d 0 /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\PCHealth\ErrorReporting\DW" /v "DWNoExternalURL" /t REG_DWORD /d 1 /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\PCHealth\ErrorReporting\DW" /v "DWNoFileCollection" /t REG_DWORD /d 1 /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\PCHealth\ErrorReporting\DW" /v "DWNoSecondLevelCollection" /t REG_DWORD /d 1 /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\PCHealth\HelpSvc" /v "Headlines" /t REG_DWORD /d 0 /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\PCHealth\HelpSvc" /v "MicrosoftKBSearch" /t REG_DWORD /d 0 /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DeviceInstall\Settings" /v "DisableSendGenericDriverNotFoundToWER" /t REG_DWORD /d 1 /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DeviceInstall\Settings" /v "DisableSendRequestAdditionalSoftwareToWER" /t REG_DWORD /d 1 /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting" /v "Disabled" /t REG_DWORD /d 1 /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting" /v "DontSendAdditionalData" /t REG_DWORD /d 1 /f +reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows NT\Terminal Services" /v "AllowSignedFiles" /t REG_DWORD /d 0 /f +reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows NT\Terminal Services" /v "AllowUnsignedFiles" /t REG_DWORD /d 0 /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Conferencing" /v "NoRDS" /t REG_DWORD /d 1 /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WinRM\Service\WinRS" /v "AllowRemoteShellAccess" /t REG_DWORD /d 0 /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "CreateEncryptedOnlyTickets" /t REG_DWORD /d 1 /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "fAllowToGetHelp" /t REG_DWORD /d 0 /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "fAllowUnsolicited" /t REG_DWORD /d 0 /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "fDenyTSConnections" /t REG_DWORD /d 1 /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services\Client" /v "fEnableUsbBlockDeviceBySetupClass" /t REG_DWORD /d 1 /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services\Client" /v "fEnableUsbNoAckIsochWriteToDevice" /t REG_DWORD /d 80 /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services\Client" /v "fEnableUsbSelectDeviceByInterface" /t REG_DWORD /d 1 /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile\RemoteAdminSettings" /v "Enabled" /t REG_DWORD /d 0 /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile\Services\RemoteDesktop" /v "Enabled" /t REG_DWORD /d 0 /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile\Services\UPnPFramework" /v "Enabled" /t REG_DWORD /d 0 /f +reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\office\16.0\common\ptwatson" /v "ptwoptin" /t REG_DWORD /d 0 /f +reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\office\16.0\firstrun" /v "bootedrtm" /t REG_DWORD /d 1 /f +reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\office\16.0\firstrun" /v "disablemovie" /t REG_DWORD /d 1 /f +reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\office\16.0\osm" /v "enablefileobfuscation" /t REG_DWORD /d 1 /f +reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\office\16.0\osm" /v "enablelogging" /t REG_DWORD /d 0 /f +reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\office\16.0\osm" /v "enableupload" /t REG_DWORD /d 0 /f +reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\office\16.0\osm\preventedapplications" /v "accesssolution" /t REG_DWORD /d 1 /f +reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\office\16.0\osm\preventedapplications" /v "olksolution" /t REG_DWORD /d 1 /f +reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\office\16.0\osm\preventedapplications" /v "onenotesolution" /t REG_DWORD /d 1 /f +reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\office\16.0\osm\preventedapplications" /v "pptsolution" /t REG_DWORD /d 1 /f +reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\office\16.0\osm\preventedapplications" /v "projectsolution" /t REG_DWORD /d 1 /f +reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\office\16.0\osm\preventedapplications" /v "publishersolution" /t REG_DWORD /d 1 /f +reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\office\16.0\osm\preventedapplications" /v "visiosolution" /t REG_DWORD /d 1 /f +reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\office\16.0\osm\preventedapplications" /v "wdsolution" /t REG_DWORD /d 1 /f +reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\office\16.0\osm\preventedapplications" /v "xlsolution" /t REG_DWORD /d 1 /f +reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\office\16.0\osm\preventedsolutiontypes" /v "agave" /t REG_DWORD /d 1 /f +reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\office\16.0\osm\preventedsolutiontypes" /v "appaddins" /t REG_DWORD /d 1 /f +reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\office\16.0\osm\preventedsolutiontypes" /v "comaddins" /t REG_DWORD /d 1 /f +reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\office\16.0\osm\preventedsolutiontypes" /v "documentfiles" /t REG_DWORD /d 1 /f +reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\office\16.0\osm\preventedsolutiontypes" /v "templatefiles" /t REG_DWORD /d 1 /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Windows Defender Exploit Guard\Network Protection" /v "EnableNetworkProtection" /t REG_DWORD /d 1 /f +schtasks /change /tn "\Microsoft\Windows\Windows Error Reporting\QueueReporting" /disable +REM ; CCLEANER HARDENING +reg add "HKCU\Software\Piriform\CCleaner" /v "Monitoring" /t REG_DWORD /d 0 /f +reg add "HKCU\Software\Piriform\CCleaner" /v "HelpImproveCCleaner" /t REG_DWORD /d 0 /f +reg add "HKCU\Software\Piriform\CCleaner" /v "SystemMonitoring" /t REG_DWORD /d 0 /f +reg add "HKCU\Software\Piriform\CCleaner" /v "UpdateAuto" /t REG_DWORD /d 0 /f +reg add "HKCU\Software\Piriform\CCleaner" /v "UpdateCheck" /t REG_DWORD /d 0 /f +reg add "HKCU\Software\Piriform\CCleaner" /v "CheckTrialOffer" /t REG_DWORD /d 0 /f +reg add "HKLM\Software\Piriform\CCleaner" /v "(Cfg)HealthCheck" /t REG_DWORD /d 0 /f +reg add "HKLM\Software\Piriform\CCleaner" /v "(Cfg)QuickClean" /t REG_DWORD /d 0 /f +reg add "HKLM\Software\Piriform\CCleaner" /v "(Cfg)QuickCleanIpm" /t REG_DWORD /d 0 /f +reg add "HKLM\Software\Piriform\CCleaner" /v "(Cfg)GetIpmForTrial" /t REG_DWORD /d 0 /f +reg add "HKLM\Software\Piriform\CCleaner" /v "(Cfg)SoftwareUpdater" /t REG_DWORD /d 0 /f +reg add "HKLM\Software\Piriform\CCleaner" /v "(Cfg)SoftwareUpdaterIpm" /t REG_DWORD /d 0 /f +REM ; Deletes spy firewall rules, registry +powershell -Command "& {Get-NetFirewallRule | Where { $_.Group -like '*@{*' } | Remove-NetFirewallRule;}" +powershell -Command "& {Get-NetFirewallRule | Where { $_.Group -eq 'DiagTrack' } | Remove-NetFirewallRule;}" +powershell -Command "& {Get-NetFirewallRule | Where { $_.DisplayGroup -eq 'Delivery Optimization' } | Remove-NetFirewallRule;}" +powershell -Command "& {Get-NetFirewallRule | Where { $_.DisplayGroup -like 'Windows Media Player Network Sharing Service*' } | Remove-NetFirewallRule;}" +reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization" /v "DODownloadMode" /t REG_DWORD /d 0 /f +reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config" /v "DODownloadMode" /t REG_DWORD /d 0 /f +reg add "HKLM\SOFTWARE\Microsoft\RemovalTools\MpGears" /v "SpyNetReportingLocation" /t REG_SZ /d "0" /f +reg add "HKLM\SOFTWARE\Microsoft\RemovalTools\MpGears" /v "HeartbeatTrackingIndex" /t REG_DWORD /d "0" /f +reg add "HKLM\SOFTWARE\Microsoft\Input\Settings" /v "HarvestContacts" /t REG_DWORD /d "0" /f +reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ShowSyncProviderNotifications" /t REG_DWORD /d "0" /f +reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "Start_TrackDocs" /t REG_DWORD /d "0" /f +reg add "HKLM\SYSTEM\ControlSet001\Control\Lsa\MSV1_0" /v "RestrictReceivingNTLMTraffic" /t REG_DWORD /d "2" /f +reg add "HKLM\SYSTEM\ControlSet002\Control\Lsa\MSV1_0" /v "RestrictReceivingNTLMTraffic" /t REG_DWORD /d "2" /f +reg add "HKLM\SYSTEM\CurrentControlSet\Control\Lsa\MSV1_0" /v "RestrictReceivingNTLMTraffic" /t REG_DWORD /d "2" /f +reg add "HKLM\SYSTEM\ControlSet001\Control\Lsa\MSV1_0" /v "RestrictSendingNTLMTraffic" /t REG_DWORD /d "2" /f +reg add "HKLM\SYSTEM\ControlSet002\Control\Lsa\MSV1_0" /v "RestrictSendingNTLMTraffic" /t REG_DWORD /d "2" /f +reg add "HKLM\SYSTEM\CurrentControlSet\Control\Lsa\MSV1_0" /v "RestrictSendingNTLMTraffic" /t REG_DWORD /d "2" /f +reg add "HKLM\SYSTEM\ControlSet001\Services\LanmanServer\Parameters" /v "SMB1" /t REG_DWORD /d "0" /f +reg add "HKLM\SYSTEM\ControlSet002\Services\LanmanServer\Parameters" /v "SMB1" /t REG_DWORD /d "0" /f +reg add "HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" /v "SMB1" /t REG_DWORD /d "0" /f +reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "Start_TrackProgs" /t REG_DWORD /d "0" /f +reg add "HKLM\SOFTWARE\Microsoft\Windows Defender\Spynet" /v "SubmitSamplesConsent" /t REG_DWORD /d "2" /f +REM ; Disables unused services to safe power +schtasks /Change /TN "Microsoft\Windows\AppID\SmartScreenSpecific" /Disable +schtasks /Change /TN "Microsoft\Windows\Autochk\Proxy" /Disable +schtasks /Change /TN "Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticDataCollector" /Disable +schtasks /Change /TN "Microsoft\Windows\FileHistory\File History (maintenance mode)" /Disable +schtasks /Change /TN "Microsoft\Windows\Maintenance\WinSAT" /Disable +schtasks /Change /TN "Microsoft\Windows\NetTrace\GatherNetworkInfo" /Disable +schtasks /Change /TN "Microsoft\Windows\PI\Sqm-Tasks" /Disable +schtasks /Change /TN "Microsoft\Windows\Time Synchronization\ForceSynchronizeTime" /Disable +schtasks /Change /TN "Microsoft\Windows\Time Synchronization\SynchronizeTime" /Disable +schtasks /Change /TN "Microsoft\Windows\Windows Error Reporting\QueueReporting" /Disable +cls +goto :next +:next +cls +timeout 2 > nul +cd %systemroot%\system32 +echo ****************************** +echo * * * * +echo. Enable Windows Defender? +echo * * * * +echo ****************************** +echo. Press "Y" to apply +echo. Press "N" to skip +echo. +set /p choice=Enter choice [Y/N]: +IF /I "%choice%"=="Y" goto apply +IF /I "%choice%"=="N" goto next +echo. +:apply +reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Sense" /v "Start" /t REG_DWORD /d "3" /f +reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\WdNisSvc" /v "Start" /t REG_DWORD /d "3" /f +reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\WdFilter" /v "Start" /t REG_DWORD /d "2" /f +reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\WinDefend" /v "Start" /t REG_DWORD /d "2" /f +reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SamSs" /v "Start" /t REG_DWORD /d "2" /f +reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\wscsvc" /v "Start" /t REG_DWORD /d "2" /f +reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SgrmBroker" /v "Start" /t REG_DWORD /d "2" /f +reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SecurityHealthService" /v "Start" /t REG_DWORD /d "3" /f +net start Sense +net start WdFilter +net start WdNisSvc +net start WinDefend +reg add "HKLM\SOFTWARE\Microsoft\Windows Defender" /v "DisableAntiVirus" /t REG_DWORD /d "0" /f +reg add "HKLM\SOFTWARE\Microsoft\Windows Defender" /v "DisableAntiSpyware" /t REG_DWORD /d "0" /f +reg add "HKLM\SOFTWARE\Microsoft\Windows Defender" /v "DisableRoutinelyTakingAction" /t REG_DWORD /d "0" /f +reg add "HKLM\SOFTWARE\Microsoft\Windows Defender" /v "OneTimeSqmDataSent" /t REG_DWORD /d "1" /f +reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Spynet" /v "SpyNetReporting" /t REG_DWORD /d "1" /f +reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Spynet" /v "SubmitSamplesConsent" /t REG_DWORD /d "1" /f +reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "DisableBehaviorMonitoring" /t REG_DWORD /d "0" /f +reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "DisableOnAccessProtection" /t REG_DWORD /d "0" /f +reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "DisableScanOnRealtimeEnable" /t REG_DWORD /d "0" /f +reg add "HKLM\Software\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "DisableRealtimeMonitoring" /t REG_DWORD /d "0" /f +reg add "HKLM\SOFTWARE\Microsoft\Windows Defender\UX Configuration" /v "DisablePrivacyMode" /t REG_DWORD /d "0" /f +reg add "HKLM\SOFTWARE\Microsoft\Windows Defender\Scan" /v "AutomaticallyCleanAfterScan" /t REG_DWORD /d "1" /f +schtasks /Change /TN "Microsoft\Windows\Windows Defender\Windows Defender Cache Maintenance" /Enable +schtasks /Change /TN "Microsoft\Windows\Windows Defender\Windows Defender Cleanup" /Enable +schtasks /Change /TN "Microsoft\Windows\Windows Defender\Windows Defender Scheduled Scan" /Enable +schtasks /Change /TN "Microsoft\Windows\Windows Defender\Windows Defender Verification" /Enable +reg add "HKLM\SOFTWARE\Policies\Microsoft\MRT" /v "DontOfferThroughWUAU" /t REG_DWORD /d "0" /f +reg add "HKLM\SOFTWARE\Policies\Microsoft\MRT" /v "DontReportInfectionInformation" /t REG_DWORD /d "0" /f +reg add "HKLM\SYSTEM\CurrentControlSet\Services\WdNisDrv" /v "Start" /t REG_DWORD /d "3" /f +reg add "HKLM\SYSTEM\CurrentControlSet\Services\WdFilter" /v "Start" /t REG_DWORD /d "1" /f +reg add "HKLM\SOFTWARE\Microsoft\Windows Defender\Real-Time Protection" /v "DisableAntiSpywareRealtimeProtection" /t REG_DWORD /d "0" /f +reg add "HKLM\SOFTWARE\Microsoft\Windows Defender\Real-Time Protection" /v "DisableRealtimeMonitoring" /t REG_DWORD /d "0" /f +reg add "HKLM\SOFTWARE\Microsoft\Windows Defender\Real-Time Protection" /v "DpaDisabled" /t REG_DWORD /d "0" /f +:: reg add "HKLM\SOFTWARE\Microsoft\Windows Defender" /v "ProductStatus" /t REG_DWORD /d "0" /f +:: reg add "HKLM\SOFTWARE\Microsoft\Windows Defender" /v "ManagedDefenderProductType" /t REG_DWORD /d "0" /f +reg add "HKLM\SOFTWARE\Policies\Microsoft\MRT" /v "DontReportInfectionInformation" /t REG_DWORD /d "0" /f +reg add "HKLM\SYSTEM\CurrentControlSet\Services\SecurityHealthService" /v "Start" /t REG_DWORD /d "3" /f +cls +goto :next +:next +cls +timeout 2 > nul +cd %systemroot%\system32 +echo ******************************* +echo * * * * +echo. Disable Windows Defender? +echo * * * * +echo ******************************* +echo. Press "Y" to apply +echo. Press "N" to skip +echo. +set /p choice=Enter choice [Y/N]: +IF /I "%choice%"=="Y" goto apply +IF /I "%choice%"=="N" goto next +echo. +:apply +reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Sense" /v "Start" /t REG_DWORD /d "4" /f +reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\WdNisSvc" /v "Start" /t REG_DWORD /d "4" /f +reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\WdFilter" /v "Start" /t REG_DWORD /d "4" /f +reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\WinDefend" /v "Start" /t REG_DWORD /d "4" /f +reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SamSs" /v "Start" /t REG_DWORD /d "4" /f +reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\wscsvc" /v "Start" /t REG_DWORD /d "4" /f +reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SgrmBroker" /v "Start" /t REG_DWORD /d "4" /f +reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SecurityHealthService" /v "Start" /t REG_DWORD /d "4" /f +net stop Sense +net stop WdFilter +net stop WdNisSvc +net stop WinDefend +reg add "HKLM\SOFTWARE\Microsoft\Windows Defender" /v "DisableAntiVirus" /t REG_DWORD /d "1" /f +reg add "HKLM\SOFTWARE\Microsoft\Windows Defender" /v "DisableAntiSpyware" /t REG_DWORD /d "1" /f +reg add "HKLM\SOFTWARE\Microsoft\Windows Defender" /v "DisableRoutinelyTakingAction" /t REG_DWORD /d "1" /f +reg add "HKLM\SOFTWARE\Microsoft\Windows Defender" /v "OneTimeSqmDataSent" /t REG_DWORD /d "0" /f +reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Spynet" /v "SpyNetReporting" /t REG_DWORD /d "0" /f +reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Spynet" /v "SubmitSamplesConsent" /t REG_DWORD /d "2" /f +reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "DisableBehaviorMonitoring" /t REG_DWORD /d "1" /f +reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "DisableOnAccessProtection" /t REG_DWORD /d "2" /f +reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "DisableScanOnRealtimeEnable" /t REG_DWORD /d "2" /f +reg add "HKLM\Software\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "DisableRealtimeMonitoring" /t REG_DWORD /d "1" /f +reg add "HKLM\SOFTWARE\Microsoft\Windows Defender\UX Configuration" /v "DisablePrivacyMode" /t REG_DWORD /d "1" /f +reg add "HKLM\SOFTWARE\Microsoft\Windows Defender\Scan" /v "AutomaticallyCleanAfterScan" /t REG_DWORD /d "0" /f +schtasks /Change /TN "Microsoft\Windows\Windows Defender\Windows Defender Cache Maintenance" /Disable +schtasks /Change /TN "Microsoft\Windows\Windows Defender\Windows Defender Cleanup" /Disable +schtasks /Change /TN "Microsoft\Windows\Windows Defender\Windows Defender Scheduled Scan" /Disable +schtasks /Change /TN "Microsoft\Windows\Windows Defender\Windows Defender Verification" /Disable +reg add "HKLM\SOFTWARE\Policies\Microsoft\MRT" /v "DontOfferThroughWUAU" /t REG_DWORD /d "2" /f +reg add "HKLM\SOFTWARE\Policies\Microsoft\MRT" /v "DontReportInfectionInformation" /t REG_DWORD /d "2" /f +reg add "HKLM\SYSTEM\CurrentControlSet\Services\WdNisDrv" /v "Start" /t REG_DWORD /d "2" /f +reg add "HKLM\SYSTEM\CurrentControlSet\Services\WdBoot" /v "Start" /t REG_DWORD /d "2" /f +reg add "HKLM\SYSTEM\CurrentControlSet\Services\WdFilter" /v "Start" /t REG_DWORD /d "2" /f +:: regsvr32 /s /u "%ProgramFiles%\Windows Defender\shellext.dll" +reg add "HKLM\SOFTWARE\Microsoft\Windows Defender\Real-Time Protection" /v "DisableAntiSpywareRealtimeProtection" /t REG_DWORD /d "1" /f +reg add "HKLM\SOFTWARE\Microsoft\Windows Defender\Real-Time Protection" /v "DisableRealtimeMonitoring" /t REG_DWORD /d "1" /f +reg add "HKLM\SOFTWARE\Microsoft\Windows Defender\Real-Time Protection" /v "DpaDisabled" /t REG_DWORD /d "1" /f +:: reg add "HKLM\SOFTWARE\Microsoft\Windows Defender" /v "ProductStatus" /t REG_DWORD /d "0" /f +:: reg add "HKLM\SOFTWARE\Microsoft\Windows Defender" /v "ManagedDefenderProductType" /t REG_DWORD /d "0" /f +reg add "HKLM\SOFTWARE\Policies\Microsoft\MRT" /v "DontReportInfectionInformation" /t REG_DWORD /d "1" /f +reg add "HKLM\SYSTEM\CurrentControlSet\Services\SecurityHealthService" /v "Start" /t REG_DWORD /d "4" /f +cls +goto :next +:next +cls +echo ****************************** +echo * * * * +echo. Enable Windows Firewall? +echo * * * * +echo ****************************** +echo. Press "Y" to apply +echo. Press "N" to skip +echo. +set /p choice=Enter choice [Y/N]: +IF /I "%choice%"=="Y" goto apply +IF /I "%choice%"=="N" goto next +echo. +:apply +reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\mpssvc" /v "Start" /t REG_DWORD /d "2" /f +reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\BFE" /v "Start" /t REG_DWORD /d "2" /f +reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile" /v "EnableFirewall" /t REG_DWORD /d "1" /f +reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile" /v "DisableNotifications" /t REG_DWORD /d "0" /f +reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile" /v "DoNotAllowExceptions" /t REG_DWORD /d "0" /f +reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SharedAccess\Parameters\FirewallPolicy\DomainProfile" /v "EnableFirewall" /t REG_DWORD /d "1" /f +reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SharedAccess\Parameters\FirewallPolicy\DomainProfile" /v "DisableNotifications" /t REG_DWORD /d "0" /f +reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SharedAccess\Parameters\FirewallPolicy\DomainProfile" /v "DoNotAllowExceptions" /t REG_DWORD /d "0" /f +reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SharedAccess\Parameters\FirewallPolicy\PublicProfile" /v "EnableFirewall" /t REG_DWORD /d "1" /f +reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SharedAccess\Parameters\FirewallPolicy\PublicProfile" /v "DisableNotifications" /t REG_DWORD /d "0" /f +reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SharedAccess\Parameters\FirewallPolicy\PublicProfile" /v "DoNotAllowExceptions" /t REG_DWORD /d "0" /f +cls +goto :next +:next +cls +echo ******************************* +echo * * * * +echo. Disable Windows Firewall? +echo * * * * +echo ******************************** +echo. Press "Y" to apply +echo. Press "N" to skip +echo. +set /p choice=Enter choice [Y/N]: +IF /I "%choice%"=="Y" goto apply +IF /I "%choice%"=="N" goto next +echo. +:apply +reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\mpssvc" /v "Start" /t REG_DWORD /d "4" /f +reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\BFE" /v "Start" /t REG_DWORD /d "4" /f +reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile" /v "EnableFirewall" /t REG_DWORD /d "0" /f +reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile" /v "DisableNotifications" /t REG_DWORD /d "1" /f +reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile" /v "DoNotAllowExceptions" /t REG_DWORD /d "1" /f +reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SharedAccess\Parameters\FirewallPolicy\DomainProfile" /v "EnableFirewall" /t REG_DWORD /d "0" /f +reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SharedAccess\Parameters\FirewallPolicy\DomainProfile" /v "DisableNotifications" /t REG_DWORD /d "1" /f +reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SharedAccess\Parameters\FirewallPolicy\DomainProfile" /v "DoNotAllowExceptions" /t REG_DWORD /d "1" /f +reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SharedAccess\Parameters\FirewallPolicy\PublicProfile" /v "EnableFirewall" /t REG_DWORD /d "0" /f +reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SharedAccess\Parameters\FirewallPolicy\PublicProfile" /v "DisableNotifications" /t REG_DWORD /d "1" /f +reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SharedAccess\Parameters\FirewallPolicy\PublicProfile" /v "DoNotAllowExceptions" /t REG_DWORD /d "1" /f +goto :next +:next +cls +echo *********************************** +echo * * * * +echo. Want to set High Performance? +echo * * * * +echo *********************************** +echo. Press "Y" to apply +echo. Press "N" to skip +echo. +set /p choice=Enter choice [Y/N]: +IF /I "%choice%"=="Y" goto apply +IF /I "%choice%"=="N" goto next +echo. +:apply +powercfg setactive 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c +goto :next +:next +cls +echo ************************************************** +echo * * * * +echo. Want to optimize SSD? (Only if you have SSD) +echo * * * * +echo ************************************************** +echo. Press "Y" to apply +echo. Press "N" to skip +echo. +set /p choice=Enter choice [Y/N]: +IF /I "%choice%"=="Y" goto apply +IF /I "%choice%"=="N" goto next +echo. +:apply +Fsutil behavior query disabledeletenotify 0 +cls +sc stop sysmain +cls +sc config sysmain start=disabled +reg add "HKLM\SYSTEM\CurrentControlSet\Services\defragsvc" /v "Start" /t REG_DWORD /d "4" /f +schtasks /Delete /TN "\Microsoft\Windows\Defrag\ScheduledDefrag" /F +goto :next +:next +cls +netsh int tcp set global autotuninglevel=normal > nul +netsh interface 6to4 set state disabled > nul +netsh int isatap set state disable > nul +netsh int tcp set global timestamps=disabled > nul +netsh int tcp set heuristics disabled > nul +netsh int tcp set global chimney=disabled > nul +netsh int tcp set global ecncapability=disabled > nul +netsh int tcp set global rsc=disabled > nul +netsh int tcp set global nonsackrttresiliency=disabled > nul +netsh int tcp set security mpp=disabled > nul +netsh int tcp set security profiles=disabled > nul +netsh int ip set global icmpredirects=disabled > nul +netsh int tcp set security mpp=disabled profiles=disabled > nul +netsh int ip set global multicastforwarding=disabled > nul +netsh int tcp set supplemental internet congestionprovider=ctcp > nul +netsh interface teredo set state disabled > nul +netsh winsock reset > nul +netsh int isatap set state disable > nul +netsh int ip set global taskoffload=disabled > nul +netsh int ip set global neighborcachelimit=4096 > nul +netsh int tcp set global dca=enabled > nul +netsh int tcp set global netdma=enabled > nul +PowerShell Disable-NetAdapterLso -Name "*" > nul +powershell "ForEach($adapter In Get-NetAdapter){Disable-NetAdapterPowerManagement -Name $adapter.Name -ErrorAction SilentlyContinue}" > nul +powershell "ForEach($adapter In Get-NetAdapter){Disable-NetAdapterLso -Name $adapter.Name -ErrorAction SilentlyContinue}" > nul +reg add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v "EnableICMPRedirect" /t REG_DWORD /d "1" /f > nul +reg add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v "EnablePMTUDiscovery" /t REG_DWORD /d "1" /f > nul +reg add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v "Tcp1323Opts" /t REG_DWORD /d "0" /f > nul +reg add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v "TcpMaxDupAcks" /t REG_DWORD /d "2" /f > nul +reg add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v "TcpTimedWaitDelay" /t REG_DWORD /d "32" /f > nul +reg add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v "GlobalMaxTcpWindowSize" /t REG_DWORD /d "8760" /f > nul +reg add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v "TcpWindowSize" /t REG_DWORD /d "8760" /f > nul +reg add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v "MaxConnectionsPerServer" /t REG_DWORD /d "0" /f > nul +reg add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v "MaxUserPort" /t REG_DWORD /d "65534" /f > nul +reg add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v "SackOpts" /t REG_DWORD /d "0" /f > nul +reg add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v "DefaultTTL" /t REG_DWORD /d "64" /f > nul +reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" /v "NetworkThrottlingIndex" /t REG_DWORD /d "4294967295" /f > nul +ipconfig /flushdns > nul +REM ; Disable network power saving +for /f %%r in ('reg query "HKLM\SYSTEM\ControlSet001\Control\Class\{4D36E972-E325-11CE-BFC1-08002bE10318}" /f "PCI\VEN_" /d /s^|Findstr HKEY_') do ( +reg add %%r /v "AutoDisableGigabit" /t REG_SZ /d "0" /f > nul +reg add %%r /v "EnableGreenEthernet" /t REG_SZ /d "0" /f > nul +reg add %%r /v "GigaLite" /t REG_SZ /d "0" /f > nul +reg add %%r /v "PowerSavingMode" /t REG_SZ /d "0" /f > nul +) +IF EXIST "%HomePath%\AppData\LocalLow\Temp" ( +del /s /f /q %HomePath%\AppData\LocalLow\Temp\*.* +call :done +) ELSE ( +echo ERROR! Cannot find TEMP folder recreating it... +timeout 5 > nul +md "%HomePath%\AppData\LocalLow\Temp" +call :done +) +:done +:nextnoreg +echo Calculating how much space I can free up for you +set Folder="%USERPROFILE%\appdata\local\temp" +echo I can delete more than: & Call :GetSize %Folder% & echo junk files in temp folder +pause +:GetSize +( +echo wscript.echo GetSize("%~1"^) +echo Function GetSize(MyFolder^) +echo Set fso = CreateObject("Scripting.FileSystemObject"^) +echo Set objFolder= fso.GetFolder(MyFolder^) +echo GetSize = FormatSize(objFolder.Size^) +echo End Function +echo '******************************************************************* +echo 'Function to format a number into typical size scales +echo Function FormatSize(iSize^) +echo aLabel = Array("bytes", "KB", "MB", "GB", "TB"^) +echo For i = 0 to 4 +echo If iSize ^> 1024 Then +echo iSize = iSize / 1024 +echo Else +echo Exit For +echo End If +echo Next +echo FormatSize = Round(iSize,2^) ^& " " ^& aLabel(i^) +echo End Function +echo '******************************************************************* +)>%tmp%\Size.vbs +Cscript /NoLogo %tmp%\Size.vbs +Del %tmp%\Size.vbs +echo Click to continue... +pause > nul +cls +cd / +echo. +echo Cleaning system junk files, please wait . . . +echo. +timeout 3 > nul +IF EXIST "%WinDir%\Temp" ( +del /s /f /q %WinDir%\Temp\*.* +call :done +) +:done +cls +IF EXIST "%WinDir%\Prefetch" ( +del /s /f /q %WinDir%\Prefetch\*.* +call :done +) +:done +cls +IF EXIST "%Temp%" ( +del /s /f /q %Temp%\*.* +call :done +) +:done +cls +IF EXIST "%AppData%\Temp" ( +del /s /f /q %AppData%\Temp\*.* +call :done +) +:done +cls +echo Cleaning system junk files, please wait . . . +echo Searching for temp files . . . (This may take a while) 10% DONE +del /f /s /q %systemdrive%\*.tmp +cls +echo Cleaning system junk files, please wait . . . +echo Searching for temp files . . . (This may take a while) 20% DONE +del /f /s /q %systemdrive%\*._mp +del "%LocalAppData%\Microsoft\Edge\User Data\Default\*history*." /s /f /q +del "%LocalAppData%\Microsoft\Edge\User Data\Default\LOG" /s /f /q +del "%LocalAppData%\Microsoft\Edge\User Data\Default\LOG.old" /s /f /q +del "%LocalAppData%\Microsoft\Edge\User Data\Default\Media History" /s /f /q +del "%LocalAppData%\Microsoft\Edge\User Data\Default\Media History-journal" /s /f /q +del "%LocalAppData%\Microsoft\Edge\User Data\Default\Network Action Predictor" /s /f /q +del "%LocalAppData%\Microsoft\Edge\User Data\Default\Network Action Predictor-journal" /s /f /q +del "%LocalAppData%\Microsoft\Edge\User Data\Default\Network Persistent State" /s /f /q +del "%LocalAppData%\Microsoft\Edge\User Data\Default\Reporting and NEL" /s /f /q +del "%LocalAppData%\Microsoft\Edge\User Data\Default\Reporting and NEL-journal" /s /f /q +del "%LocalAppData%\Microsoft\Edge\User Data\Default\QuotaManager" /s /f /q +del "%LocalAppData%\Microsoft\Edge\User Data\Default\QuotaManager-journal" /s /f /q +del "%LocalAppData%\Microsoft\Edge\User Data\Default\Shortcuts" /s /f /q +del "%LocalAppData%\Microsoft\Edge\User Data\Default\Shortcuts-journal" /s /f /q +del "%LocalAppData%\Microsoft\Edge\User Data\Default\Top Sites" /s /f /q +del "%LocalAppData%\Microsoft\Edge\User Data\Default\Top Sites-journal" /s /f /q +del "%LocalAppData%\Microsoft\Edge\User Data\Default\Visited Links" /s /f /q +del "%LocalAppData%\Microsoft\Edge\User Data\Default\Web Data" /s /f /q +del "%LocalAppData%\Microsoft\Edge\User Data\Default\Web Data-journal" /s /f /q +rd "%LocalAppData%\Microsoft\Edge\User Data\Default\AutofillStrikeDatabase" /s /q +rd "%LocalAppData%\Microsoft\Edge\User Data\Default\blob_storage" /s /q +rd "%LocalAppData%\Microsoft\Edge\User Data\Default\BudgetDatabase" /s /q +rd "%LocalAppData%\Microsoft\Edge\User Data\Default\Cache" /s /q +rd "%LocalAppData%\Microsoft\Edge\User Data\Default\Code Cache" /s /q +rd "%LocalAppData%\Microsoft\Edge\User Data\Default\Collections" /s /q +rd "%LocalAppData%\Microsoft\Edge\User Data\Default\data_reduction_proxy_leveldb" /s /q +rd "%LocalAppData%\Microsoft\Edge\User Data\Default\databases" /s /q +rd "%LocalAppData%\Microsoft\Edge\User Data\Default\File System" /s /q +rd "%LocalAppData%\Microsoft\Edge\User Data\Default\GPUCache" /s /q +rd "%LocalAppData%\Microsoft\Edge\User Data\Default\IndexedDB" /s /q +rd "%LocalAppData%\Microsoft\Edge\User Data\Default\Local Storage" /s /q +rd "%LocalAppData%\Microsoft\Edge\User Data\Default\Platform Notifications" /s /q +rd "%LocalAppData%\Microsoft\Edge\User Data\Default\Service Worker" /s /q +rd "%LocalAppData%\Microsoft\Edge\User Data\Default\Session Storage" /s /q +rd "%LocalAppData%\Microsoft\Edge\User Data\Default\Sessions" /s /q +rd "%LocalAppData%\Microsoft\Edge\User Data\Default\shared_proto_db" /s /q +rd "%LocalAppData%\Microsoft\Edge\User Data\Default\Site Characteristics Database" /s /q +rd "%LocalAppData%\Microsoft\Edge\User Data\Default\VideoDecodeStats" /s /q +rd "%LocalAppData%\Microsoft\Windows\AppCache" /s /q +rd "%LocalAppData%\Microsoft\Windows\History" /s /q +rd "%LocalAppData%\Microsoft\Windows\IECompatCache" /s /q +rd "%LocalAppData%\Microsoft\Windows\IECompatUaCache" /s /q +rd "%LocalAppData%\Microsoft\Windows\INetCache" /s /q +rd "%LocalAppData%\Microsoft\Windows\INetCookies" /s /q +rd "%LocalAppData%\Microsoft\Windows\WebCache" /s /q +RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 1 +cls +echo Cleaning system junk files, please wait . . . +echo Searching for temp files . . . (This may take a while) 60% DONE +del /f /s /q %systemdrive%\*.log +cls +echo Cleaning system junk files, please wait . . . +echo Searching for temp files . . . (This may take a while) 70% DONE +del /f /s /q %systemdrive%\*.gid +cls +echo Cleaning system junk files, please wait . . . +echo Searching for temp files . . . (This may take a while) 80% DONE +del /f /s /q %systemdrive%\*.chk +cls +echo Cleaning system junk files, please wait . . . +echo Searching for temp files . . . (This may take a while) 90% DONE +del /f /s /q %systemdrive%\*.old +cls +del /f /s /q %systemdrive%\recycled\*.* +cls +echo Cleaning system junk files, please wait . . . +echo Searching for temp files . . . (This may take a while) 100% DONE +del /f /s /q %windir%\*.bak +cls +echo Cleaning system junk files, please wait . . . +del /f /s /q %windir%\prefetch\*.* +cls +echo Cleaning system junk files, please wait . . . +rd /s /q %windir%\temp & md %windir%\temp +cls +echo Cleaning system junk files, please wait . . . +del /f /q %userprofile%\cookies\*.* +cls +echo Cleaning system junk files, please wait . . . +del /f /q %userprofile%\recent\*.* +cls +echo Cleaning system junk files, please wait . . . +del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*" +del /f /q "%userprofile%\AppData\Local\Microsoft\Windows\Temporary Internet Files\*.*" +cls +echo Cleaning system junk files, please wait . . . +del /f /s /q "%userprofile%\Local Settings\Temp\*.*" +cls +echo Cleaning system junk files, please wait . . . +del /f /s /q "%userprofile%\recent\*.*" +cls +echo Cleaning system junk files, please wait . . . +del /s /q %systemdrive%\$Recycle.bin +cls +echo Cleaning system junk files, please wait . . . +RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2 +RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 1 +RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8 +echo Cleaning system junk files, please wait . . . +REM ; Dont worry :) It isnt deleting the drivers (these folders are only needed while driver is installed and these files can be more that 1gigabytes!) +del /s /f /q %SYSTEMDRIVE%\AMD\*.* +del /s /f /q %SYSTEMDRIVE%\NVIDIA\*.* +del /s /f /q %SYSTEMDRIVE%\INTEL\*.* +REM ; Deleting the whole folders +rd /s /q %SYSTEMDRIVE%\AMD +rd /s /q %SYSTEMDRIVE%\NVIDIA +rd /s /q %SYSTEMDRIVE%\INTEL +echo Cleaning system junk files, please wait . . . +cleanmgr /autoclean +cls +echo ********************************** +echo * * * * +echo. Want to disable hibernation? +echo * * * * +echo ********************************** +echo. Press "Y" to apply +echo. Press "N" to skip +echo. +set /p choice=Enter choice [Y/N]: +IF /I "%choice%"=="Y" goto apply +IF /I "%choice%"=="N" goto next +echo. +:apply +echo Disabling hibernate . . . +timeout 3 > nul +powercfg.exe /hibernate off +reg add "HKLM\SYSTEM\ControlSet001\Control\Power" /v "HibernateEnabled" /t REG_DWORD /d "0" /f +reg add "HKLM\SYSTEM\ControlSet002\Control\Power" /v "HibernateEnabled" /t REG_DWORD /d "0" /f +reg add "HKLM\SYSTEM\CurrentControlSet\Control\Power" /v "HibernateEnabled" /t REG_DWORD /d "0" /f +goto :next +:next +cls +fsutil behavior set memoryusage 2 +cls +cd/ +:: powershell "Get-AppxPackage *windowscommunicationsapps* | Remove-AppxPackage" +:: powershell "Get-AppxPackage -allusers Microsoft.Windows.Cortana | Remove-AppxPackage" +:: powershell "Get-AppxPackage *feedback* | Remove-AppxPackage" +:: powershell "Get-AppxPackage *bingsports* | Remove-AppxPackage" +:: powershell "Get-AppxPackage *windowsphone* | Remove-AppxPackage" +:: powershell "Get-AppxPackage *Microsoft.SkypeApp* | Remove-AppxPackage" +:: powershell "Get-AppxPackage *Microsoft.News* | Remove-AppxPackage" +:: powershell "Set-MpPreference -DisableRealtimeMonitoring $true" +:: powershell "Set-MpPreference -SubmitSamplesConsent NeverSend" +:: powershell "Set-MpPreference -MAPSReporting Disable" +:: cd /d "%~dp0" + +@echo +cd/ +del *.log /a /s /q /f +cls +cleanmgr /autoclean +net stop wuauserv +net stop UsoSvc +rd /s /q C:\Windows\SoftwareDistribution +md C:\Windows\SoftwareDistribution +net start wuauserv +net start UsoSvc +cls +:: if exist "C:\Program Files\CCleaner" ( +:: cd "C:\Program Files\CCleaner" +:: CCleaner.exe /AUTO +:: call :ccleaner +:: ) +:ccleaner +cls +powershell "Enable-MMAgent -mc" +cls +timeout 10 > nul +echo. +echo Done! +echo. +echo +echo WARNING! IF YOU UPDATE WINDOWS YOU MAY NEED TO DO THE PROGRESS AGAIN . . . +echo. +echo Restart your computer to this to take effect. +echo Press anything to exit. +echo. & pause & exit > nul \ No newline at end of file