@echo off REM Setup Basic Things setlocal enabledelayedexpansion mode 120, 36 chcp 65001 >nul TITLE Vitality REM Set Colors set l= set r= set e= set ar= ::Ask for ADMIN permissions inside batch (https://stackoverflow.com/questions/1894967/how-to-request-administrator-access-inside-a-batch-file) REM Check for permissions if "%PROCESSOR_ARCHITECTURE%" EQU "amd64" ( >nul 2>&1 "%SYSTEMROOT%\SysWOW64\cacls.exe" "%SYSTEMROOT%\SysWOW64\config\system" ) else ( >nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system" ) REM If error flag set, we do not have admin. if '%errorlevel%' NEQ '0' ( echo. echo. echo. echo. echo. echo. echo. echo. echo. echo. echo. echo. echo. echo. echo %r% _ _ _____ __ _ _ _____ _%l% echo %r% \ \ / ^| ^| ^| ^| / /\ ^| ^| ^| ^| ^| ^| \ \_/%l% echo %r%\_\/ ^|_^| ^|_^| /_/--\ ^|_^|__ ^|_^| ^|_^| ^|_^|%l% echo. echo Requesting Admin Previleges ) else ( goto gotAdmin ) :UACPrompt echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs" set params= %* echo UAC.ShellExecute "cmd.exe", "/c ""%~s0"" %params:"=""%", "", "runas", 1 >> "%temp%\getadmin.vbs" "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs" exit /B :gotAdmin pushd "%CD%" CD /D "%~dp0" :: Check if this batch file has already determined the SystemType if exist "%temp%\SystemType.txt" ( set /p SystemType=<"%temp%\SystemType.txt" goto SkipCheck ) :: Initialize variable set "SystemType=Unknown" :: Run PowerShell command and assign output to SystemType for /f %%i in ('powershell -Command "try {$enclosure = Get-WmiObject Win32_SystemEnclosure; switch ($enclosure.ChassisTypes) { 3 {'Desktop'} 9 {'Laptop'} default {'Unknown'} }} catch {'Error'}"') do ( set "SystemType=%%i" ) :: Save the SystemType for future use echo %SystemType% > "%temp%\SystemType.txt" :: Relaunch the script set "batch_file=%~f0" start "" "%batch_file%" exit :SkipCheck if %SystemType%==Desktop set "SystemType=Desktop " if %SystemType%==Laptop set "SystemType=Laptop " REM Create Required Directories REM Check and Create Main Directory if not exist "C:\Vitality\" ( mkdir "C:\Vitality" ) REM Check and Create Info Directory if not exist "C:\Vitality\Info\" ( mkdir "C:\Vitality\Info" ) REM Check and Create Backup Directory if not exist "C:\Vitality\Backup\" ( mkdir "C:\Vitality\Backup" ) REM Check and Create Resources Directory if not exist "C:\Vitality\Resources\" ( mkdir "C:\Vitality\Resources" ) cd C:\Vitality cls REM Optimization Counter if not exist "C:\Vitality\v.bat" echo set "ran_optimizations=0"> v.bat call v.bat set "formatted_optimizations=%ran_optimizations%" if %formatted_optimizations% LSS 10 set "formatted_optimizations= %formatted_optimizations%" REM Choice Setup for /f %%A in ('"prompt $H &echo on &for %%B in (1) do rem"') do set BS=%%A REM Welcome Message if exist C:\Vitality\Info\welcome1 ( set welcome1=Welcome back %r%%username%%e%, have a good time using Vitality. ) else ( set welcome1=Welcome to Vitality %r%%username%%e%. Optimize your PC to %r%MAX%l% echo Vitality > C:\Vitality\Info\welcome1 ) for /F "tokens=* skip=1" %%n in ('WMIC path Win32_VideoController get Name ^| findstr "."') do set GPU_NAME=%%n >nul REM Tweaks Part set gpu1=NaN echo %GPU_NAME% | find "NVIDIA" && set gpu1=Nvidia >nul 2>&1 echo %GPU_NAME% | find "AMD" && set gpu1=AMD >nul 2>&1 REM Configuration Part set Configuration10=:Configuration14 echo %GPU_NAME% | find "AMD" && set Configuration10=:Configuration10AMD >nul 2>&1 echo %GPU_NAME% | find "NVIDIA" && set Configuration10=:Configuration10Nvidia >nul 2>&1 for /F "skip=1 delims=" %%A in ('wmic cpu get name') do ( set "cpuName=%%A" goto :check_brand ) :check_brand echo %cpuName% | find "Intel" >nul 2>&1 if %errorlevel%==0 ( set "cpu1=Intel" set "Configuration23=:Configuration23Intel" ) else ( set "cpu1=AMD" set "Configuration23=:Configuration23AMD" ) REM Go to last know page after applying tweaks if defined LastPage goto %LastPage% :Loading cls echo. echo. echo. echo. echo. echo. echo. echo. echo. echo. echo. echo. echo. echo. echo %r% _ _ _____ __ _ _ _____ _%l% echo %r% \ \ / ^| ^| ^| ^| / /\ ^| ^| ^| ^| ^| ^| \ \_/%l% echo %r%\_\/ ^|_^| ^|_^| /_/--\ ^|_^|__ ^|_^| ^|_^| ^|_^|%l% echo. cd "C:\Vitality\Backup" if not exist "%SYSTEMDRIVE%\Vitality\Backup\regbackup.reg" Regedit /e "%SYSTEMDRIVE%\Vitality\Backup\regbackup.reg" >nul 2>&1 if not exist "C:\Vitality\Backup\RestorePoint.bat" ( echo @echo off > "%SYSTEMDRIVE%\Vitality\Backup\RestorePoint.bat" echo reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore" /v "SystemRestorePointCreationFrequency" /t REG_DWORD /d 0 /f >> "C:\Vitality\Backup\RestorePoint.bat" echo powershell -ExecutionPolicy Unrestricted -NoProfile Enable-ComputerRestore -Drive 'C:\', 'D:\', 'E:\', 'F:\', 'G:\' >> "C:\Vitality\Backup\RestorePoint.bat" echo powershell -ExecutionPolicy Unrestricted -NoProfile Checkpoint-Computer -Description 'Vitality' >> "C:\Vitality\Backup\RestorePoint.bat" echo exit >> "%SYSTEMDRIVE%\Vitality\Backup\RestorePoint.bat" start /min "" "%SYSTEMDRIVE%\Vitality\Backup\RestorePoint.bat" ) Ping www.google.nl -n 1 -w 1000 >nul if %errorlevel% neq 0 ( echo %e% No %r%Internet Connection%e%, press C to continue anyway echo %l% [ %r%C%l% ] Continue [ %r%Q%l% ] Quit choice /c:"CQ" /n /m " " if !errorlevel! equ 2 exit /b echo. ) if %SystemType%==Unknown ( set MenuItem=%errorlevel% echo %e% Unknown %r%System Type%e%, please select your System Type echo %l% [ %r%D%l% ] Desktop [ %r%L%l% ] Laptop choice /c:DL /n /m " " if !errorlevel! equ 1 set "SystemType=Desktop " if !errorlevel! equ 2 set "SystemType=Laptop " del /f "%temp%\SystemType.txt" echo !SystemType! > "%temp%\SystemType.txt" echo. ) if exist "%SYSTEMDRIVE%\Vitality\Backup\regbackup.reg" ( if exist "%SYSTEMDRIVE%\Vitality\Backup\RestorePoint.bat" ( set "MStatus=Enabled " ) else ( set "MStatus=Disabled " ) ) else ( set "MStatus=Disabled " ) set "LastConfiguration=:Configuration1" :: OS informations set "OSVersion=Unknown " systeminfo > "%temp%\SystemInfo.txt" 2>nul for /f "delims=" %%i in ('findstr /B /C:"OS Name" "%temp%\SystemInfo.txt"') do set "OSInfo=%%i" call :checkOS goto :eof :checkOS if "%OSInfo%"=="OS Name: Microsoft Windows 7 Professional" set "OSVersion=Windows 7 " if "%OSInfo%"=="OS Name: Microsoft Windows 7 Enterprise" set "OSVersion=Windows 7 " if "%OSInfo%"=="OS Name: Microsoft Windows 8 Enterprise" set "OSVersion=Windows 8 " if "%OSInfo%"=="OS Name: Microsoft Windows 8.1 Professional" set "OSVersion=Windows 8.1 " if "%OSInfo%"=="OS Name: Microsoft Windows 10 Home" set "OSVersion=Windows 10 " if "%OSInfo%"=="OS Name: Microsoft Windows 10 Pro" set "OSVersion=Windows 10 " if "%OSInfo%"=="OS Name: Microsoft Windows 10 IoT Enterprise LTSC" set "OSVersion=Windows 10 " if "%OSInfo%"=="OS Name: Microsoft Windows 10 Enterprise" set "OSVersion=Windows 10 " if "%OSInfo%"=="OS Name: Microsoft Windows 10 Enterprise" set "OSVersion=Windows 10 " if "%OSInfo%"=="OS Name: Microsoft Windows 11 Home" set "OSVersion=Windows 11 " if "%OSInfo%"=="OS Name: Microsoft Windows 11 Pro" set "OSVersion=Windows 11 " if "%OSInfo%"=="OS Name: Microsoft Windows 11 Enterprise LTSC" set "OSVersion=Windows 11 " REM Tweaks Page 1 / FPS, Latency, GPU, Task Scheduler, Keboard and Mouse, CPU, Network set "FPS=False" set "Latency=False" set "GPU=False" set "Task=False" set "KBM=False" set "CPU=False" set "Network=False" REM Tweaks Page 2 / RAM, Disk, Windows Settings set "RAM=False" set "DISK=False" set "Windows=False" REM Recording Settings set "HighQuality=False" set "MediumQuality=False" set "LowQuality=False" REM Game Settings set "Minecraft=False" set "CSGO=False" set "Valorant=False" set "Fortnite=False" Set "COD=False" set "Apex=False" set "Rust=False" REM Privacy set "PrivacyCleanup=False" set "DataCol=False" set "SecurityImp=False" set "ConfigurePro=False" set "PrivacyOverSec=False" set "UIForPrivacy=False" set "LastTweaks1=true" REM Set Number Of Configuration Pages set "ConfigurationsPages=23" REM Set Number of Configuration Category Pages set "CategoryFPS_Pages=5" set "CategoryLatency_Pages=2" set "CategoryNvidiaGPU_Pages=3" set "CategoryAMDGPU_Pages=1" set "CategoryTaskSCH_Pages=1" set "CategoryKBM_Pages=1" set "CategoryNetwork_Pages=1" set "CategoryRAM_Pages=1" set "CategoryDISK_Pages=1" set "CategoryWindows_Pages=7" set "CategoryIntelCPU_Pages=1" set "CategoryAMDCPU_Pages=1" REM Configuration Page 1 / Category [FPS and Input Tweaks] Page 1 set "Visuals=True" set "WindowsUpdates=True" set "WindowsDefender=True" set "ProcessMitigations=True" set "DebloatWindows=True" set "FSE=True" REM Configuration Page 2 / Category [FPS and Input Tweaks] Page 2 if "%SystemType%"=="Desktop" ( set "PowerPlan=True" ) else ( set "PowerPlan=False" ) set "WindowsServices=True" set "Win32PrioritySeparation=True" set "DisableSearchIndexing=True" set "DisableFastStartup=True" set "ReserveCPUResources=True" REM Configuration Page 3 / Category [FPS and Input Tweaks] Page 3 set "DisableBackgroundApps=True" set "Winlogon=True" set "IntelMicroCode=True" set "AMDMicroCode=True" set "EnableGPUSheduling=True" set "DisableSettingsSynchroniyation=True" REM Configuration Page 4 / Category [FPS and Input Tweaks] Page 4 set "DisableRemoteAssistance=True" set "DisableGamebarpresencewriter=True" set "DisableSystemEnergySaving=True" set "SVCSplitThreshold=True" set "DisableUSBPowerSavings=True" set "EnableMSIMode=True" REM Configuration Page 5 / Category [FPS and Input Tweaks] Page 5 set "DevicePriorityUndefined=True" REM Configuration Page 6 / Category [Latency Tweaks] Page 1 set "SpectreMeltdown=True" set "DisableIDLE=False" set "MMCSS=True" set "CSRSS=True" set "LowProcessPriority=True" set "LowAudioLatency=True" REM Configuration Page 7 / Category [Latency Tweaks] Page 2 set "TimerResolution=True" set "BCDLowLatency=True" set "DisableNetworkTrhottling=True" set "LatencyTolerance=True" REM Configuration Page 8 / Category [Network Tweaks] Page 1 set "DisableNaglesAlgorithm=True" set "NIC=True" set "DNS=True" set "WindowsNetworkSettigns=True" set "Autotunning=False" REM Configuration Page 9 / Category [Keyboard and Mouse Tweaks] Page 1 set "KeyboardDataSize=True" set "AdjustKeyboardParameters=True" set "KeyboardAccessibilitySettings=True" set "MouseDataSize=True" set "DisablePointerAcceleration=True" set "MouseAccessibilitySettings=True" REM Configuration Page 10 / Category [Nvidia Tweaks] Page 1 set "GameMode=True" set "NvidiaTelemetry=True" set "P0States=True" set "HDCP=True" set "Preemption=True" set "Logging=True" REM Configuration Page 11 / Category [Nvidia Tweaks] Page 2 set "NvidiaProfileInspector=True" set "DisableTiledDisplay=True" set "DisableTCC=True" set "ForceContiguousMemoryAllocation=True" set "KBoost=True" set "DisableScaling=True" REM Configuration Page 12 / Category [Nvidia Tweaks] Page 3 set "NoECC=True" set "UnrestrictedClockPolicy=True" REM Configuration Page 13 / Category [AMD GPU Tweaks] Page 1 set "GameModeAMD=True" set "AMDOptimizedSettings=True" set "AMDDebloat=True" REM Configuration Page 14 / Category [RAM Tweaks] Page 1 set "MemoryManagment=True" set "LargePageDrivers=True" REM Configuration Page 15 / Category [Disk Tweaks] Page 1 set "FileSystemOptimization=True" set "Cleaner=True" set "Startupcleaner=True" REM Configuration Page 16 / Category [Windows Tweaks] Page 1 set "DisableTelemetry=True" set "DisableHibernation=True" set "BootOptions=True" set "PasswordOnWakeUp=True" set "DisableAutomaticMaintenance=True" set "DisableLocationTracking=True" REM Configuration Page 17 / Category [Windows Tweaks] Page 2 set "DisablePushNotifications=True" set "DisableDriverSearching=True" set "DisableWindowsNotifications=True" set "DisableTransparency=True" set "PauseMapsUpdates=True" set "DisableSettingsSync=True" REM Configuration Page 18 / Category [Windows Tweaks] Page 3 set "DisableAdvertisingID=True" set "DisableWebInSearch=True" set "DisableRemoteAssistance=True" set "DisableInventoryCollector=True" set "DisableWindowsErrorReporting=True" set "DisableCustomerExperienceProgram=True" REM Configuration Page 19 / Category [Windows Tweaks] Page 4 set "DisableOneDriveSync=True" set "DisableBiometrics=True" set "DenyCapabilityForApps=True" set "DisableLocationServices=True" set "PreventWindowsMarkingFiles=True" set "DisableLanguageBar=False" REM Configuration Page 20 / Category [Windows Tweaks] Page 5 set "DisableStickyKeys=True" set "DisableProgramCompatibilityAssistant=True" set "DisableFaultTolerantHeap=True" set "DisablePowerShellTelemtry=True" set "DisableWindowsErrorReporting=True" set "DisableRemoteAssistance=True" REM Configuration Page 21 / Category [Windows Tweaks] Page 6 set "Remove3DObjectsFromExplorer=True" set "DisableSignInAndLockLastUser=True" set "DisableOnlineTips=True" set "DisableTypingInsights=True" set "DisableSuggestionsInTheSearchBox=True" set "RestoreOldContextMenu=True" REM Configuration Page 22 / Category [Windows Tweaks] Page 7 set "RemovePinToQuickAccess=True" set "HideFoldersInQuickAccess=False" set "HideQuickAccessFromFileExplorer=True" set "LaunchFileExplorerToThisPC=True" set "TurnOffDisplayOfRecentSearch=True" set "ClearHistoryOfRecentlyOpenedDocumentsOnExit=True" REM Configuration Page 23 / Category [Intel CPU Tweaks] Page 1 set "IntelCpuVirtualization=True" set "IntelCoreIsolation=True" set "IntelCStates=True" set "IntelPowerThrottling=True" set "AMDServices=True" set "IntelTSX=True" REM Configuration Page 23 / Category [AMD CPU Tweaks] Page 1 set "AMDCpuVirtualization=True" set "AMDCoreIsolation=True" set "AMDCStates=True" set "AMDPowerThrottling=True" set "IntelServices=True" set "AMDTSX=True" REM Check if config.ini exists if exist C:\Vitality\config.ini ( for /f "tokens=1,2 delims==" %%a in (C:\Vitality\config.ini) do ( set "%%a=%%b" ) ) :Home set LastPage=:Home cls echo. echo %l%┌─────────────────────────────┐ echo │ %r%W%l% = %e%Up%l% %r%D%l% = %e%Right%l% │ %r% _ _ _____ __ _ _ _____ _%l% echo │ %r%S%l% = %e%Down%l% %r%A%l% = %e%Left%l% │ %r% \ \ / ^| ^| ^| ^| / /\ ^| ^| ^| ^| ^| ^| \ \_/%l% %r%▲%e% Pages [%r%1%e%/1]%l% echo │ %r%X%l% = %e%Apply%l% │ %r%\_\/ ^|_^| ^|_^| /_/--\ ^|_^|__ ^|_^| ^|_^| ^|_^|%l% echo. │ It's not that hard is it? │ echo └─────────────────────────────┘ echo %l%┌─────────────────────────────┐ %r%▲%e% %welcome1% %l% echo ^│ ^│ echo ^│ ^│ ┌───────────────────────────────────────────────────────────────────┐ echo ^│ %r%Home%l% ^│ │ %ar%▼ %ar%Disclaimers%l% │ echo ^│ ^│ │ │ echo ^│ ^│ │ %ar%•%e% Use at Your Own Risk. %l% │ echo ^│ Tweaks ^│ │ │ echo ^│ ^│ │ %ar%•%e% Not guaranteed to be compatible with all configurations. %l% │ echo ^│ ^│ │ │ echo ^│ Ingame Settings ^│ │ %ar%•%e% Create a full system backup before applying any tweaks. %l% │ echo ^│ ^│ │ │ echo ^│ ^│ │ %ar%•%e% Disable antivirus to avoid conflicts. %l% │ echo ^│ Recording Settings ^│ │ │ echo ^│ ^│ │ %ar%•%e% Understand the implications of each tweak before applying it. %l% │ echo ^│ ^│ └───────────────────────────────────────────────────────────────────┘ echo ^│ Privacy ^│ echo ^│ ^│ ┌───────────────────────────────────────────────────────────────────┐ echo ^│ ^│ │ %r%▼ %r%Informations%l% │ echo ^│ Configuration ^│ │ │ echo ^│ ^│ │ %e%Applied Optimizations: %r%%formatted_optimizations%%l% %e%Status of Backup: %r%%MStatus%%l%│ echo ^│ ^│ │ │ echo ^│ Credits ^│ │ %e%Operating System: %r%%OSVersion%%l%%e%System Type: %r%%SystemType%%l%│ echo ^│ ^│ │ │ echo ^│ ^│ └───────────────────────────────────────────────────────────────────┘ echo └─────────────────────────────┘ choice /c:WS /n /m " " set MenuItem=%errorlevel% if "%MenuItem%"=="1" goto Credits if "%MenuItem%"=="2" ( if "%LastTweaks1%"=="true" ( goto :LastTweaks1 ) else ( goto :LastTweaks2 ) ) :Tweaks :LastTweaks1 set LastPage=:Tweaks set LastTweaks1=true set LastTweaks2=False set "FPSc=" if "%FPS%"=="False" ( set "FPSc=" ) else ( set "FPSc=" ) set "Latencyc=" if "%Latency%"=="False" ( set "Latencyc=" ) else ( set "Latencyc=" ) set "Networkc=" if "%Network%"=="False" ( set "Networkc=" ) else ( set "Networkc=" ) set "KBMc=" if "%KBM%"=="False" ( set "KBMc=" ) else ( set "KBMc=" ) set "Taskc=" if "%Task%"=="False" ( set "Taskc=" ) else ( set "Taskc=" ) set "Taskc=" if "%Task%"=="False" ( set "Taskc=" ) else ( set "Taskc=" ) set "GPUc=" if "%GPU%"=="False" ( set "GPUc=" ) else ( set "GPUc=" ) set "CPUc=" if "%CPU%"=="False" ( set "CPUc=" ) else ( set "CPUc=" ) cls echo. echo %l%┌─────────────────────────────┐ echo │ %r%W%l% = %e%Up%l% %r%D%l% = %e%Right%l% │ %r% _ _ _____ __ _ _ _____ _%l% echo │ %r%S%l% = %e%Down%l% %r%A%l% = %e%Left%l% │ %r% \ \ / ^| ^| ^| ^| / /\ ^| ^| ^| ^| ^| ^| \ \_/%l% %r%▲%e% Pages [%r%1%e%/2]%l% echo │ %r%X%l% = %e%Apply%l% │ %r%\_\/ ^|_^| ^|_^| /_/--\ ^|_^|__ ^|_^| ^|_^| ^|_^|%l% Use %r%D%l% to go on new page echo. │ It's not that hard is it? │ echo └─────────────────────────────┘ echo %l%┌─────────────────────────────┐ %r%▲%e% Instruction: Press %r%0-5%e% and the button will turn green%l% echo ^│ ^│ Everything that's %r%green%l% means that will be optimized once you press %r%X%l% echo ^│ ^│ echo ^│ Home ^│ echo ^│ ^│ %e%[%r% 0 %e%] %r%•%e% FPS and Input Delay %l% %FPSc%▼%l% echo ^│ ^│ Enhance FPS and Reduce Input Delay for Better Gaming. echo ^│ %r%Tweaks%l% ^│ echo ^│ ^│ %e%[%r% 1 %e%] %r%•%e% Latency %l% %Latencyc%▼%l% echo ^│ ^│ Significantly Minimize Computer Latency for Enhanced Performance. echo ^│ Ingame Settings ^│ echo ^│ ^│ %e%[%r% 2 %e%] %r%•%e% Network %l% %Networkc%▼%l% echo ^│ ^│ Optimize Internet Performance Effectively. echo ^│ Recording Settings ^│ echo ^│ ^│ %e%[%r% 3 %e%] %r%•%e% KBM %l% %KBMc%▼%l% echo ^│ ^│ Enhance Keyboard and Mouse Functionality with Tweaks. echo ^│ Privacy ^│ echo ^│ ^│ %e%[%r% 4 %e%] %r%•%e% Task Scheduler %l% %Taskc%▼%l% echo ^│ ^│ Optimize Performance by Disabling Unnecessary Task Scheduler Tasks. echo ^│ Configuration ^│ echo ^│ ^│ %e%[%r% 5 %e%] %r%•%e% GPU Tweaks %GPUc%▼%l% echo ^│ ^│ Unlock Peak GPU Performance with our tweaks echo ^│ Credits ^│ echo ^│ ^│ echo ^│ ^│ echo └─────────────────────────────┘ %l%┌───────────────┐ %l%┌───────────────┐ %l%┌───────────────┐ %l%┌───────────────┐ echo %l%│ %e%Apply [%r%X%e%]%l% │ %l%│ %e%Revert [%r%R%e%]%l% │ %l%│ %e%Configure [%r%C%e%]%l% │ %l%│ %e%Export [%r%E%e%]%l% │ echo └───────────────┘ └───────────────┘ └───────────────┘ └───────────────┘ choice /c:WS012345DAXCRE /n /m " " set MenuItem=%errorlevel% if "%MenuItem%"=="1" goto Home if "%MenuItem%"=="2" goto IngameSettings if "%MenuItem%"=="3" ( if "%FPS%"=="False" ( set "FPS=true" ) else ( set "FPS=False" ) ) && goto Tweaks if "%MenuItem%"=="4" ( if "%Latency%"=="False" ( set "Latency=true" ) else ( set "Latency=False" ) ) && goto Tweaks if "%MenuItem%"=="5" ( if "%Network%"=="False" ( set "Network=true" ) else ( set "Network=False" ) ) && goto Tweaks if "%MenuItem%"=="6" ( if "%KBM%"=="False" ( set "KBM=true" ) else ( set "KBM=False" ) ) && goto Tweaks if "%MenuItem%"=="7" ( if "%Task%"=="False" ( set "Task=true" ) else ( set "Task=False" ) ) && goto Tweaks if "%MenuItem%"=="8" ( if "%GPU%"=="False" ( set "GPU=true" ) else ( set "GPU=False" ) ) && goto Tweaks if "%MenuItem%"=="9" goto Tweaks2 if "%MenuItem%"=="10" goto Tweaks2 if "%MenuItem%"=="11" goto TweaksProceed if "%MenuItem%"=="12" goto %LastConfiguration% if "%MenuItem%"=="13" goto Revert if "%MenuItem%"=="14" goto Export :Tweaks2 :LastTweaks2 set LastPage=:Tweaks2 set LastTweaks1=False set LastTweaks2=true set "RAMc=" if "%RAM%"=="False" ( set "RAMc=" ) else ( set "RAMc=" ) set "DISKc=" if "%DISK%"=="False" ( set "DISKc=" ) else ( set "DISKc=" ) set "Windowsc=" if "%Windows%"=="False" ( set "Windowsc=" ) else ( set "Windowsc=" ) set "CPUc=" if "%CPU%"=="False" ( set "CPUc=" ) else ( set "CPUc=" ) cls echo. echo %l%┌─────────────────────────────┐ echo │ %r%W%l% = %e%Up%l% %r%D%l% = %e%Right%l% │ %r% _ _ _____ __ _ _ _____ _%l% echo │ %r%S%l% = %e%Down%l% %r%A%l% = %e%Left%l% │ %r% \ \ / ^| ^| ^| ^| / /\ ^| ^| ^| ^| ^| ^| \ \_/%l% %r%▲%e% Pages [%r%2%e%/2]%l% echo │ %r%X%l% = %e%Apply%l% │ %r%\_\/ ^|_^| ^|_^| /_/--\ ^|_^|__ ^|_^| ^|_^| ^|_^|%l% Use %r%A%l% to go on previous page echo. │ It's not that hard is it? │ echo └─────────────────────────────┘ echo %l%┌─────────────────────────────┐ %r%▲%e% Instruction: Press %r%6-9%e% and the button will turn green%l% echo ^│ ^│ Everything that's %r%green%l% means that will be optimized once you press %r%X%l% echo ^│ ^│ echo ^│ Home ^│ echo ^│ ^│ %e%[%r% 6 %e%] %r%•%e% RAM %l% %RAMc%▼%l% echo ^│ ^│ Unlock Top-notch Performance with RAM Optimization. echo ^│ %r%Tweaks%l% ^│ echo ^│ ^│ %e%[%r% 7 %e%] %r%•%e% DISK %l% %DISKc%▼%l% echo ^│ ^│ Achieve Optimal Disk Performance with our tweaks. echo ^│ Ingame Settings ^│ echo ^│ ^│ %e%[%r% 8 %e%] %r%•%e% Windows %l% %Windowsc%▼%l% echo ^│ ^│ Enhance Your Windows Experience with These Superior Settings. echo ^│ Recording Settings ^│ echo ^│ ^│ %e%[%r% 9 %e%] %r%•%e% CPU Tweaks %l% %CPUc%▼%l% echo ^│ ^│ Unlock Peak CPU Performance with our tweaks. echo ^│ Privacy ^│ echo ^│ ^│ echo ^│ ^│ echo ^│ Configuration ^│ echo ^│ ^│ echo ^│ ^│ echo ^│ Credits ^│ echo ^│ ^│ echo ^│ ^│ echo └─────────────────────────────┘ %l%┌───────────────┐ %l%┌───────────────┐ %l%┌───────────────┐ %l%┌───────────────┐ echo %l%│ %e%Apply [%r%X%e%]%l% │ %l%│ %e%Revert [%r%R%e%]%l% │ %l%│ %e%Configure [%r%C%e%]%l% │ %l%│ %e%Export [%r%E%e%]%l% │ echo └───────────────┘ └───────────────┘ └───────────────┘ └───────────────┘ choice /c:WS6789ADXCRE /n /m " " set MenuItem=%errorlevel% if "%MenuItem%"=="1" goto Home if "%MenuItem%"=="2" goto IngameSettings if "%MenuItem%"=="3" ( if "%RAM%"=="False" ( set "RAM=true" ) else ( set "RAM=False" ) ) && goto Tweaks2 if "%MenuItem%"=="4" ( if "%DISK%"=="False" ( set "DISK=true" ) else ( set "DISK=False" ) ) && goto Tweaks2 if "%MenuItem%"=="5" ( if "%Windows%"=="False" ( set "Windows=true" ) else ( set "Windows=False" ) ) && goto Tweaks2 if "%MenuItem%"=="6" ( if "%CPU%"=="False" ( set "CPU=true" ) else ( set "CPU=False" ) ) && goto Tweaks2 if "%MenuItem%"=="7" goto Tweaks if "%MenuItem%"=="8" goto Tweaks if "%MenuItem%"=="9" goto TweaksProceed if "%MenuItem%"=="10" goto %LastConfiguration% if "%MenuItem%"=="11" goto Revert if "%MenuItem%"=="12" goto Export :IngameSettings set LastPage=:IngameSettings cls set "Minecraftc=" if "%Minecraft%"=="False" ( set "Minecraftc=" ) else ( set "Minecraftc=" ) set "Valorantc=" if "%Valorant%"=="False" ( set "Valorantc=" ) else ( set "Valorantc=" ) set "Fortnitec=" if "%Fortnite%"=="False" ( set "Fortnitec=" ) else ( set "Fortnitec=" ) set "CSGOc=" if "%CSGO%"=="False" ( set "CSGOc=" ) else ( set "CSGOc=" ) cls echo. echo %l%┌─────────────────────────────┐ echo │ %r%W%l% = %e%Up%l% %r%D%l% = %e%Right%l% │ %r% _ _ _____ __ _ _ _____ _%l% echo │ %r%S%l% = %e%Down%l% %r%A%l% = %e%Left%l% │ %r% \ \ / ^| ^| ^| ^| / /\ ^| ^| ^| ^| ^| ^| \ \_/%l% %r%▲%e% Pages [%r%1%e%/1]%l% echo │ %r%X%l% = %e%Apply%l% │ %r%\_\/ ^|_^| ^|_^| /_/--\ ^|_^|__ ^|_^| ^|_^| ^|_^|%l% echo. │ It's not that hard is it? │ echo └─────────────────────────────┘ echo %l%┌─────────────────────────────┐ %r%▲%e% Instruction: Press %r%1-3%e% and the button will turn green%l% echo ^│ ^│ Everything that's %r%green%l% means that will be optimized once you press %r%X%l% echo ^│ ^│ echo ^│ Home ^│ echo ^│ ^│ %e%[%r% 1 %e%] %r%•%e% Minecraft%l% %Minecraftc%▼%l% echo ^│ ^│ Configure Minecraft Settings (1.8.9) echo ^│ Tweaks ^│ echo ^│ ^│ %e%[%r% 2 %e%] %r%•%e% Valorant%l% %Valorantc%▼%l% echo ^│ ^│ Valorant High Priority echo ^│ %r%Ingame Settings%l% ^│ echo ^│ ^│ %e%[%r% 3 %e%] %r%•%e% Fortnite%l% %Fortnitec%▼%l% echo ^│ ^│ Set Fortnite High Priority echo ^│ Recording Settings ^│ echo ^│ ^│ echo ^│ ^│ echo ^│ Privacy ^│ echo ^│ ^│ echo ^│ ^│ echo ^│ Configuration ^│ echo ^│ ^│ echo ^│ ^│ echo ^│ Credits ^│ echo ^│ ^│ echo ^│ ^│ echo └─────────────────────────────┘ %l%┌───────────────┐ echo %l%│ %e%Apply [%r%X%e%]%l% │ echo └───────────────┘ choice /c:WSX123 /n /m " " set MenuItem=%errorlevel% if "%MenuItem%"=="1" ( if "%LastTweaks1%"=="true" ( goto :LastTweaks1 ) else ( goto :LastTweaks2 ) ) if "%MenuItem%"=="2" goto RecordingSettings if "%MenuItem%"=="3" goto TweaksProceed if "%MenuItem%"=="4" ( if "%Minecraft%"=="False" ( set "Minecraft=true" ) else ( set "Minecraft=False" ) ) && goto IngameSettings if "%MenuItem%"=="5" ( if "%Valorant%"=="False" ( set "Valorant=true" ) else ( set "Valorant=False" ) ) && goto IngameSettings if "%MenuItem%"=="6" ( if "%Fortnite%"=="False" ( set "Fortnite=true" ) else ( set "Fortnite=False" ) ) && goto IngameSettings :RecordingSettings set LastPage=:RecordingSettings set "HighQualityc=" if "%HighQuality%"=="False" ( set "HighQualityc=" ) else ( set "HighQualityc=" ) set "MediumQualityc=" if "%MediumQuality%"=="False" ( set "MediumQualityc=" ) else ( set "MediumQualityc=" ) set "LowQualityc=" if "%LowQuality%"=="False" ( set "LowQualityc=" ) else ( set "LowQualityc=" ) if "%gpu1%"=="Nvidia" set encoder=Nvidia if "%gpu1%"=="AMD" set encoder=AMD if "%gpu1%"=="NaN" set encoder=CPU cls echo. echo %l%┌─────────────────────────────┐ echo │ %r%W%l% = %e%Up%l% %r%D%l% = %e%Right%l% │ %r% _ _ _____ __ _ _ _____ _%l% echo │ %r%S%l% = %e%Down%l% %r%A%l% = %e%Left%l% │ %r% \ \ / ^| ^| ^| ^| / /\ ^| ^| ^| ^| ^| ^| \ \_/%l% %r%▲%e% Pages [%r%1%e%/1]%l% echo │ %r%X%l% = %e%Apply%l% │ %r%\_\/ ^|_^| ^|_^| /_/--\ ^|_^|__ ^|_^| ^|_^| ^|_^|%l% (Renders are from HoneCtrl) echo. │ It's not that hard is it? │ echo └─────────────────────────────┘ echo %l%┌─────────────────────────────┐ %r%▲%e% Instruction: Press %r%1-3%e% and the button will turn green%l% echo ^│ ^│ Everything that's %r%green%l% means that will be optimized once you press %r%X%l% echo ^│ ^│ echo ^│ Home ^│ echo ^│ ^│ %e%[%r% 1 %e%] %r%•%e% High Quality%l% %HighQualityc%▼%l% echo ^│ ^│ These recording settings are suitable for short videos however, echo ^│ Tweaks ^│ they may not be optimal for longer videos due to higher storage usage. echo ^│ ^│ echo ^│ ^│ echo ^│ Ingame Settings ^│ echo ^│ ^│ %e%[%r% 2 %e%] %r%•%e% Medium Quality%l% %MediumQualityc%▼%l% echo ^│ ^│ These recording settings are well-suited for both short and long videos, echo ^│ %r%Recording Settings%l% ^│ striking the perfect balance with medium storage usage while maintaining echo ^│ ^│ optimal performance. echo ^│ ^│ echo ^│ Privacy ^│ echo ^│ ^│ echo ^│ ^│ %e%[%r% 3 %e%] %r%•%e% Low Quality%l% %LowQualityc%▼%l% echo ^│ Configuration ^│ While these recording settings offer exceptionally low storage usage, echo ^│ ^│ it's worth noting that. they may result in subpar video quality. echo ^│ ^│ Consider utilizing these settings as a last resort when all other echo ^│ Credits ^│ options are unavailable. echo ^│ ^│ echo ^│ ^│ echo └─────────────────────────────┘ %l%┌───────────────┐ echo %l%│ %e%Apply [%r%X%e%]%l% │ echo └───────────────┘ choice /c:WS123X /n /m " " set MenuItem=%errorlevel% if "%MenuItem%"=="1" goto IngameSettings if "%MenuItem%"=="2" goto Privacy if "%MenuItem%"=="3" ( if "%HighQuality%"=="False" ( set "HighQuality=true" set "MediumQuality=False" set "LowQuality=False" ) else ( set "HighQuality=False" ) ) && goto RecordingSettings if "%MenuItem%"=="4" ( if "%MediumQuality%"=="False" ( set "HighQuality=False" set "MediumQuality=true" set "LowQuality=False" ) else ( set "MediumQuality=False" ) ) && goto RecordingSettings if "%MenuItem%"=="5" ( if "%LowQuality%"=="False" ( set "HighQuality=False" set "MediumQuality=False" set "LowQuality=True" ) else ( set "LowQuality=False" ) ) && goto RecordingSettings if "%MenuItem%"=="6" goto TweaksProceed :Privacy cls set LastPage=:Privacy set "PrivacyCleanupc=" if "%PrivacyCleanup%"=="False" ( set "PrivacyCleanupc=" ) else ( set "PrivacyCleanupc=" ) set "DataColc=" if "%DataCol%"=="False" ( set "DataColc=" ) else ( set "DataColc=" ) set "SecurityImpc=" if "%SecurityImp%"=="False" ( set "SecurityImpc=" ) else ( set "SecurityImpc=" ) set "ConfigureProc=" if "%ConfigurePro%"=="False" ( set "ConfigureProc=" ) else ( set "ConfigureProc=" ) set "PrivacyOverSecc=" if "%PrivacyOverSec%"=="False" ( set "PrivacyOverSecc=" ) else ( set "PrivacyOverSecc=" ) set "UIForPrivacyc=" if "%UIForPrivacy%"=="False" ( set "UIForPrivacyc=" ) else ( set "UIForPrivacyc=" ) echo. echo %l%┌─────────────────────────────┐ echo │ %r%W%l% = %e%Up%l% %r%D%l% = %e%Right%l% │ %r% _ _ _____ __ _ _ _____ _%l% echo │ %r%S%l% = %e%Down%l% %r%A%l% = %e%Left%l% │ %r% \ \ / ^| ^| ^| ^| / /\ ^| ^| ^| ^| ^| ^| \ \_/%l% %r%▲%e% Pages [%r%1%e%/1]%l% echo │ %r%X%l% = %e%Apply%l% │ %r%\_\/ ^|_^| ^|_^| /_/--\ ^|_^|__ ^|_^| ^|_^| ^|_^|%l% echo. │ It's not that hard is it? │ echo └─────────────────────────────┘ echo %l%┌─────────────────────────────┐ %r%▲%e% Instruction: Press %r%1-6%e% and the button will turn green%l% echo ^│ ^│ Everything that's %r%green%l% means that will be optimized once you press %r%X%l% echo ^│ ^│ echo ^│ Home ^│ echo ^│ ^│ %e%[%r% 1 %e%] %r%•%e% Privacy Cleanup%l% %PrivacyCleanupc%▼%l% echo ^│ ^│ Audit and remove unnecessary data, ensuring compliance and security. echo ^│ Tweaks ^│ echo ^│ ^│ %e%[%r% 2 %e%] %r%•%e% Data Collection%l% %DataColc%▼%l% echo ^│ ^│ Deletes Microsoft Gathered Informations About You. echo ^│ Ingame Settings ^│ echo ^│ ^│ %e%[%r% 3 %e%] %r%•%e% Security Improvements%l% %SecurityImpc%▼%l% echo ^│ ^│ Strengthen systems with updates, encryption, and regular assessments. echo ^│ Recording Settings ^│ echo ^│ ^│ %e%[%r% 4 %e%] %r%•%e% Configure Programs%l% %ConfigureProc%▼%l% echo ^│ ^│ Removes data collection from 3rd party programs. (Visual Studio) echo ^│ %r%Privacy%l% ^│ echo ^│ ^│ %e%[%r% 5 %e%] %r%•%e% Privacy Over Security%l% %PrivacyOverSecc%▼%l% echo ^│ ^│ Disables Windows Defender and automatic updates. echo ^│ Configuration ^│ echo ^│ ^│ %e%[%r% 6 %e%] %r%•%e% UI For Privacy%l% %UIForPrivacyc%▼%l% echo ^│ ^│ Elevate Your Windows 10 UI Experience by Disabling Annoying Elements. echo ^│ Credits ^│ echo ^│ ^│ echo ^│ ^│ echo └─────────────────────────────┘ %l%┌───────────────┐ echo %l%│ %e%Apply [%r%X%e%]%l% │ echo └───────────────┘ choice /c:WS123456X /n /m " " set MenuItem=%errorlevel% if "%MenuItem%"=="1" goto RecordingSettings if "%MenuItem%"=="2" goto %LastConfiguration% if "%MenuItem%"=="3" ( if "%PrivacyCleanup%"=="False" ( set "PrivacyCleanup=true" ) else ( set "PrivacyCleanup=False" ) ) && goto Privacy if "%MenuItem%"=="4" ( if "%DataCol%"=="False" ( set "DataCol=true" ) else ( set "DataCol=False" ) ) && goto Privacy if "%MenuItem%"=="5" ( if "%SecurityImp%"=="False" ( set "SecurityImp=true" ) else ( set "SecurityImp=False" ) ) && goto Privacy if "%MenuItem%"=="6" ( if "%ConfigurePro%"=="False" ( set "ConfigurePro=true" set "goToTweaks=true" ) else ( set "ConfigurePro=False" ) ) && goto Privacy if "%MenuItem%"=="7" ( if "%PrivacyOverSec%"=="False" ( set "PrivacyOverSec=true" ) else ( set "PrivacyOverSec=False" ) ) && goto Privacy if "%MenuItem%"=="8" ( if "%UIForPrivacy%"=="False" ( set "UIForPrivacy=true" ) else ( set "UIForPrivacy=False" ) ) && goto Privacy if "%MenuItem%"=="9" goto TweaksProceed :Configuration1 set LastConfiguration=:Configuration1 set "Visualsc=" if "%Visuals%"=="False" ( set "Visualsc=" ) else ( set "Visualsc=" ) set "WindowsUpdatesc=" if "%WindowsUpdates%"=="False" ( set "WindowsUpdatesc=" ) else ( set "WindowsUpdatesc=" ) set "WindowsDefenderc=" if "%WindowsDefender%"=="False" ( set "WindowsDefenderc=" ) else ( set "WindowsDefenderc=" ) set "ProcessMitigationsc=" if "%ProcessMitigations%"=="False" ( set "ProcessMitigationsc=" ) else ( set "ProcessMitigationsc=" ) set "DebloatWindowsc=" if "%DebloatWindows%"=="False" ( set "DebloatWindowsc=" ) else ( set "DebloatWindowsc=" ) set "FSEc=" if "%FSE%"=="False" ( set "FSEc=" ) else ( set "FSEc=" ) cls echo. echo %l%┌─────────────────────────────┐ echo │ %r%W%l% = %e%Up%l% %r%D%l% = %e%Right%l% │ %r% _ _ _____ __ _ _ _____ _%l% echo │ %r%S%l% = %e%Down%l% %r%A%l% = %e%Left%l% │ %r% \ \ / ^| ^| ^| ^| / /\ ^| ^| ^| ^| ^| ^| \ \_/%l% %r%▲%e% Pages [%r%1%e%/%ConfigurationsPages%]%l% echo │ %r%X%l% = %e%Apply%l% │ %r%\_\/ ^|_^| ^|_^| /_/--\ ^|_^|__ ^|_^| ^|_^| ^|_^|%l% %e%Cat. [%r%1%e%/%CategoryFPS_Pages%]%l% echo. │ It's not that hard is it? │ echo └─────────────────────────────┘ echo %l%┌─────────────────────────────┐ %r%▲%e% Configuration: %r%FPS And Input Delay%l% echo ^│ ^│ Here you can configure all settings that are going to be applied echo ^│ ^│ echo ^│ Home ^│ echo ^│ ^│ %e%[%r% 1 %e%] %r%•%e% Visuals%l% %Visualsc%▼%l% echo ^│ ^│ Optimize Windows Visuals echo ^│ Tweaks ^│ echo ^│ ^│ %e%[%r% 2 %e%] %r%•%e% Windows Updates%l% %WindowsUpdatesc%▼%l% echo ^│ ^│ Disables Windows Updates echo ^│ Ingame Settings ^│ echo ^│ ^│ %e%[%r% 3 %e%] %r%•%e% Windows Defender%l% %WindowsDefenderc%▼%l% echo ^│ ^│ Disables Windows Defender And Security echo ^│ Recording Settings ^│ echo ^│ ^│ %e%[%r% 4 %e%] %r%•%e% Process Mitigations%l% %ProcessMitigationsc%▼%l% echo ^│ ^│ Disables Process Mitigations echo ^│ Privacy ^│ echo ^│ ^│ %e%[%r% 5 %e%] %r%•%e% Debloat Windows%l% %DebloatWindowsc%▼%l% echo ^│ ^│ Deletes Pre-Installed Windows Apps echo ^│ %r%Configuration%l% ^│ echo ^│ ^│ %e%[%r% 6 %e%] %r%•%e% FSE%l% %FSEc%▼%l% echo ^│ ^│ Disables FSO and Enables FSE echo ^│ Credits ^│ echo ^│ ^│ echo ^│ ^│ echo └─────────────────────────────┘ %l%┌──────────────────────┐ ┌───────────────────┐ echo %l%│ %e%Go to Tweaks Tab [%r%G%e%]%l% │ │ %e%Skip Category [%r%N%e%]%l% │ echo └──────────────────────┘ └───────────────────┘ choice /c:WS123456GNDA /n /m " " set MenuItem=%errorlevel% if "%MenuItem%"=="1" goto Privacy if "%MenuItem%"=="2" goto Credits if "%MenuItem%"=="3" ( if "%Visuals%"=="False" ( set "Visuals=True" ) else ( set "Visuals=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="4" ( if "%WindowsUpdates%"=="False" ( set "WindowsUpdates=True" ) else ( set "WindowsUpdates=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="5" ( if "%WindowsDefender%"=="False" ( set "WindowsDefender=True" ) else ( set "WindowsDefender=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="6" ( if "%ProcessMitigations%"=="False" ( set "ProcessMitigations=True" ) else ( set "ProcessMitigations=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="7" ( if "%DebloatWindows%"=="False" ( set "DebloatWindows=True" ) else ( set "DebloatWindows=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="8" ( if "%FSE%"=="False" ( set "FSE=True" ) else ( set "FSE=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="9" ( if "%LastTweaks1%"=="true" ( goto :LastTweaks1 ) else ( goto :LastTweaks2 ) ) if "%MenuItem%"=="10" goto Configuration6 if "%MenuItem%"=="11" goto Configuration2 if "%MenuItem%"=="12" goto %Configuration23% :Configuration2 set LastConfiguration=:Configuration2 set "PowerPlanc=" if "%PowerPlan%"=="False" ( set "PowerPlanc=" ) else ( set "PowerPlanc=" ) set "WindowsServicesc=" if "%WindowsServices%"=="False" ( set "WindowsServicesc=" ) else ( set "WindowsServicesc=" ) set "Win32PrioritySeparationc=" if "%Win32PrioritySeparation%"=="False" ( set "Win32PrioritySeparationc=" ) else ( set "Win32PrioritySeparationc=" ) set "DisableSearchIndexingc=" if "%DisableSearchIndexing%"=="False" ( set "DisableSearchIndexingc=" ) else ( set "DisableSearchIndexingc=" ) set "DisableFastStartupc=" if "%DisableFastStartup%"=="False" ( set "DisableFastStartupc=" ) else ( set "DisableFastStartupc=" ) set "ReserveCPUResourcesc=" if "%ReserveCPUResources%"=="False" ( set "ReserveCPUResourcesc=" ) else ( set "ReserveCPUResourcesc=" ) cls echo. echo %l%┌─────────────────────────────┐ echo │ %r%W%l% = %e%Up%l% %r%D%l% = %e%Right%l% │ %r% _ _ _____ __ _ _ _____ _%l% echo │ %r%S%l% = %e%Down%l% %r%A%l% = %e%Left%l% │ %r% \ \ / ^| ^| ^| ^| / /\ ^| ^| ^| ^| ^| ^| \ \_/%l% %r%▲%e% Pages [%r%2%e%/%ConfigurationsPages%]%l% echo │ %r%X%l% = %e%Apply%l% │ %r%\_\/ ^|_^| ^|_^| /_/--\ ^|_^|__ ^|_^| ^|_^| ^|_^|%l% %e%Cat. [%r%2%e%/%CategoryFPS_Pages%]%l% echo. │ It's not that hard is it? │ echo └─────────────────────────────┘ echo %l%┌─────────────────────────────┐ %r%▲%e% Configuration: %r%FPS And Input Delay%l% echo ^│ ^│ Here you can configure all settings that are going to be applied echo ^│ ^│ echo ^│ Home ^│ echo ^│ ^│ %e%[%r% 1 %e%] %r%•%e% Power Plan%l% %PowerPlanc%▼%l% echo ^│ ^│ Set up Power Plan For Optimal Performance echo ^│ Tweaks ^│ echo ^│ ^│ %e%[%r% 2 %e%] %r%•%e% Windows Services%l% %WindowsServicesc%▼%l% echo ^│ ^│ Disable Useless Windows Services echo ^│ Ingame Settings ^│ echo ^│ ^│ %e%[%r% 3 %e%] %r%•%e% Win32 Priority Separation%l% %Win32PrioritySeparationc%▼%l% echo ^│ ^│ Set Win32 Priority Separation to 26Hex echo ^│ Recording Settings ^│ echo ^│ ^│ %e%[%r% 4 %e%] %r%•%e% Search Indexing%l% %DisableSearchIndexingc%▼%l% echo ^│ ^│ Disable Search Indexing echo ^│ Privacy ^│ echo ^│ ^│ %e%[%r% 5 %e%] %r%•%e% Fast Startup%l% %DisableFastStartupc%▼%l% echo ^│ ^│ Disable Hiberboot/Fast Starup echo ^│ %r%Configuration%l% ^│ echo ^│ ^│ %e%[%r% 6 %e%] %r%•%e% Reserve CPU Resources%l% %ReserveCPUResourcesc%▼%l% echo ^│ ^│ Set Reserve CPU Resources to 10% echo ^│ Credits ^│ echo ^│ ^│ echo ^│ ^│ echo └─────────────────────────────┘ %l%┌──────────────────────┐ ┌───────────────────┐ echo %l%│ %e%Go to Tweaks Tab [%r%G%e%]%l% │ │ %e%Skip Category [%r%N%e%]%l% │ echo └──────────────────────┘ └───────────────────┘ choice /c:WS123456GNDA /n /m " " set MenuItem=%errorlevel% if "%MenuItem%"=="1" goto Privacy if "%MenuItem%"=="2" goto Credits if "%MenuItem%"=="3" ( if "%PowerPlan%"=="False" ( set "PowerPlan=True" ) else ( set "PowerPlan=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="4" ( if "%WindowsServices%"=="False" ( set "WindowsServices=True" ) else ( set "WindowsServices=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="5" ( if "%Win32PrioritySeparation%"=="False" ( set "Win32PrioritySeparation=True" ) else ( set "Win32PrioritySeparation=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="6" ( if "%DisableSearchIndexing%"=="False" ( set "DisableSearchIndexing=True" ) else ( set "DisableSearchIndexing=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="7" ( if "%DisableFastStartup%"=="False" ( set "DisableFastStartup=True" ) else ( set "DisableFastStartup=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="8" ( if "%ReserveCPUResources%"=="False" ( set "ReserveCPUResources=True" ) else ( set "ReserveCPUResources=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="9" ( if "%LastTweaks1%"=="true" ( goto :LastTweaks1 ) else ( goto :LastTweaks2 ) ) if "%MenuItem%"=="10" goto Configuration6 if "%MenuItem%"=="11" goto Configuration3 if "%MenuItem%"=="12" goto Configuration1 :Configuration3 set LastConfiguration=:Configuration3 set "DisableBackgroundAppsc=" if "%DisableBackgroundApps%"=="False" ( set "DisableBackgroundAppsc=" ) else ( set "DisableBackgroundAppsc=" ) set "Winlogonc=" if "%Winlogon%"=="False" ( set "Winlogonc=" ) else ( set "Winlogonc=" ) set "IntelMicroCodec=" if "%IntelMicroCode%"=="False" ( set "IntelMicroCodec=" ) else ( set "IntelMicroCodec=" ) set "AMDMicroCodec=" if "%AMDMicroCode%"=="False" ( set "AMDMicroCodec=" ) else ( set "AMDMicroCodec=" ) set "EnableGPUShedulingc=" if "%EnableGPUSheduling%"=="False" ( set "EnableGPUShedulingc=" ) else ( set "EnableGPUShedulingc=" ) set "DisableSettingsSynchronizationc=" if "%DisableSettingsSynchronization%"=="False" ( set "DisableSettingsSynchronizationc=" ) else ( set "DisableSettingsSynchronizationc=" ) cls echo. echo %l%┌─────────────────────────────┐ echo │ %r%W%l% = %e%Up%l% %r%D%l% = %e%Right%l% │ %r% _ _ _____ __ _ _ _____ _%l% echo │ %r%S%l% = %e%Down%l% %r%A%l% = %e%Left%l% │ %r% \ \ / ^| ^| ^| ^| / /\ ^| ^| ^| ^| ^| ^| \ \_/%l% %r%▲%e% Pages [%r%3%e%/%ConfigurationsPages%]%l% echo │ %r%X%l% = %e%Apply%l% │ %r%\_\/ ^|_^| ^|_^| /_/--\ ^|_^|__ ^|_^| ^|_^| ^|_^|%l% %e%Cat. [%r%3%e%/%CategoryFPS_Pages%]%l% echo. │ It's not that hard is it? │ echo └─────────────────────────────┘ echo %l%┌─────────────────────────────┐ %r%▲%e% Configuration: %r%FPS And Input Delay%l% echo ^│ ^│ Here you can configure all settings that are going to be applied echo ^│ ^│ echo ^│ Home ^│ echo ^│ ^│ %e%[%r% 1 %e%] %r%•%e% Background Apps%l% %DisableBackgroundAppsc%▼%l% echo ^│ ^│ Disable Background Applicatons echo ^│ Tweaks ^│ echo ^│ ^│ %e%[%r% 2 %e%] %r%•%e% Winlogon%l% %Winlogonc%▼%l% echo ^│ ^│ Configure Winlogon echo ^│ Ingame Settings ^│ echo ^│ ^│ %e%[%r% 3 %e%] %r%•%e% Intel Micro Code%l% %IntelMicroCodec%▼%l% echo ^│ ^│ Delete Intel Micro Code echo ^│ Recording Settings ^│ echo ^│ ^│ %e%[%r% 4 %e%] %r%•%e% AMD Micro Code%l% %AMDMicroCodec%▼%l% echo ^│ ^│ Delete AMD Micro Code echo ^│ Privacy ^│ echo ^│ ^│ %e%[%r% 5 %e%] %r%•%e% HWSCH%l% %EnableGPUShedulingc%▼%l% echo ^│ ^│ Enable Hardware GPU Scheduling echo ^│ %r%Configuration%l% ^│ echo ^│ ^│ %e%[%r% 6 %e%] %r%•%e% Synchronization%l% %DisableSettingsSynchronizationc%▼%l% echo ^│ ^│ Set Reserve CPU Resources to 10% echo ^│ Credits ^│ echo ^│ ^│ echo ^│ ^│ echo └─────────────────────────────┘ %l%┌──────────────────────┐ ┌───────────────────┐ echo %l%│ %e%Go to Tweaks Tab [%r%G%e%]%l% │ │ %e%Skip Category [%r%N%e%]%l% │ echo └──────────────────────┘ └───────────────────┘ choice /c:WS123456GNDA /n /m " " set MenuItem=%errorlevel% if "%MenuItem%"=="1" goto Privacy if "%MenuItem%"=="2" goto Credits if "%MenuItem%"=="3" ( if "%DisableBackgroundApps%"=="False" ( set "DisableBackgroundApps=True" ) else ( set "DisableBackgroundApps=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="4" ( if "%Winlogon%"=="False" ( set "Winlogon=True" ) else ( set "Winlogon=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="5" ( if "%IntelMicroCode%"=="False" ( set "IntelMicroCode=True" ) else ( set "IntelMicroCode=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="6" ( if "%AMDMicroCode%"=="False" ( set "AMDMicroCode=True" ) else ( set "AMDMicroCode=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="7" ( if "%EnableGPUSheduling%"=="False" ( set "EnableGPUSheduling=True" ) else ( set "EnableGPUSheduling=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="8" ( if "%DisableSettingsSynchronization%"=="False" ( set "DisableSettingsSynchronization=True" ) else ( set "DisableSettingsSynchronization=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="9" ( if "%LastTweaks1%"=="true" ( goto :LastTweaks1 ) else ( goto :LastTweaks2 ) ) if "%MenuItem%"=="10" goto Configuration6 if "%MenuItem%"=="11" goto Configuration4 if "%MenuItem%"=="12" goto Configuration2 :Configuration4 set LastConfiguration=:Configuration4 set "DisableRemoteAssistancec=" if "%DisableRemoteAssistance%"=="False" ( set "DisableRemoteAssistancec=" ) else ( set "DisableRemoteAssistancec=" ) set "DisableGamebarpresencewriterc=" if "%DisableGamebarpresencewriter%"=="False" ( set "DisableGamebarpresencewriterc=" ) else ( set "DisableGamebarpresencewriterc=" ) set "DisableSystemEnergySavingc=" if "%DisableSystemEnergySaving%"=="False" ( set "DisableSystemEnergySavingc=" ) else ( set "DisableSystemEnergySavingc=" ) set "SVCSplitThresholdc=" if "%SVCSplitThreshold%"=="False" ( set "SVCSplitThresholdc=" ) else ( set "SVCSplitThresholdc=" ) set "DisableUSBPowerSavingsc=" if "%DisableUSBPowerSavings%"=="False" ( set "DisableUSBPowerSavingsc=" ) else ( set "DisableUSBPowerSavingsc=" ) set "EnableMSIModec=" if "%EnableMSIMode%"=="False" ( set "EnableMSIModec=" ) else ( set "EnableMSIModec=" ) cls echo. echo %l%┌─────────────────────────────┐ echo │ %r%W%l% = %e%Up%l% %r%D%l% = %e%Right%l% │ %r% _ _ _____ __ _ _ _____ _%l% echo │ %r%S%l% = %e%Down%l% %r%A%l% = %e%Left%l% │ %r% \ \ / ^| ^| ^| ^| / /\ ^| ^| ^| ^| ^| ^| \ \_/%l% %r%▲%e% Pages [%r%4%e%/%ConfigurationsPages%]%l% echo │ %r%X%l% = %e%Apply%l% │ %r%\_\/ ^|_^| ^|_^| /_/--\ ^|_^|__ ^|_^| ^|_^| ^|_^|%l% %e%Cat. [%r%4%e%/%CategoryFPS_Pages%]%l% echo. │ It's not that hard is it? │ echo └─────────────────────────────┘ echo %l%┌─────────────────────────────┐ %r%▲%e% Configuration: %r%FPS And Input Delay%l% echo ^│ ^│ Here you can configure all settings that are going to be applied echo ^│ ^│ echo ^│ Home ^│ echo ^│ ^│ %e%[%r% 1 %e%] %r%•%e% Remote Assistance%l% %DisableRemoteAssistancec%▼%l% echo ^│ ^│ Disable Remore Assistance echo ^│ Tweaks ^│ echo ^│ ^│ %e%[%r% 2 %e%] %r%•%e% Gamebarpresencewriter%l% %DisableGamebarpresencewriterc%▼%l% echo ^│ ^│ Disable Gamebarpresencewriter echo ^│ Ingame Settings ^│ echo ^│ ^│ %e%[%r% 3 %e%] %r%•%e% System Energy Savings%l% %DisableSystemEnergySavingc%▼%l% echo ^│ ^│ Disable System Energy Savings echo ^│ Recording Settings ^│ echo ^│ ^│ %e%[%r% 4 %e%] %r%•%e% SVCSplitThreshold%l% %SVCSplitThresholdc%▼%l% echo ^│ ^│ Configure SVCSplitThreshold echo ^│ Privacy ^│ echo ^│ ^│ %e%[%r% 5 %e%] %r%•%e% USB Power Savings%l% %DisableUSBPowerSavingsc%▼%l% echo ^│ ^│ Disable USB Power Savings echo ^│ %r%Configuration%l% ^│ echo ^│ ^│ %e%[%r% 6 %e%] %r%•%e% MSI Mode%l% %EnableMSIModec%▼%l% echo ^│ ^│ Enable MSI Mode echo ^│ Credits ^│ echo ^│ ^│ echo ^│ ^│ echo └─────────────────────────────┘ %l%┌──────────────────────┐ ┌───────────────────┐ echo %l%│ %e%Go to Tweaks Tab [%r%G%e%]%l% │ │ %e%Skip Category [%r%N%e%]%l% │ echo └──────────────────────┘ └───────────────────┘ choice /c:WS123456GNDA /n /m " " set MenuItem=%errorlevel% if "%MenuItem%"=="1" goto Privacy if "%MenuItem%"=="2" goto Credits if "%MenuItem%"=="3" ( if "%DisableRemoteAssistance%"=="False" ( set "DisableRemoteAssistance=True" ) else ( set "DisableRemoteAssistance=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="4" ( if "%DisableGamebarpresencewriter%"=="False" ( set "DisableGamebarpresencewriter=True" ) else ( set "DisableGamebarpresencewriter=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="5" ( if "%DisableSystemEnergySaving%"=="False" ( set "DisableSystemEnergySaving=True" ) else ( set "DisableSystemEnergySaving=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="6" ( if "%SVCSplitThreshold%"=="False" ( set "SVCSplitThreshold=True" ) else ( set "SVCSplitThreshold=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="7" ( if "%DisableUSBPowerSavings%"=="False" ( set "DisableUSBPowerSavings=True" ) else ( set "DisableUSBPowerSavings=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="8" ( if "%EnableMSIMode%"=="False" ( set "EnableMSIMode=True" ) else ( set "EnableMSIMode=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="9" ( if "%LastTweaks1%"=="true" ( goto :LastTweaks1 ) else ( goto :LastTweaks2 ) ) if "%MenuItem%"=="10" goto Configuration6 if "%MenuItem%"=="11" goto Configuration5 if "%MenuItem%"=="12" goto Configuration3 :Configuration5 set LastConfiguration=:Configuration5 set "DevicePriorityUndefinedc=" if "%DevicePriorityUndefined%"=="False" ( set "DevicePriorityUndefinedc=" ) else ( set "DevicePriorityUndefinedc=" ) cls echo. echo %l%┌─────────────────────────────┐ echo │ %r%W%l% = %e%Up%l% %r%D%l% = %e%Right%l% │ %r% _ _ _____ __ _ _ _____ _%l% echo │ %r%S%l% = %e%Down%l% %r%A%l% = %e%Left%l% │ %r% \ \ / ^| ^| ^| ^| / /\ ^| ^| ^| ^| ^| ^| \ \_/%l% %r%▲%e% Pages [%r%5%e%/%ConfigurationsPages%]%l% echo │ %r%X%l% = %e%Apply%l% │ %r%\_\/ ^|_^| ^|_^| /_/--\ ^|_^|__ ^|_^| ^|_^| ^|_^|%l% %e%Cat. [%r%5%e%/%CategoryFPS_Pages%]%l% echo. │ It's not that hard is it? │ echo └─────────────────────────────┘ echo %l%┌─────────────────────────────┐ %r%▲%e% Configuration: %r%FPS And Input Delay%l% echo ^│ ^│ Here you can configure all settings that are going to be applied echo ^│ ^│ echo ^│ Home ^│ echo ^│ ^│ %e%[%r% 1 %e%] %r%•%e% Device Priority%l% %DevicePriorityUndefinedc%▼%l% echo ^│ ^│ Set Device Priority to Underfined echo ^│ Tweaks ^│ echo ^│ ^│ echo ^│ ^│ echo ^│ Ingame Settings ^│ echo ^│ ^│ echo ^│ ^│ echo ^│ Recording Settings ^│ echo ^│ ^│ echo ^│ ^│ echo ^│ Privacy ^│ echo ^│ ^│ echo ^│ ^│ echo ^│ %r%Configuration%l% ^│ echo ^│ ^│ echo ^│ ^│ echo ^│ Credits ^│ echo ^│ ^│ echo ^│ ^│ echo └─────────────────────────────┘ %l%┌──────────────────────┐ ┌───────────────────┐ echo %l%│ %e%Go to Tweaks Tab [%r%G%e%]%l% │ │ %e%Skip Category [%r%N%e%]%l% │ echo └──────────────────────┘ └───────────────────┘ choice /c:WS123456GNDA /n /m " " set MenuItem=%errorlevel% if "%MenuItem%"=="1" goto Privacy if "%MenuItem%"=="2" goto Credits if "%MenuItem%"=="3" ( if "%DevicePriorityUndefined%"=="False" ( set "DevicePriorityUndefined=True" ) else ( set "DevicePriorityUndefined=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="9" ( if "%LastTweaks1%"=="true" ( goto :LastTweaks1 ) else ( goto :LastTweaks2 ) ) if "%MenuItem%"=="10" goto Configuration6 if "%MenuItem%"=="11" goto Configuration6 if "%MenuItem%"=="12" goto Configuration4 :Configuration6 set LastConfiguration=:Configuration6 set "SpectreMeltdownc=" if "%SpectreMeltdown%"=="False" ( set "SpectreMeltdownc=" ) else ( set "SpectreMeltdownc=" ) set "DisableIDLEc=" if "%DisableIDLE%"=="False" ( set "DisableIDLEc=" ) else ( set "DisableIDLEc=" ) set "MMCSSc=" if "%MMCSS%"=="False" ( set "MMCSSc=" ) else ( set "MMCSSc=" ) set "CSRSSc=" if "%CSRSS%"=="False" ( set "CSRSSc=" ) else ( set "CSRSSc=" ) set "LowProcessPriorityc=" if "%LowProcessPriority%"=="False" ( set "LowProcessPriorityc=" ) else ( set "LowProcessPriorityc=" ) set "LowAudioLatencyc=" if "%LowAudioLatency%"=="False" ( set "LowAudioLatencyc=" ) else ( set "LowAudioLatencyc=" ) cls echo. echo %l%┌─────────────────────────────┐ echo │ %r%W%l% = %e%Up%l% %r%D%l% = %e%Right%l% │ %r% _ _ _____ __ _ _ _____ _%l% echo │ %r%S%l% = %e%Down%l% %r%A%l% = %e%Left%l% │ %r% \ \ / ^| ^| ^| ^| / /\ ^| ^| ^| ^| ^| ^| \ \_/%l% %r%▲%e% Pages [%r%6%e%/%ConfigurationsPages%]%l% echo │ %r%X%l% = %e%Apply%l% │ %r%\_\/ ^|_^| ^|_^| /_/--\ ^|_^|__ ^|_^| ^|_^| ^|_^|%l% %e%Cat. [%r%1%e%/%CategoryLatency_Pages%]%l% echo. │ It's not that hard is it? │ echo └─────────────────────────────┘ echo %l%┌─────────────────────────────┐ %r%▲%e% Configuration: %r%Latency%l% echo ^│ ^│ Here you can configure all settings that are going to be applied echo ^│ ^│ echo ^│ Home ^│ echo ^│ ^│ %e%[%r% 1 %e%] %r%•%e% Spectre Meltdown%l% %SpectreMeltdownc%▼%l% echo ^│ ^│ Disable Spectre and Meltdown echo ^│ Tweaks ^│ echo ^│ ^│ %e%[%r% 2 %e%] %r%•%e% IDLE%l% %DisableIDLEc%▼%l% echo ^│ ^│ Disable IDLE in Power Plan echo ^│ Ingame Settings ^│ echo ^│ ^│ %e%[%r% 3 %e%] %r%•%e% MMCSS%l% %MMCSSc%▼%l% echo ^│ ^│ Configure MMCSS echo ^│ Recording Settings ^│ echo ^│ ^│ %e%[%r% 4 %e%] %r%•%e% CSRSS%l% %CSRSSc%▼%l% echo ^│ ^│ Configure CSRSS echo ^│ Privacy ^│ echo ^│ ^│ %e%[%r% 5 %e%] %r%•%e% Low Process Priority%l% %LowProcessPriorityc%▼%l% echo ^│ ^│ Set Some Windows Process to Low Priority echo ^│ %r%Configuration%l% ^│ echo ^│ ^│ %e%[%r% 6 %e%] %r%•%e% Low Audio Latency%l% %LowAudioLatencyc%▼%l% echo ^│ ^│ Download and Configure Low Audio Latency echo ^│ Credits ^│ echo ^│ ^│ echo ^│ ^│ echo └─────────────────────────────┘ %l%┌──────────────────────┐ ┌───────────────────┐ echo %l%│ %e%Go to Tweaks Tab [%r%G%e%]%l% │ │ %e%Skip Category [%r%N%e%]%l% │ echo └──────────────────────┘ └───────────────────┘ choice /c:WS123456GNDA /n /m " " set MenuItem=%errorlevel% if "%MenuItem%"=="1" goto Privacy if "%MenuItem%"=="2" goto Credits if "%MenuItem%"=="3" ( if "%SpectreMeltdown%"=="False" ( set "SpectreMeltdown=True" ) else ( set "SpectreMeltdown=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="4" ( if "%DisableIDLE%"=="False" ( set "DisableIDLE=True" ) else ( set "DisableIDLE=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="5" ( if "%MMCSS%"=="False" ( set "MMCSS=True" ) else ( set "MMCSS=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="6" ( if "%CSRSS%"=="False" ( set "CSRSS=True" ) else ( set "CSRSS=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="7" ( if "%LowProcessPriority%"=="False" ( set "LowProcessPriority=True" ) else ( set "LowProcessPriority=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="8" ( if "%LowAudioLatency%"=="False" ( set "LowAudioLatency=True" ) else ( set "LowAudioLatency=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="9" ( if "%LastTweaks1%"=="true" ( goto :LastTweaks1 ) else ( goto :LastTweaks2 ) ) if "%MenuItem%"=="10" goto Configuration8 if "%MenuItem%"=="11" goto Configuration7 if "%MenuItem%"=="12" goto Configuration5 :Configuration7 set LastConfiguration=:Configuration7 set "TimerResolutionc=" if "%TimerResolution%"=="False" ( set "TimerResolutionc=" ) else ( set "TimerResolutionc=" ) set "BCDLowLatencyc=" if "%BCDLowLatency%"=="False" ( set "BCDLowLatencyc=" ) else ( set "BCDLowLatencyc=" ) set "DisableNetworkTrhottlingc=" if "%DisableNetworkTrhottling%"=="False" ( set "DisableNetworkTrhottlingc=" ) else ( set "DisableNetworkTrhottlingc=" ) set "LatencyTolerancec=" if "%LatencyTolerance%"=="False" ( set "LatencyTolerancec=" ) else ( set "LatencyTolerancec=" ) cls echo. echo %l%┌─────────────────────────────┐ echo │ %r%W%l% = %e%Up%l% %r%D%l% = %e%Right%l% │ %r% _ _ _____ __ _ _ _____ _%l% echo │ %r%S%l% = %e%Down%l% %r%A%l% = %e%Left%l% │ %r% \ \ / ^| ^| ^| ^| / /\ ^| ^| ^| ^| ^| ^| \ \_/%l% %r%▲%e% Pages [%r%7%e%/%ConfigurationsPages%]%l% echo │ %r%X%l% = %e%Apply%l% │ %r%\_\/ ^|_^| ^|_^| /_/--\ ^|_^|__ ^|_^| ^|_^| ^|_^|%l% %e%Cat. [%r%2%e%/%CategoryLatency_Pages%]%l% echo. │ It's not that hard is it? │ echo └─────────────────────────────┘ echo %l%┌─────────────────────────────┐ %r%▲%e% Configuration: %r%Latency%l% echo ^│ ^│ Here you can configure all settings that are going to be applied echo ^│ ^│ echo ^│ Home ^│ echo ^│ ^│ %e%[%r% 1 %e%] %r%•%e% Timer Resolution%l% %TimerResolutionc%▼%l% echo ^│ ^│ Set Timer Resolution to 0.5ms echo ^│ Tweaks ^│ echo ^│ ^│ %e%[%r% 2 %e%] %r%•%e% BCD Latency%l% %BCDLowLatencyc%▼%l% echo ^│ ^│ Configure Low Latency BCD Settings (Needed for TimerResolution) echo ^│ Ingame Settings ^│ echo ^│ ^│ %e%[%r% 3 %e%] %r%•%e% Network Throttling%l% %DisableNetworkTrhottlingc%▼%l% echo ^│ ^│ Disable Network Throttling echo ^│ Recording Settings ^│ echo ^│ ^│ echo ^│ ^│ echo ^│ Privacy ^│ echo ^│ ^│ echo ^│ ^│ echo ^│ %r%Configuration%l% ^│ echo ^│ ^│ echo ^│ ^│ echo ^│ Credits ^│ echo ^│ ^│ echo ^│ ^│ echo └─────────────────────────────┘ %l%┌──────────────────────┐ ┌───────────────────┐ echo %l%│ %e%Go to Tweaks Tab [%r%G%e%]%l% │ │ %e%Skip Category [%r%N%e%]%l% │ echo └──────────────────────┘ └───────────────────┘ choice /c:WS123456GNDA /n /m " " set MenuItem=%errorlevel% if "%MenuItem%"=="1" goto Privacy if "%MenuItem%"=="2" goto Credits if "%MenuItem%"=="3" ( if "%TimerResolution%"=="False" ( set "TimerResolution=True" ) else ( set "TimerResolution=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="4" ( if "%BCDLowLatency%"=="False" ( set "BCDLowLatency=True" ) else ( set "BCDLowLatency=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="5" ( if "%DisableNetworkTrhottling%"=="False" ( set "DisableNetworkTrhottling=True" ) else ( set "DisableNetworkTrhottling=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="9" ( if "%LastTweaks1%"=="true" ( goto :LastTweaks1 ) else ( goto :LastTweaks2 ) ) if "%MenuItem%"=="10" goto Configuration8 if "%MenuItem%"=="11" goto Configuration8 if "%MenuItem%"=="12" goto Configuration6 :Configuration8 set LastConfiguration=:Configuration8 set "DisableNaglesAlgorithmc=" if "%DisableNaglesAlgorithm%"=="False" ( set "DisableNaglesAlgorithmc=" ) else ( set "DisableNaglesAlgorithmc=" ) set "NICc=" if "%NIC%"=="False" ( set "NICc=" ) else ( set "NICc=" ) set "DNSc=" if "%DNS%"=="False" ( set "DNSc=" ) else ( set "DNSc=" ) set "WindowsNetworkSettignsc=" if "%WindowsNetworkSettigns%"=="False" ( set "WindowsNetworkSettignsc=" ) else ( set "WindowsNetworkSettignsc=" ) set "Autotunningc=" if "%Autotunning%"=="False" ( set "Autotunningc=" ) else ( set "Autotunningc=" ) cls echo. echo %l%┌─────────────────────────────┐ echo │ %r%W%l% = %e%Up%l% %r%D%l% = %e%Right%l% │ %r% _ _ _____ __ _ _ _____ _%l% echo │ %r%S%l% = %e%Down%l% %r%A%l% = %e%Left%l% │ %r% \ \ / ^| ^| ^| ^| / /\ ^| ^| ^| ^| ^| ^| \ \_/%l% %r%▲%e% Pages [%r%8%e%/%ConfigurationsPages%]%l% echo │ %r%X%l% = %e%Apply%l% │ %r%\_\/ ^|_^| ^|_^| /_/--\ ^|_^|__ ^|_^| ^|_^| ^|_^|%l% %e%Cat. [%r%1%e%/%CategoryNetwork_Pages%]%l% echo. │ It's not that hard is it? │ echo └─────────────────────────────┘ echo %l%┌─────────────────────────────┐ %r%▲%e% Configuration: %r%Network%l% echo ^│ ^│ Here you can configure all settings that are going to be applied echo ^│ ^│ echo ^│ Home ^│ echo ^│ ^│ %e%[%r% 1 %e%] %r%•%e% Nagles Algorithm%l% %DisableNaglesAlgorithmc%▼%l% echo ^│ ^│ Disable Nagles Algorithm echo ^│ Tweaks ^│ echo ^│ ^│ %e%[%r% 2 %e%] %r%•%e% NIC%l% %NICc%▼%l% echo ^│ ^│ Configure NIC Settings echo ^│ Ingame Settings ^│ echo ^│ ^│ %e%[%r% 3 %e%] %r%•%e% DNS%l% %DNSc%▼%l% echo ^│ ^│ Set DNS to 1.1.1.1 ^& 1.0.0.1 echo ^│ Recording Settings ^│ echo ^│ ^│ %e%[%r% 4 %e%] %r%•%e% Windows Network Settings%l% %WindowsNetworkSettignsc%▼%l% echo ^│ ^│ Configure Windows Network Settings echo ^│ Privacy ^│ echo ^│ ^│ %e%[%r% 5 %e%] %r%•%e% Autotunning%l% %Autotunningc%▼%l% echo ^│ ^│ Disable Autotunning echo ^│ %r%Configuration%l% ^│ echo ^│ ^│ echo ^│ ^│ echo ^│ Credits ^│ echo ^│ ^│ echo ^│ ^│ echo └─────────────────────────────┘ %l%┌──────────────────────┐ ┌───────────────────┐ echo %l%│ %e%Go to Tweaks Tab [%r%G%e%]%l% │ │ %e%Skip Category [%r%N%e%]%l% │ echo └──────────────────────┘ └───────────────────┘ choice /c:WS123456GNDA /n /m " " set MenuItem=%errorlevel% if "%MenuItem%"=="1" goto Privacy if "%MenuItem%"=="2" goto Credits if "%MenuItem%"=="3" ( if "%DisableNaglesAlgorithm%"=="False" ( set "DisableNaglesAlgorithm=True" ) else ( set "DisableNaglesAlgorithm=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="4" ( if "%NIC%"=="False" ( set "NIC=True" ) else ( set "NIC=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="5" ( if "%DNS%"=="False" ( set "DNS=True" ) else ( set "DNS=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="6" ( if "%WindowsNetworkSettigns%"=="False" ( set "WindowsNetworkSettigns=True" ) else ( set "WindowsNetworkSettigns=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="7" ( if "%Autotunning%"=="False" ( set "Autotunning=True" ) else ( set "Autotunning=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="9" ( if "%LastTweaks1%"=="true" ( goto :LastTweaks1 ) else ( goto :LastTweaks2 ) ) if "%MenuItem%"=="10" goto Configuration9 if "%MenuItem%"=="11" goto Configuration9 if "%MenuItem%"=="12" goto Configuration7 :Configuration9 set LastConfiguration=:Configuration9 set "KeyboardDataSizec=" if "%KeyboardDataSize%"=="False" ( set "KeyboardDataSizec=" ) else ( set "KeyboardDataSizec=" ) set "AdjustKeyboardParametersc=" if "%AdjustKeyboardParameters%"=="False" ( set "AdjustKeyboardParametersc=" ) else ( set "AdjustKeyboardParametersc=" ) set "KeyboardAccessibilitySettingsc=" if "%KeyboardAccessibilitySettings%"=="False" ( set "KeyboardAccessibilitySettingsc=" ) else ( set "KeyboardAccessibilitySettingsc=" ) set "MouseDataSizec=" if "%MouseDataSize%"=="False" ( set "MouseDataSizec=" ) else ( set "MouseDataSizec=" ) set "DisablePointerAccelerationc=" if "%DisablePointerAcceleration%"=="False" ( set "DisablePointerAccelerationc=" ) else ( set "DisablePointerAccelerationc=" ) set "MouseAccessibilitySettingsc=" if "%MouseAccessibilitySettings%"=="False" ( set "MouseAccessibilitySettingsc=" ) else ( set "MouseAccessibilitySettingsc=" ) cls echo. echo %l%┌─────────────────────────────┐ echo │ %r%W%l% = %e%Up%l% %r%D%l% = %e%Right%l% │ %r% _ _ _____ __ _ _ _____ _%l% echo │ %r%S%l% = %e%Down%l% %r%A%l% = %e%Left%l% │ %r% \ \ / ^| ^| ^| ^| / /\ ^| ^| ^| ^| ^| ^| \ \_/%l% %r%▲%e% Pages [%r%9%e%/%ConfigurationsPages%]%l% echo │ %r%X%l% = %e%Apply%l% │ %r%\_\/ ^|_^| ^|_^| /_/--\ ^|_^|__ ^|_^| ^|_^| ^|_^|%l% %e%Cat. [%r%1%e%/%CategoryNetwork_Pages%]%l% echo. │ It's not that hard is it? │ echo └─────────────────────────────┘ echo %l%┌─────────────────────────────┐ %r%▲%e% Configuration: %r%Keyboard and Mouse%l% echo ^│ ^│ Here you can configure all settings that are going to be applied echo ^│ ^│ echo ^│ Home ^│ echo ^│ ^│ %e%[%r% 1 %e%] %r%•%e% Keyboard Data Size%l% %KeyboardDataSizec%▼%l% echo ^│ ^│ Set Keyboard Data Size Queue to 50dec echo ^│ Tweaks ^│ echo ^│ ^│ %e%[%r% 2 %e%] %r%•%e% Keyboard Parameters%l% %AdjustKeyboardParametersc%▼%l% echo ^│ ^│ Adjust Keyboard Parameters echo ^│ Ingame Settings ^│ echo ^│ ^│ %e%[%r% 3 %e%] %r%•%e% Keyboard Accessibility Settings%l% %KeyboardAccessibilitySettingsc%▼%l% echo ^│ ^│ Configure Keyboard Accessibility Settings echo ^│ Recording Settings ^│ echo ^│ ^│ %e%[%r% 4 %e%] %r%•%e% Mouse Data Size%l% %MouseDataSizec%▼%l% echo ^│ ^│ Set Mouse Data Size Queue to 50dec echo ^│ Privacy ^│ echo ^│ ^│ %e%[%r% 5 %e%] %r%•%e% Pointer Acceleration%l% %DisablePointerAccelerationc%▼%l% echo ^│ ^│ Disable Pointer Acceleration echo ^│ %r%Configuration%l% ^│ echo ^│ ^│ %e%[%r% 6 %e%] %r%•%e% Mouse Accessibility Settings%l% %MouseAccessibilitySettingsc%▼%l% echo ^│ ^│ Configure Mouse Accessibility Settings echo ^│ Credits ^│ echo ^│ ^│ echo ^│ ^│ echo └─────────────────────────────┘ %l%┌──────────────────────┐ ┌───────────────────┐ echo %l%│ %e%Go to Tweaks Tab [%r%G%e%]%l% │ │ %e%Skip Category [%r%N%e%]%l% │ echo └──────────────────────┘ └───────────────────┘ choice /c:WS123456GNDA /n /m " " set MenuItem=%errorlevel% if "%MenuItem%"=="1" goto Privacy if "%MenuItem%"=="2" goto Credits if "%MenuItem%"=="3" ( if "%KeyboardDataSize%"=="False" ( set "KeyboardDataSize=True" ) else ( set "KeyboardDataSize=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="4" ( if "%AdjustKeyboardParameters%"=="False" ( set "AdjustKeyboardParameters=True" ) else ( set "AdjustKeyboardParameters=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="5" ( if "%KeyboardAccessibilitySettings%"=="False" ( set "KeyboardAccessibilitySettings=True" ) else ( set "KeyboardAccessibilitySettings=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="6" ( if "%MouseDataSize%"=="False" ( set "MouseDataSize=True" ) else ( set "MouseDataSize=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="7" ( if "%DisablePointerAcceleration%"=="False" ( set "DisablePointerAcceleration=True" ) else ( set "DisablePointerAcceleration=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="8" ( if "%MouseAccessibilitySettings%"=="False" ( set "MouseAccessibilitySettings=True" ) else ( set "MouseAccessibilitySettings=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="9" ( if "%LastTweaks1%"=="true" ( goto :LastTweaks1 ) else ( goto :LastTweaks2 ) ) if "%MenuItem%"=="10" goto %Configuration10% if "%MenuItem%"=="11" goto %Configuration10% if "%MenuItem%"=="12" goto Configuration8 :Configuration10Nvidia set LastConfiguration=:Configuration10Nvidia set "GameModec=" if "%GameMode%"=="False" ( set "GameModec=" ) else ( set "GameModec=" ) set "NvidiaTelemetryc=" if "%NvidiaTelemetry%"=="False" ( set "NvidiaTelemetryc=" ) else ( set "NvidiaTelemetryc=" ) set "P0Statesc=" if "%P0States%"=="False" ( set "P0Statesc=" ) else ( set "P0Statesc=" ) set "HDCPc=" if "%HDCP%"=="False" ( set "HDCPc=" ) else ( set "HDCPc=" ) set "Preemptionc=" if "%Preemption%"=="False" ( set "Preemptionc=" ) else ( set "Preemptionc=" ) set "Loggingc=" if "%Logging%"=="False" ( set "Loggingc=" ) else ( set "Loggingc=" ) cls echo. echo %l%┌─────────────────────────────┐ echo │ %r%W%l% = %e%Up%l% %r%D%l% = %e%Right%l% │ %r% _ _ _____ __ _ _ _____ _%l% echo │ %r%S%l% = %e%Down%l% %r%A%l% = %e%Left%l% │ %r% \ \ / ^| ^| ^| ^| / /\ ^| ^| ^| ^| ^| ^| \ \_/%l% %r%▲%e% Pages [%r%10%e%/%ConfigurationsPages%]%l% echo │ %r%X%l% = %e%Apply%l% │ %r%\_\/ ^|_^| ^|_^| /_/--\ ^|_^|__ ^|_^| ^|_^| ^|_^|%l% %e%Cat. [%r%1%e%/%CategoryNvidiaGPU_Pages%]%l% echo. │ It's not that hard is it? │ echo └─────────────────────────────┘ echo %l%┌─────────────────────────────┐ %r%▲%e% Configuration: %r%Nvidia GPU%l% echo ^│ ^│ Here you can configure all settings that are going to be applied echo ^│ ^│ echo ^│ Home ^│ echo ^│ ^│ %e%[%r% 1 %e%] %r%•%e% Game Mode%l% %GameModec%▼%l% echo ^│ ^│ Enable Game Mode echo ^│ Tweaks ^│ echo ^│ ^│ %e%[%r% 2 %e%] %r%•%e% Nvidia Telemetry%l% %NvidiaTelemetryc%▼%l% echo ^│ ^│ Remove Nvidia Telemetry echo ^│ Ingame Settings ^│ echo ^│ ^│ %e%[%r% 3 %e%] %r%•%e% P0-States%l% %P0Statesc%▼%l% echo ^│ ^│ Force P0-States echo ^│ Recording Settings ^│ echo ^│ ^│ %e%[%r% 4 %e%] %r%•%e% HDCP%l% %HDCPc%▼%l% echo ^│ ^│ Set Mouse Data Size Queue to 50dec echo ^│ Privacy ^│ echo ^│ ^│ %e%[%r% 5 %e%] %r%•%e% Preemption%l% %Preemptionc%▼%l% echo ^│ ^│ Disable Preemption echo ^│ %r%Configuration%l% ^│ echo ^│ ^│ %e%[%r% 6 %e%] %r%•%e% Logging%l% %Loggingc%▼%l% echo ^│ ^│ Configure Nvidia Logging echo ^│ Credits ^│ echo ^│ ^│ echo ^│ ^│ echo └─────────────────────────────┘ %l%┌──────────────────────┐ ┌───────────────────┐ echo %l%│ %e%Go to Tweaks Tab [%r%G%e%]%l% │ │ %e%Skip Category [%r%N%e%]%l% │ echo └──────────────────────┘ └───────────────────┘ choice /c:WS123456GNDA /n /m " " set MenuItem=%errorlevel% if "%MenuItem%"=="1" goto Privacy if "%MenuItem%"=="2" goto Credits if "%MenuItem%"=="3" ( if "%GameMode%"=="False" ( set "GameMode=True" ) else ( set "GameMode=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="4" ( if "%NvidiaTelemetry%"=="False" ( set "NvidiaTelemetry=True" ) else ( set "NvidiaTelemetry=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="5" ( if "%P0States%"=="False" ( set "P0States=True" ) else ( set "P0States=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="6" ( if "%HDCP%"=="False" ( set "HDCP=True" ) else ( set "HDCP=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="7" ( if "%Preemption%"=="False" ( set "Preemption=True" ) else ( set "Preemption=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="8" ( if "%Logging%"=="False" ( set "Logging=True" ) else ( set "Logging=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="9" ( if "%LastTweaks1%"=="true" ( goto :LastTweaks1 ) else ( goto :LastTweaks2 ) ) if "%MenuItem%"=="10" goto Configuration14 if "%MenuItem%"=="11" goto Configuration11 if "%MenuItem%"=="12" goto Configuration9 :Configuration11 set LastConfiguration=:Configuration11 set "NvidiaProfileInspectorc=" if "%NvidiaProfileInspector%"=="False" ( set "NvidiaProfileInspectorc=" ) else ( set "NvidiaProfileInspectorc=" ) set "DisableTiledDisplayc=" if "%DisableTiledDisplay%"=="False" ( set "DisableTiledDisplayc=" ) else ( set "DisableTiledDisplayc=" ) set "DisableTCCc=" if "%DisableTCC%"=="False" ( set "DisableTCCc=" ) else ( set "DisableTCCc=" ) set "ForceContiguousMemoryAllocationc=" if "%ForceContiguousMemoryAllocation%"=="False" ( set "ForceContiguousMemoryAllocationc=" ) else ( set "ForceContiguousMemoryAllocationc=" ) set "KBoostc=" if "%KBoost%"=="False" ( set "KBoostc=" ) else ( set "KBoostc=" ) set "DisableScalingc=" if "%DisableScaling%"=="False" ( set "DisableScalingc=" ) else ( set "DisableScalingc=" ) cls echo. echo %l%┌─────────────────────────────┐ echo │ %r%W%l% = %e%Up%l% %r%D%l% = %e%Right%l% │ %r% _ _ _____ __ _ _ _____ _%l% echo │ %r%S%l% = %e%Down%l% %r%A%l% = %e%Left%l% │ %r% \ \ / ^| ^| ^| ^| / /\ ^| ^| ^| ^| ^| ^| \ \_/%l% %r%▲%e% Pages [%r%11%e%/%ConfigurationsPages%]%l% echo │ %r%X%l% = %e%Apply%l% │ %r%\_\/ ^|_^| ^|_^| /_/--\ ^|_^|__ ^|_^| ^|_^| ^|_^|%l% %e%Cat. [%r%2%e%/%CategoryNvidiaGPU_Pages%]%l% echo. │ It's not that hard is it? │ echo └─────────────────────────────┘ echo %l%┌─────────────────────────────┐ %r%▲%e% Configuration: %r%Nvidia GPU%l% echo ^│ ^│ Here you can configure all settings that are going to be applied echo ^│ ^│ echo ^│ Home ^│ echo ^│ ^│ %e%[%r% 1 %e%] %r%•%e% Nvidia Profile Inspector%l% %NvidiaProfileInspectorc%▼%l% echo ^│ ^│ Configure Nvidia Profile Inspector Settings echo ^│ Tweaks ^│ echo ^│ ^│ %e%[%r% 2 %e%] %r%•%e% Titled Display%l% %DisableTiledDisplayc%▼%l% echo ^│ ^│ Disable Tilted Display echo ^│ Ingame Settings ^│ echo ^│ ^│ %e%[%r% 3 %e%] %r%•%e% TCC%l% %DisableTCCc%▼%l% echo ^│ ^│ Disable TCC echo ^│ Recording Settings ^│ echo ^│ ^│ %e%[%r% 4 %e%] %r%•%e% Memory Allocation%l% %ForceContiguousMemoryAllocationc%▼%l% echo ^│ ^│ Force Contiguous Memory Allocation echo ^│ Privacy ^│ echo ^│ ^│ %e%[%r% 5 %e%] %r%•%e% KBoost%l% %KBoostc%▼%l% echo ^│ ^│ Enable KBoost echo ^│ %r%Configuration%l% ^│ echo ^│ ^│ %e%[%r% 6 %e%] %r%•%e% Scaling%l% %DisableScalingc%▼%l% echo ^│ ^│ Disable Display Scaling echo ^│ Credits ^│ echo ^│ ^│ echo ^│ ^│ echo └─────────────────────────────┘ %l%┌──────────────────────┐ ┌───────────────────┐ echo %l%│ %e%Go to Tweaks Tab [%r%G%e%]%l% │ │ %e%Skip Category [%r%N%e%]%l% │ echo └──────────────────────┘ └───────────────────┘ choice /c:WS123456GNDA /n /m " " set MenuItem=%errorlevel% if "%MenuItem%"=="1" goto Privacy if "%MenuItem%"=="2" goto Credits if "%MenuItem%"=="3" ( if "%NvidiaProfileInspector%"=="False" ( set "NvidiaProfileInspector=True" ) else ( set "NvidiaProfileInspector=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="4" ( if "%DisableTiledDisplay%"=="False" ( set "DisableTiledDisplay=True" ) else ( set "DisableTiledDisplay=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="5" ( if "%DisableTCC%"=="False" ( set "DisableTCC=True" ) else ( set "DisableTCC=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="6" ( if "%ForceContiguousMemoryAllocation%"=="False" ( set "ForceContiguousMemoryAllocation=True" ) else ( set "ForceContiguousMemoryAllocation=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="7" ( if "%KBoost%"=="False" ( set "KBoost=True" ) else ( set "KBoost=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="8" ( if "%DisableScaling%"=="False" ( set "DisableScaling=True" ) else ( set "DisableScaling=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="9" ( if "%LastTweaks1%"=="true" ( goto :LastTweaks1 ) else ( goto :LastTweaks2 ) ) if "%MenuItem%"=="10" goto Configuration14 if "%MenuItem%"=="11" goto Configuration12 if "%MenuItem%"=="12" goto %Configuration10% :Configuration12 set LastConfiguration=:Configuration12 set "NoECCc=" if "%NoECC%"=="False" ( set "NoECCc=" ) else ( set "NoECCc=" ) set "UnrestrictedClockPolicyc=" if "%UnrestrictedClockPolicy%"=="False" ( set "UnrestrictedClockPolicyc=" ) else ( set "UnrestrictedClockPolicyc=" ) cls echo. echo %l%┌─────────────────────────────┐ echo │ %r%W%l% = %e%Up%l% %r%D%l% = %e%Right%l% │ %r% _ _ _____ __ _ _ _____ _%l% echo │ %r%S%l% = %e%Down%l% %r%A%l% = %e%Left%l% │ %r% \ \ / ^| ^| ^| ^| / /\ ^| ^| ^| ^| ^| ^| \ \_/%l% %r%▲%e% Pages [%r%12%e%/%ConfigurationsPages%]%l% echo │ %r%X%l% = %e%Apply%l% │ %r%\_\/ ^|_^| ^|_^| /_/--\ ^|_^|__ ^|_^| ^|_^| ^|_^|%l% %e%Cat. [%r%3%e%/%CategoryNvidiaGPU_Pages%]%l% echo. │ It's not that hard is it? │ echo └─────────────────────────────┘ echo %l%┌─────────────────────────────┐ %r%▲%e% Configuration: %r%Nvidia GPU%l% echo ^│ ^│ Here you can configure all settings that are going to be applied echo ^│ ^│ echo ^│ Home ^│ echo ^│ ^│ %e%[%r% 1 %e%] %r%•%e% ECC%l% %NoECCc%▼%l% echo ^│ ^│ Disable Nvidia ECC echo ^│ Tweaks ^│ echo ^│ ^│ %e%[%r% 2 %e%] %r%•%e% Clock Policy%l% %UnrestrictedClockPolicyc%▼%l% echo ^│ ^│ Configure Unrestricted Clock Policy echo ^│ Ingame Settings ^│ echo ^│ ^│ echo ^│ ^│ echo ^│ Recording Settings ^│ echo ^│ ^│ echo ^│ ^│ echo ^│ Privacy ^│ echo ^│ ^│ echo ^│ ^│ echo ^│ %r%Configuration%l% ^│ echo ^│ ^│ echo ^│ ^│ echo ^│ Credits ^│ echo ^│ ^│ echo ^│ ^│ echo └─────────────────────────────┘ %l%┌──────────────────────┐ ┌───────────────────┐ echo %l%│ %e%Go to Tweaks Tab [%r%G%e%]%l% │ │ %e%Skip Category [%r%N%e%]%l% │ echo └──────────────────────┘ └───────────────────┘ choice /c:WS123456GNDA /n /m " " set MenuItem=%errorlevel% if "%MenuItem%"=="1" goto Privacy if "%MenuItem%"=="2" goto Credits if "%MenuItem%"=="3" ( if "%NoECC%"=="False" ( set "NoECC=True" ) else ( set "NoECC=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="4" ( if "%UnrestrictedClockPolicy%"=="False" ( set "UnrestrictedClockPolicy=True" ) else ( set "UnrestrictedClockPolicy=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="9" ( if "%LastTweaks1%"=="true" ( goto :LastTweaks1 ) else ( goto :LastTweaks2 ) ) if "%MenuItem%"=="10" goto Configuration14 if "%MenuItem%"=="11" goto Configuration14 if "%MenuItem%"=="12" goto Configuration11 :Configuration10AMD set LastConfiguration=:Configuration10AMD set "GameModeAMDc=" if "%GameModeAMD%"=="False" ( set "GameModeAMDc=" ) else ( set "GameModeAMDc=" ) set "AMDOptimizedSettingsc=" if "%AMDOptimizedSettings%"=="False" ( set "AMDOptimizedSettingsc=" ) else ( set "AMDOptimizedSettingsc=" ) set "AMDDebloatc=" if "%AMDDebloat%"=="False" ( set "AMDDebloatc=" ) else ( set "AMDDebloatc=" ) cls echo. echo %l%┌─────────────────────────────┐ echo │ %r%W%l% = %e%Up%l% %r%D%l% = %e%Right%l% │ %r% _ _ _____ __ _ _ _____ _%l% echo │ %r%S%l% = %e%Down%l% %r%A%l% = %e%Left%l% │ %r% \ \ / ^| ^| ^| ^| / /\ ^| ^| ^| ^| ^| ^| \ \_/%l% %r%▲%e% Pages [%r%10%e%/%ConfigurationsPages%]%l% echo │ %r%X%l% = %e%Apply%l% │ %r%\_\/ ^|_^| ^|_^| /_/--\ ^|_^|__ ^|_^| ^|_^| ^|_^|%l% %e%Cat. [%r%1%e%/%CategoryAMDGPU_Pages%]%l% echo. │ It's not that hard is it? │ echo └─────────────────────────────┘ echo %l%┌─────────────────────────────┐ %r%▲%e% Configuration: %r%AMD GPU%l% echo ^│ ^│ Here you can configure all settings that are going to be applied echo ^│ ^│ echo ^│ Home ^│ echo ^│ ^│ %e%[%r% 1 %e%] %r%•%e% Game Mode%l% %GameModeAMDc%▼%l% echo ^│ ^│ Disable Game Mode echo ^│ Tweaks ^│ echo ^│ ^│ %e%[%r% 2 %e%] %r%•%e% AMD Optimized Settings%l% %AMDOptimizedSettingsc%▼%l% echo ^│ ^│ Optimize AMD Radoeon Software Settings echo ^│ Ingame Settings ^│ echo ^│ ^│ %e%[%r% 3 %e%] %r%•%e% AMD Debloat%l% %AMDDebloatc%▼%l% echo ^│ ^│ Debloat AMD GPU echo ^│ Recording Settings ^│ echo ^│ ^│ echo ^│ ^│ echo ^│ Privacy ^│ echo ^│ ^│ echo ^│ ^│ echo ^│ %r%Configuration%l% ^│ echo ^│ ^│ echo ^│ ^│ echo ^│ Credits ^│ echo ^│ ^│ echo ^│ ^│ echo └─────────────────────────────┘ %l%┌──────────────────────┐ ┌───────────────────┐ echo %l%│ %e%Go to Tweaks Tab [%r%G%e%]%l% │ │ %e%Skip Category [%r%N%e%]%l% │ echo └──────────────────────┘ └───────────────────┘ choice /c:WS123456GNDA /n /m " " set MenuItem=%errorlevel% if "%MenuItem%"=="1" goto Privacy if "%MenuItem%"=="2" goto Credits if "%MenuItem%"=="3" ( if "%GameModeAMD%"=="False" ( set "GameModeAMD=True" ) else ( set "GameModeAMD=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="4" ( if "%AMDOptimizedSettings%"=="False" ( set "AMDOptimizedSettings=True" ) else ( set "AMDOptimizedSettings=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="5" ( if "%AMDDebloat%"=="False" ( set "AMDDebloat=True" ) else ( set "AMDDebloat=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="9" ( if "%LastTweaks1%"=="true" ( goto :LastTweaks1 ) else ( goto :LastTweaks2 ) ) if "%MenuItem%"=="10" goto Configuration14 if "%MenuItem%"=="11" goto Configuration14 if "%MenuItem%"=="12" goto Configuration9 :Configuration14 set LastConfiguration=:Configuration14 set "MemoryManagmentc=" if "%MemoryManagment%"=="False" ( set "MemoryManagmentc=" ) else ( set "MemoryManagmentc=" ) set "LargePageDriversc=" if "%LargePageDrivers%"=="False" ( set "LargePageDriversc=" ) else ( set "LargePageDriversc=" ) cls echo. echo %l%┌─────────────────────────────┐ echo │ %r%W%l% = %e%Up%l% %r%D%l% = %e%Right%l% │ %r% _ _ _____ __ _ _ _____ _%l% echo │ %r%S%l% = %e%Down%l% %r%A%l% = %e%Left%l% │ %r% \ \ / ^| ^| ^| ^| / /\ ^| ^| ^| ^| ^| ^| \ \_/%l% %r%▲%e% Pages [%r%14%e%/%ConfigurationsPages%]%l% echo │ %r%X%l% = %e%Apply%l% │ %r%\_\/ ^|_^| ^|_^| /_/--\ ^|_^|__ ^|_^| ^|_^| ^|_^|%l% %e%Cat. [%r%1%e%/%CategoryRAM_Pages%]%l% echo. │ It's not that hard is it? │ echo └─────────────────────────────┘ echo %l%┌─────────────────────────────┐ %r%▲%e% Configuration: %r%RAM%l% echo ^│ ^│ Here you can configure all settings that are going to be applied echo ^│ ^│ echo ^│ Home ^│ echo ^│ ^│ %e%[%r% 1 %e%] %r%•%e% Memory Management%l% %MemoryManagmentc%▼%l% echo ^│ ^│ Configure Memory Management echo ^│ Tweaks ^│ echo ^│ ^│ %e%[%r% 2 %e%] %r%•%e% Large Page Drivers%l% %LargePageDriversc%▼%l% echo ^│ ^│ Enable Large Page Drivers echo ^│ Ingame Settings ^│ echo ^│ ^│ echo ^│ ^│ echo ^│ Recording Settings ^│ echo ^│ ^│ echo ^│ ^│ echo ^│ Privacy ^│ echo ^│ ^│ echo ^│ ^│ echo ^│ %r%Configuration%l% ^│ echo ^│ ^│ echo ^│ ^│ echo ^│ Credits ^│ echo ^│ ^│ echo ^│ ^│ echo └─────────────────────────────┘ %l%┌──────────────────────┐ ┌───────────────────┐ echo %l%│ %e%Go to Tweaks Tab [%r%G%e%]%l% │ │ %e%Skip Category [%r%N%e%]%l% │ echo └──────────────────────┘ └───────────────────┘ choice /c:WS123456GNDA /n /m " " set MenuItem=%errorlevel% if "%MenuItem%"=="1" goto Privacy if "%MenuItem%"=="2" goto Credits if "%MenuItem%"=="3" ( if "%MemoryManagment%"=="False" ( set "MemoryManagment=True" ) else ( set "MemoryManagment=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="4" ( if "%LargePageDrivers%"=="False" ( set "LargePageDrivers=True" ) else ( set "LargePageDrivers=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="9" ( if "%LastTweaks1%"=="true" ( goto :LastTweaks1 ) else ( goto :LastTweaks2 ) ) if "%MenuItem%"=="10" goto Configuration15 if "%MenuItem%"=="11" goto Configuration15 if "%MenuItem%"=="12" ( if "%Configuration10%"==":Configuration14" ( goto Configuration9 ) else ( goto %Configuration10% ) ) :Configuration15 set LastConfiguration=:Configuration15 set "FileSystemOptimizationc=" if "%FileSystemOptimization%"=="False" ( set "FileSystemOptimizationc=" ) else ( set "FileSystemOptimizationc=" ) set "Cleanerc=" if "%Cleaner%"=="False" ( set "Cleanerc=" ) else ( set "Cleanerc=" ) set "Startupcleanerc=" if "%Startupcleaner%"=="False" ( set "Startupcleanerc=" ) else ( set "Startupcleanerc=" ) cls echo. echo %l%┌─────────────────────────────┐ echo │ %r%W%l% = %e%Up%l% %r%D%l% = %e%Right%l% │ %r% _ _ _____ __ _ _ _____ _%l% echo │ %r%S%l% = %e%Down%l% %r%A%l% = %e%Left%l% │ %r% \ \ / ^| ^| ^| ^| / /\ ^| ^| ^| ^| ^| ^| \ \_/%l% %r%▲%e% Pages [%r%15%e%/%ConfigurationsPages%]%l% echo │ %r%X%l% = %e%Apply%l% │ %r%\_\/ ^|_^| ^|_^| /_/--\ ^|_^|__ ^|_^| ^|_^| ^|_^|%l% %e%Cat. [%r%1%e%/%CategoryDISK_Pages%]%l% echo. │ It's not that hard is it? │ echo └─────────────────────────────┘ echo %l%┌─────────────────────────────┐ %r%▲%e% Configuration: %r%Disk%l% echo ^│ ^│ Here you can configure all settings that are going to be applied echo ^│ ^│ echo ^│ Home ^│ echo ^│ ^│ %e%[%r% 1 %e%] %r%•%e% File System%l% %FileSystemOptimizationc%▼%l% echo ^│ ^│ Optimize File System echo ^│ Tweaks ^│ echo ^│ ^│ %e%[%r% 2 %e%] %r%•%e% Cleaner%l% %Cleanerc%▼%l% echo ^│ ^│ Clean Junk Files echo ^│ Ingame Settings ^│ echo ^│ ^│ %e%[%r% 3 %e%] %r%•%e% Startup Cleaner%l% %Startupcleanerc%▼%l% echo ^│ ^│ Add Startup Cleaner echo ^│ Recording Settings ^│ echo ^│ ^│ echo ^│ ^│ echo ^│ Privacy ^│ echo ^│ ^│ echo ^│ ^│ echo ^│ %r%Configuration%l% ^│ echo ^│ ^│ echo ^│ ^│ echo ^│ Credits ^│ echo ^│ ^│ echo ^│ ^│ echo └─────────────────────────────┘ %l%┌──────────────────────┐ ┌───────────────────┐ echo %l%│ %e%Go to Tweaks Tab [%r%G%e%]%l% │ │ %e%Skip Category [%r%N%e%]%l% │ echo └──────────────────────┘ └───────────────────┘ choice /c:WS123456GNDA /n /m " " set MenuItem=%errorlevel% if "%MenuItem%"=="1" goto Privacy if "%MenuItem%"=="2" goto Credits if "%MenuItem%"=="3" ( if "%FileSystemOptimization%"=="False" ( set "FileSystemOptimization=True" ) else ( set "FileSystemOptimization=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="4" ( if "%Cleaner%"=="False" ( set "Cleaner=True" ) else ( set "Cleaner=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="5" ( if "%Startupcleaner%"=="False" ( set "Startupcleaner=True" ) else ( set "Startupcleaner=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="9" ( if "%LastTweaks1%"=="true" ( goto :LastTweaks1 ) else ( goto :LastTweaks2 ) ) if "%MenuItem%"=="10" goto Configuration16 if "%MenuItem%"=="11" goto Configuration16 if "%MenuItem%"=="12" goto Configuration14 :Configuration16 set LastConfiguration=:Configuration16 set "DisableTelemetryc=" if "%DisableTelemetry%"=="False" ( set "DisableTelemetryc=" ) else ( set "DisableTelemetryc=" ) set "DisableHibernationc=" if "%DisableHibernation%"=="False" ( set "DisableHibernationc=" ) else ( set "DisableHibernationc=" ) set "BootOptionsc=" if "%BootOptions%"=="False" ( set "BootOptionsc=" ) else ( set "BootOptionsc=" ) set "PasswordOnWakeUpc=" if "%PasswordOnWakeUp%"=="False" ( set "PasswordOnWakeUpc=" ) else ( set "PasswordOnWakeUpc=" ) set "DisableAutomaticMaintenancec=" if "%DisableAutomaticMaintenance%"=="False" ( set "DisableAutomaticMaintenancec=" ) else ( set "DisableAutomaticMaintenancec=" ) set "DisableLocationTrackingc=" if "%DisableLocationTracking%"=="False" ( set "DisableLocationTrackingc=" ) else ( set "DisableLocationTrackingc=" ) cls echo. echo %l%┌─────────────────────────────┐ echo │ %r%W%l% = %e%Up%l% %r%D%l% = %e%Right%l% │ %r% _ _ _____ __ _ _ _____ _%l% echo │ %r%S%l% = %e%Down%l% %r%A%l% = %e%Left%l% │ %r% \ \ / ^| ^| ^| ^| / /\ ^| ^| ^| ^| ^| ^| \ \_/%l% %r%▲%e% Pages [%r%16%e%/%ConfigurationsPages%]%l% echo │ %r%X%l% = %e%Apply%l% │ %r%\_\/ ^|_^| ^|_^| /_/--\ ^|_^|__ ^|_^| ^|_^| ^|_^|%l% %e%Cat. [%r%1%e%/%CategoryWindows_Pages%]%l% echo. │ It's not that hard is it? │ echo └─────────────────────────────┘ echo %l%┌─────────────────────────────┐ %r%▲%e% Configuration: %r%Windows%l% echo ^│ ^│ Here you can configure all settings that are going to be applied echo ^│ ^│ echo ^│ Home ^│ echo ^│ ^│ %e%[%r% 1 %e%] %r%•%e% Telemtry%l% %DisableTelemetryc%▼%l% echo ^│ ^│ Disable Telemetry echo ^│ Tweaks ^│ echo ^│ ^│ %e%[%r% 2 %e%] %r%•%e% Hibernation%l% %DisableHibernationc%▼%l% echo ^│ ^│ Disable Hibernation echo ^│ Ingame Settings ^│ echo ^│ ^│ %e%[%r% 3 %e%] %r%•%e% Boot Settings%l% %BootOptionsc%▼%l% echo ^│ ^│ Configure Boot Settings echo ^│ Recording Settings ^│ echo ^│ ^│ %e%[%r% 4 %e%] %r%•%e% Password On Wake Up%l% %PasswordOnWakeUpc%▼%l% echo ^│ ^│ Disable Password On Wake Up echo ^│ Privacy ^│ echo ^│ ^│ %e%[%r% 5 %e%] %r%•%e% Automatic Maintenance%l% %DisableAutomaticMaintenancec%▼%l% echo ^│ ^│ Disable Automatic Maintenance echo ^│ %r%Configuration%l% ^│ echo ^│ ^│ %e%[%r% 6 %e%] %r%•%e% Locatino Tracking%l% %DisableLocationTrackingc%▼%l% echo ^│ ^│ Disable Location Tracking echo ^│ Credits ^│ echo ^│ ^│ echo ^│ ^│ echo └─────────────────────────────┘ %l%┌──────────────────────┐ ┌───────────────────┐ echo %l%│ %e%Go to Tweaks Tab [%r%G%e%]%l% │ │ %e%Skip Category [%r%N%e%]%l% │ echo └──────────────────────┘ └───────────────────┘ choice /c:WS123456GNDA /n /m " " set MenuItem=%errorlevel% if "%MenuItem%"=="1" goto Privacy if "%MenuItem%"=="2" goto Credits if "%MenuItem%"=="3" ( if "%DisableTelemetry%"=="False" ( set "DisableTelemetry=True" ) else ( set "DisableTelemetry=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="4" ( if "%DisableHibernation%"=="False" ( set "DisableHibernation=True" ) else ( set "DisableHibernation=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="5" ( if "%BootOptions%"=="False" ( set "BootOptions=True" ) else ( set "BootOptions=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="6" ( if "%PasswordOnWakeUp%"=="False" ( set "PasswordOnWakeUp=True" ) else ( set "PasswordOnWakeUp=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="7" ( if "%DisableAutomaticMaintenance%"=="False" ( set "DisableAutomaticMaintenance=True" ) else ( set "DisableAutomaticMaintenance=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="8" ( if "%DisableLocationTracking%"=="False" ( set "DisableLocationTracking=True" ) else ( set "DisableLocationTracking=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="9" ( if "%LastTweaks1%"=="true" ( goto :LastTweaks1 ) else ( goto :LastTweaks2 ) ) if "%MenuItem%"=="10" goto %Configuration23% if "%MenuItem%"=="11" goto Configuration17 if "%MenuItem%"=="12" goto Configuration15 :Configuration17 set LastConfiguration=:Configuration17 set "DisablePushNotificationsc=" if "%DisablePushNotifications%"=="False" ( set "DisablePushNotificationsc=" ) else ( set "DisablePushNotificationsc=" ) set "DisableDriverSearchingc=" if "%DisableDriverSearching%"=="False" ( set "DisableDriverSearchingc=" ) else ( set "DisableDriverSearchingc=" ) set "DisableWindowsNotificationsc=" if "%DisableWindowsNotifications%"=="False" ( set "DisableWindowsNotificationsc=" ) else ( set "DisableWindowsNotificationsc=" ) set "DisableTransparencyc=" if "%DisableTransparency%"=="False" ( set "DisableTransparencyc=" ) else ( set "DisableTransparencyc=" ) set "PauseMapsUpdatesc=" if "%PauseMapsUpdates%"=="False" ( set "PauseMapsUpdatesc=" ) else ( set "PauseMapsUpdatesc=" ) set "DisableSettingsSyncc=" if "%DisableSettingsSync%"=="False" ( set "DisableSettingsSyncc=" ) else ( set "DisableSettingsSyncc=" ) cls echo. echo %l%┌─────────────────────────────┐ echo │ %r%W%l% = %e%Up%l% %r%D%l% = %e%Right%l% │ %r% _ _ _____ __ _ _ _____ _%l% echo │ %r%S%l% = %e%Down%l% %r%A%l% = %e%Left%l% │ %r% \ \ / ^| ^| ^| ^| / /\ ^| ^| ^| ^| ^| ^| \ \_/%l% %r%▲%e% Pages [%r%17%e%/%ConfigurationsPages%]%l% echo │ %r%X%l% = %e%Apply%l% │ %r%\_\/ ^|_^| ^|_^| /_/--\ ^|_^|__ ^|_^| ^|_^| ^|_^|%l% %e%Cat. [%r%2%e%/%CategoryWindows_Pages%]%l% echo. │ It's not that hard is it? │ echo └─────────────────────────────┘ echo %l%┌─────────────────────────────┐ %r%▲%e% Configuration: %r%Windows%l% echo ^│ ^│ Here you can configure all settings that are going to be applied echo ^│ ^│ echo ^│ Home ^│ echo ^│ ^│ %e%[%r% 1 %e%] %r%•%e% Push Notifications%l% %DisablePushNotificationsc%▼%l% echo ^│ ^│ Disable Push Notifications echo ^│ Tweaks ^│ echo ^│ ^│ %e%[%r% 2 %e%] %r%•%e% Driver Searching%l% %DisableDriverSearchingc%▼%l% echo ^│ ^│ Disable Driver Searching echo ^│ Ingame Settings ^│ echo ^│ ^│ %e%[%r% 3 %e%] %r%•%e% Windows Notifications%l% %DisableWindowsNotificationsc%▼%l% echo ^│ ^│ Disable Windows Notifications echo ^│ Recording Settings ^│ echo ^│ ^│ %e%[%r% 4 %e%] %r%•%e% Transparency%l% %DisableTransparencyc%▼%l% echo ^│ ^│ Disable Transparency echo ^│ Privacy ^│ echo ^│ ^│ %e%[%r% 5 %e%] %r%•%e% Maps Updates%l% %PauseMapsUpdatesc%▼%l% echo ^│ ^│ Pause Maps Updates echo ^│ %r%Configuration%l% ^│ echo ^│ ^│ %e%[%r% 6 %e%] %r%•%e% Settings Synchronization%l% %DisableSettingsSyncc%▼%l% echo ^│ ^│ Disable Settings Synchronization echo ^│ Credits ^│ echo ^│ ^│ echo ^│ ^│ echo └─────────────────────────────┘ %l%┌──────────────────────┐ ┌───────────────────┐ echo %l%│ %e%Go to Tweaks Tab [%r%G%e%]%l% │ │ %e%Skip Category [%r%N%e%]%l% │ echo └──────────────────────┘ └───────────────────┘ choice /c:WS123456GNDA /n /m " " set MenuItem=%errorlevel% if "%MenuItem%"=="1" goto Privacy if "%MenuItem%"=="2" goto Credits if "%MenuItem%"=="3" ( if "%DisablePushNotifications%"=="False" ( set "DisablePushNotifications=True" ) else ( set "DisablePushNotifications=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="4" ( if "%DisableDriverSearching%"=="False" ( set "DisableDriverSearching=True" ) else ( set "DisableDriverSearching=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="5" ( if "%DisableWindowsNotifications%"=="False" ( set "DisableWindowsNotifications=True" ) else ( set "DisableWindowsNotifications=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="6" ( if "%DisableTransparency%"=="False" ( set "DisableTransparency=True" ) else ( set "DisableTransparency=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="7" ( if "%PauseMapsUpdates%"=="False" ( set "PauseMapsUpdates=True" ) else ( set "PauseMapsUpdates=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="8" ( if "%DisableSettingsSync%"=="False" ( set "DisableSettingsSync=True" ) else ( set "DisableSettingsSync=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="9" ( if "%LastTweaks1%"=="true" ( goto :LastTweaks1 ) else ( goto :LastTweaks2 ) ) if "%MenuItem%"=="10" goto %Configuration23% if "%MenuItem%"=="11" goto Configuration18 if "%MenuItem%"=="12" goto Configuration16 :Configuration18 set LastConfiguration=:Configuration18 set "DisableAdvertisingIDc=" if "%DisableAdvertisingID%"=="False" ( set "DisableAdvertisingIDc=" ) else ( set "DisableAdvertisingIDc=" ) set "DisableWebInSearchc=" if "%DisableWebInSearch%"=="False" ( set "DisableWebInSearchc=" ) else ( set "DisableWebInSearchc=" ) set "DisableRemoteAssistancec=" if "%DisableRemoteAssistance%"=="False" ( set "DisableRemoteAssistancec=" ) else ( set "DisableRemoteAssistancec=" ) set "DisableInventoryCollectorc=" if "%DisableInventoryCollector%"=="False" ( set "DisableInventoryCollectorc=" ) else ( set "DisableInventoryCollectorc=" ) set "DisableWindowsErrorReportingc=" if "%DisableWindowsErrorReporting%"=="False" ( set "DisableWindowsErrorReportingc=" ) else ( set "DisableWindowsErrorReportingc=" ) set "DisableCustomerExperienceProgramc=" if "%DisableCustomerExperienceProgram%"=="False" ( set "DisableCustomerExperienceProgramc=" ) else ( set "DisableCustomerExperienceProgramc=" ) cls echo. echo %l%┌─────────────────────────────┐ echo │ %r%W%l% = %e%Up%l% %r%D%l% = %e%Right%l% │ %r% _ _ _____ __ _ _ _____ _%l% echo │ %r%S%l% = %e%Down%l% %r%A%l% = %e%Left%l% │ %r% \ \ / ^| ^| ^| ^| / /\ ^| ^| ^| ^| ^| ^| \ \_/%l% %r%▲%e% Pages [%r%18%e%/%ConfigurationsPages%]%l% echo │ %r%X%l% = %e%Apply%l% │ %r%\_\/ ^|_^| ^|_^| /_/--\ ^|_^|__ ^|_^| ^|_^| ^|_^|%l% %e%Cat. [%r%3%e%/%CategoryWindows_Pages%]%l% echo. │ It's not that hard is it? │ echo └─────────────────────────────┘ echo %l%┌─────────────────────────────┐ %r%▲%e% Configuration: %r%Windows%l% echo ^│ ^│ Here you can configure all settings that are going to be applied echo ^│ ^│ echo ^│ Home ^│ echo ^│ ^│ %e%[%r% 1 %e%] %r%•%e% Advertising ID%l% %DisableAdvertisingIDc%▼%l% echo ^│ ^│ Disable Advertising ID echo ^│ Tweaks ^│ echo ^│ ^│ %e%[%r% 2 %e%] %r%•%e% Web In Search%l% %DisableWebInSearchc%▼%l% echo ^│ ^│ Disable Web In Search echo ^│ Ingame Settings ^│ echo ^│ ^│ %e%[%r% 3 %e%] %r%•%e% Remote Assistance%l% %DisableRemoteAssistancec%▼%l% echo ^│ ^│ Disable Remote Assistance echo ^│ Recording Settings ^│ echo ^│ ^│ %e%[%r% 4 %e%] %r%•%e% Inventory Collector%l% %DisableInventoryCollectorc%▼%l% echo ^│ ^│ Disable Inventory Collector echo ^│ Privacy ^│ echo ^│ ^│ %e%[%r% 5 %e%] %r%•%e% Windows Error Reporting%l% %DisableWindowsErrorReportingc%▼%l% echo ^│ ^│ Disable Windows Error Reporting echo ^│ %r%Configuration%l% ^│ echo ^│ ^│ %e%[%r% 6 %e%] %r%•%e% Customer Experience Program%l% %DisableCustomerExperienceProgramc%▼%l% echo ^│ ^│ Disable Customer Experience Program echo ^│ Credits ^│ echo ^│ ^│ echo ^│ ^│ echo └─────────────────────────────┘ %l%┌──────────────────────┐ ┌───────────────────┐ echo %l%│ %e%Go to Tweaks Tab [%r%G%e%]%l% │ │ %e%Skip Category [%r%N%e%]%l% │ echo └──────────────────────┘ └───────────────────┘ choice /c:WS123456GNDA /n /m " " set MenuItem=%errorlevel% if "%MenuItem%"=="1" goto Privacy if "%MenuItem%"=="2" goto Credits if "%MenuItem%"=="3" ( if "%DisableAdvertisingID%"=="False" ( set "DisableAdvertisingID=True" ) else ( set "DisableAdvertisingID=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="4" ( if "%DisableWebInSearch%"=="False" ( set "DisableWebInSearch=True" ) else ( set "DisableWebInSearch=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="5" ( if "%DisableRemoteAssistance%"=="False" ( set "DisableRemoteAssistance=True" ) else ( set "DisableRemoteAssistance=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="6" ( if "%DisableInventoryCollector%"=="False" ( set "DisableInventoryCollector=True" ) else ( set "DisableInventoryCollector=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="7" ( if "%DisableWindowsErrorReporting%"=="False" ( set "DisableWindowsErrorReporting=True" ) else ( set "DisableWindowsErrorReporting=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="8" ( if "%DisableCustomerExperienceProgram%"=="False" ( set "DisableCustomerExperienceProgram=True" ) else ( set "DisableCustomerExperienceProgram=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="9" ( if "%LastTweaks1%"=="true" ( goto :LastTweaks1 ) else ( goto :LastTweaks2 ) ) if "%MenuItem%"=="10" goto %Configuration23% if "%MenuItem%"=="11" goto Configuration19 if "%MenuItem%"=="12" goto Configuration17 :Configuration19 set LastConfiguration=:Configuration19 set "DisableOneDriveSyncc=" if "%DisableOneDriveSync%"=="False" ( set "DisableOneDriveSyncc=" ) else ( set "DisableOneDriveSyncc=" ) set "DisableBiometricsc=" if "%DisableBiometrics%"=="False" ( set "DisableBiometricsc=" ) else ( set "DisableBiometricsc=" ) set "DenyCapabilityForAppsc=" if "%DenyCapabilityForApps%"=="False" ( set "DenyCapabilityForAppsc=" ) else ( set "DenyCapabilityForAppsc=" ) set "DisableLocationServicesc=" if "%DisableLocationServices%"=="False" ( set "DisableLocationServicesc=" ) else ( set "DisableLocationServicesc=" ) set "PreventWindowsMarkingFilesc=" if "%PreventWindowsMarkingFiles%"=="False" ( set "PreventWindowsMarkingFilesc=" ) else ( set "PreventWindowsMarkingFilesc=" ) set "DisableLanguageBarc=" if "%DisableLanguageBar%"=="False" ( set "DisableLanguageBarc=" ) else ( set "DisableLanguageBarc=" ) cls echo. echo %l%┌─────────────────────────────┐ echo │ %r%W%l% = %e%Up%l% %r%D%l% = %e%Right%l% │ %r% _ _ _____ __ _ _ _____ _%l% echo │ %r%S%l% = %e%Down%l% %r%A%l% = %e%Left%l% │ %r% \ \ / ^| ^| ^| ^| / /\ ^| ^| ^| ^| ^| ^| \ \_/%l% %r%▲%e% Pages [%r%19%e%/%ConfigurationsPages%]%l% echo │ %r%X%l% = %e%Apply%l% │ %r%\_\/ ^|_^| ^|_^| /_/--\ ^|_^|__ ^|_^| ^|_^| ^|_^|%l% %e%Cat. [%r%4%e%/%CategoryWindows_Pages%]%l% echo. │ It's not that hard is it? │ echo └─────────────────────────────┘ echo %l%┌─────────────────────────────┐ %r%▲%e% Configuration: %r%Windows%l% echo ^│ ^│ Here you can configure all settings that are going to be applied echo ^│ ^│ echo ^│ Home ^│ echo ^│ ^│ %e%[%r% 1 %e%] %r%•%e% OneDrive Synchronization%l% %DisableOneDriveSyncc%▼%l% echo ^│ ^│ Disable OneDrive Synchronization echo ^│ Tweaks ^│ echo ^│ ^│ %e%[%r% 2 %e%] %r%•%e% Biometrics%l% %DisableBiometricsc%▼%l% echo ^│ ^│ Disable Biometrics echo ^│ Ingame Settings ^│ echo ^│ ^│ %e%[%r% 3 %e%] %r%•%e% Capability For Apps%l% %DenyCapabilityForAppsc%▼%l% echo ^│ ^│ Deny Capability For Apps echo ^│ Recording Settings ^│ echo ^│ ^│ %e%[%r% 4 %e%] %r%•%e% Location Services%l% %DisableLocationServicesc%▼%l% echo ^│ ^│ Disable Location Services echo ^│ Privacy ^│ echo ^│ ^│ %e%[%r% 5 %e%] %r%•%e% Marking Files%l% %PreventWindowsMarkingFilesc%▼%l% echo ^│ ^│ Prevent Windows Marking Files echo ^│ %r%Configuration%l% ^│ echo ^│ ^│ %e%[%r% 6 %e%] %r%•%e% Language Bar%l% %DisableLanguageBarc%▼%l% echo ^│ ^│ Disable Language Bar echo ^│ Credits ^│ echo ^│ ^│ echo ^│ ^│ echo └─────────────────────────────┘ %l%┌──────────────────────┐ ┌───────────────────┐ echo %l%│ %e%Go to Tweaks Tab [%r%G%e%]%l% │ │ %e%Skip Category [%r%N%e%]%l% │ echo └──────────────────────┘ └───────────────────┘ choice /c:WS123456GNDA /n /m " " set MenuItem=%errorlevel% if "%MenuItem%"=="1" goto Privacy if "%MenuItem%"=="2" goto Credits if "%MenuItem%"=="3" ( if "%DisableOneDriveSync%"=="False" ( set "DisableOneDriveSync=True" ) else ( set "DisableOneDriveSync=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="4" ( if "%DisableBiometrics%"=="False" ( set "DisableBiometrics=True" ) else ( set "DisableBiometrics=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="5" ( if "%DenyCapabilityForApps%"=="False" ( set "DenyCapabilityForApps=True" ) else ( set "DenyCapabilityForApps=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="6" ( if "%DisableLocationServices%"=="False" ( set "DisableLocationServices=True" ) else ( set "DisableLocationServices=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="7" ( if "%PreventWindowsMarkingFiles%"=="False" ( set "PreventWindowsMarkingFiles=True" ) else ( set "PreventWindowsMarkingFiles=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="8" ( if "%DisableLanguageBar%"=="False" ( set "DisableLanguageBar=True" ) else ( set "DisableLanguageBar=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="9" ( if "%LastTweaks1%"=="true" ( goto :LastTweaks1 ) else ( goto :LastTweaks2 ) ) if "%MenuItem%"=="10" goto %Configuration23% if "%MenuItem%"=="11" goto Configuration20 if "%MenuItem%"=="12" goto Configuration18 :Configuration20 set LastConfiguration=:Configuration20 set "DisableStickyKeysc=" if "%DisableStickyKeys%"=="False" ( set "DisableStickyKeysc=" ) else ( set "DisableStickyKeysc=" ) set "DisableProgramCompatibilityAssistantc=" if "%DisableProgramCompatibilityAssistant%"=="False" ( set "DisableProgramCompatibilityAssistantc=" ) else ( set "DisableProgramCompatibilityAssistantc=" ) set "DisableFaultTolerantHeapc=" if "%DisableFaultTolerantHeap%"=="False" ( set "DisableFaultTolerantHeapc=" ) else ( set "DisableFaultTolerantHeapc=" ) set "DisablePowerShellTelemtryc=" if "%DisablePowerShellTelemtry%"=="False" ( set "DisablePowerShellTelemtryc=" ) else ( set "DisablePowerShellTelemtryc=" ) set "DisableWindowsErrorReportingc=" if "%DisableWindowsErrorReporting%"=="False" ( set "DisableWindowsErrorReportingc=" ) else ( set "DisableWindowsErrorReportingc=" ) set "DisableRemoteAssistancec=" if "%DisableRemoteAssistance%"=="False" ( set "DisableRemoteAssistancec=" ) else ( set "DisableRemoteAssistancec=" ) cls echo. echo %l%┌─────────────────────────────┐ echo │ %r%W%l% = %e%Up%l% %r%D%l% = %e%Right%l% │ %r% _ _ _____ __ _ _ _____ _%l% echo │ %r%S%l% = %e%Down%l% %r%A%l% = %e%Left%l% │ %r% \ \ / ^| ^| ^| ^| / /\ ^| ^| ^| ^| ^| ^| \ \_/%l% %r%▲%e% Pages [%r%20%e%/%ConfigurationsPages%]%l% echo │ %r%X%l% = %e%Apply%l% │ %r%\_\/ ^|_^| ^|_^| /_/--\ ^|_^|__ ^|_^| ^|_^| ^|_^|%l% %e%Cat. [%r%5%e%/%CategoryWindows_Pages%]%l% echo. │ It's not that hard is it? │ echo └─────────────────────────────┘ echo %l%┌─────────────────────────────┐ %r%▲%e% Configuration: %r%Windows%l% echo ^│ ^│ Here you can configure all settings that are going to be applied echo ^│ ^│ echo ^│ Home ^│ echo ^│ ^│ %e%[%r% 1 %e%] %r%•%e% Sticky Keys%l% %DisableStickyKeysc%▼%l% echo ^│ ^│ Disable Sticky Keys echo ^│ Tweaks ^│ echo ^│ ^│ %e%[%r% 2 %e%] %r%•%e% Program Compatibility%l% %DisableProgramCompatibilityAssistantc%▼%l% echo ^│ ^│ Disable Program Compatibility Assistant echo ^│ Ingame Settings ^│ echo ^│ ^│ %e%[%r% 3 %e%] %r%•%e% Fault Tolerant Heap%l% %DisableFaultTolerantHeapc%▼%l% echo ^│ ^│ Disable Fault Tolerant Heap echo ^│ Recording Settings ^│ echo ^│ ^│ %e%[%r% 4 %e%] %r%•%e% Power Shell Telemtry%l% %DisablePowerShellTelemtryc%▼%l% echo ^│ ^│ Disable PowerShell Telemtry echo ^│ Privacy ^│ echo ^│ ^│ %e%[%r% 5 %e%] %r%•%e% Windows Error Reporting%l% %DisableWindowsErrorReportingc%▼%l% echo ^│ ^│ Prevent Windows Error Reporting echo ^│ %r%Configuration%l% ^│ echo ^│ ^│ %e%[%r% 6 %e%] %r%•%e% Remote Assistance%l% %DisableRemoteAssistancec%▼%l% echo ^│ ^│ Disable Remote Assistance echo ^│ Credits ^│ echo ^│ ^│ echo ^│ ^│ echo └─────────────────────────────┘ %l%┌──────────────────────┐ ┌───────────────────┐ echo %l%│ %e%Go to Tweaks Tab [%r%G%e%]%l% │ │ %e%Skip Category [%r%N%e%]%l% │ echo └──────────────────────┘ └───────────────────┘ choice /c:WS123456GNDA /n /m " " set MenuItem=%errorlevel% if "%MenuItem%"=="1" goto Privacy if "%MenuItem%"=="2" goto Credits if "%MenuItem%"=="3" ( if "%DisableStickyKeys%"=="False" ( set "DisableStickyKeys=True" ) else ( set "DisableStickyKeys=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="4" ( if "%DisableProgramCompatibilityAssistant%"=="False" ( set "DisableProgramCompatibilityAssistant=True" ) else ( set "DisableProgramCompatibilityAssistant=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="5" ( if "%DisableFaultTolerantHeap%"=="False" ( set "DisableFaultTolerantHeap=True" ) else ( set "DisableFaultTolerantHeap=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="6" ( if "%DisablePowerShellTelemtry%"=="False" ( set "DisablePowerShellTelemtry=True" ) else ( set "DisablePowerShellTelemtry=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="7" ( if "%DisableWindowsErrorReporting%"=="False" ( set "DisableWindowsErrorReporting=True" ) else ( set "DisableWindowsErrorReporting=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="8" ( if "%DisableRemoteAssistance%"=="False" ( set "DisableRemoteAssistance=True" ) else ( set "DisableRemoteAssistance=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="9" ( if "%LastTweaks1%"=="true" ( goto :LastTweaks1 ) else ( goto :LastTweaks2 ) ) if "%MenuItem%"=="10" goto %Configuration23% if "%MenuItem%"=="11" goto Configuration21 if "%MenuItem%"=="12" goto Configuration19 :Configuration21 set LastConfiguration=:Configuration21 set "Remove3DObjectsFromExplorerc=" if "%Remove3DObjectsFromExplorer%"=="False" ( set "Remove3DObjectsFromExplorerc=" ) else ( set "Remove3DObjectsFromExplorerc=" ) set "DisableSignInAndLockLastUserc=" if "%DisableSignInAndLockLastUser%"=="False" ( set "DisableSignInAndLockLastUserc=" ) else ( set "DisableSignInAndLockLastUserc=" ) set "DisableOnlineTipsc=" if "%DisableOnlineTips%"=="False" ( set "DisableOnlineTipsc=" ) else ( set "DisableOnlineTipsc=" ) set "DisableTypingInsightsc=" if "%DisableTypingInsights%"=="False" ( set "DisableTypingInsightsc=" ) else ( set "DisableTypingInsightsc=" ) set "DisableSuggestionsInTheSearchBoxc=" if "%DisableSuggestionsInTheSearchBox%"=="False" ( set "DisableSuggestionsInTheSearchBoxc=" ) else ( set "DisableSuggestionsInTheSearchBoxc=" ) set "RestoreOldContextMenuc=" if "%RestoreOldContextMenu%"=="False" ( set "RestoreOldContextMenuc=" ) else ( set "RestoreOldContextMenuc=" ) cls echo. echo %l%┌─────────────────────────────┐ echo │ %r%W%l% = %e%Up%l% %r%D%l% = %e%Right%l% │ %r% _ _ _____ __ _ _ _____ _%l% echo │ %r%S%l% = %e%Down%l% %r%A%l% = %e%Left%l% │ %r% \ \ / ^| ^| ^| ^| / /\ ^| ^| ^| ^| ^| ^| \ \_/%l% %r%▲%e% Pages [%r%21%e%/%ConfigurationsPages%]%l% echo │ %r%X%l% = %e%Apply%l% │ %r%\_\/ ^|_^| ^|_^| /_/--\ ^|_^|__ ^|_^| ^|_^| ^|_^|%l% %e%Cat. [%r%6%e%/%CategoryWindows_Pages%]%l% echo. │ It's not that hard is it? │ echo └─────────────────────────────┘ echo %l%┌─────────────────────────────┐ %r%▲%e% Configuration: %r%Windows%l% echo ^│ ^│ Here you can configure all settings that are going to be applied echo ^│ ^│ echo ^│ Home ^│ echo ^│ ^│ %e%[%r% 1 %e%] %r%•%e% 3D Objects From Explorer%l% %Remove3DObjectsFromExplorerc%▼%l% echo ^│ ^│ Remove 3D Objects From Explorer echo ^│ Tweaks ^│ echo ^│ ^│ %e%[%r% 2 %e%] %r%•%e% Sing In And Lock Last User%l% %DisableSignInAndLockLastUserc%▼%l% echo ^│ ^│ Disable Sing In And Lock Last User echo ^│ Ingame Settings ^│ echo ^│ ^│ %e%[%r% 3 %e%] %r%•%e% Online Tips%l% %DisableOnlineTipsc%▼%l% echo ^│ ^│ Disable Online Tips echo ^│ Recording Settings ^│ echo ^│ ^│ %e%[%r% 4 %e%] %r%•%e% Typing Insights%l% %DisableTypingInsightsc%▼%l% echo ^│ ^│ Disable Typing Insights echo ^│ Privacy ^│ echo ^│ ^│ %e%[%r% 5 %e%] %r%•%e% Suggestions In The Search Box%l% %DisableSuggestionsInTheSearchBoxc%▼%l% echo ^│ ^│ Disable Suggestions In THe Search Box echo ^│ %r%Configuration%l% ^│ echo ^│ ^│ %e%[%r% 6 %e%] %r%•%e% Old Context Menu%l% %RestoreOldContextMenuc%▼%l% echo ^│ ^│ Restore Old Context Menu echo ^│ Credits ^│ echo ^│ ^│ echo ^│ ^│ echo └─────────────────────────────┘ %l%┌──────────────────────┐ ┌───────────────────┐ echo %l%│ %e%Go to Tweaks Tab [%r%G%e%]%l% │ │ %e%Skip Category [%r%N%e%]%l% │ echo └──────────────────────┘ └───────────────────┘ choice /c:WS123456GNDA /n /m " " set MenuItem=%errorlevel% if "%MenuItem%"=="1" goto Privacy if "%MenuItem%"=="2" goto Credits if "%MenuItem%"=="3" ( if "%Remove3DObjectsFromExplorer%"=="False" ( set "Remove3DObjectsFromExplorer=True" ) else ( set "Remove3DObjectsFromExplorer=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="4" ( if "%DisableSignInAndLockLastUser%"=="False" ( set "DisableSignInAndLockLastUser=True" ) else ( set "DisableSignInAndLockLastUser=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="5" ( if "%DisableOnlineTips%"=="False" ( set "DisableOnlineTips=True" ) else ( set "DisableOnlineTips=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="6" ( if "%DisableTypingInsights%"=="False" ( set "DisableTypingInsights=True" ) else ( set "DisableTypingInsights=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="7" ( if "%DisableSuggestionsInTheSearchBox%"=="False" ( set "DisableSuggestionsInTheSearchBox=True" ) else ( set "DisableSuggestionsInTheSearchBox=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="8" ( if "%RestoreOldContextMenu%"=="False" ( set "RestoreOldContextMenu=True" ) else ( set "RestoreOldContextMenu=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="9" ( if "%LastTweaks1%"=="true" ( goto :LastTweaks1 ) else ( goto :LastTweaks2 ) ) if "%MenuItem%"=="10" goto %Configuration23% if "%MenuItem%"=="11" goto Configuration22 if "%MenuItem%"=="12" goto Configuration20 :Configuration22 set LastConfiguration=:Configuration22 set "RemovePinToQuickAccessc=" if "%RemovePinToQuickAccess%"=="False" ( set "RemovePinToQuickAccessc=" ) else ( set "RemovePinToQuickAccessc=" ) set "HideFoldersInQuickAccessc=" if "%HideFoldersInQuickAccess%"=="False" ( set "HideFoldersInQuickAccessc=" ) else ( set "HideFoldersInQuickAccessc=" ) set "HideQuickAccessFromFileExplorerc=" if "%HideQuickAccessFromFileExplorer%"=="False" ( set "HideQuickAccessFromFileExplorerc=" ) else ( set "HideQuickAccessFromFileExplorerc=" ) set "LaunchFileExplorerToThisPCc=" if "%LaunchFileExplorerToThisPC%"=="False" ( set "LaunchFileExplorerToThisPCc=" ) else ( set "LaunchFileExplorerToThisPCc=" ) set "TurnOffDisplayOfRecentSearchc=" if "%TurnOffDisplayOfRecentSearch%"=="False" ( set "TurnOffDisplayOfRecentSearchc=" ) else ( set "TurnOffDisplayOfRecentSearchc=" ) set "ClearHistoryOfRecentlyOpenedDocumentsOnExitc=" if "%ClearHistoryOfRecentlyOpenedDocumentsOnExit%"=="False" ( set "ClearHistoryOfRecentlyOpenedDocumentsOnExitc=" ) else ( set "ClearHistoryOfRecentlyOpenedDocumentsOnExitc=" ) cls echo. echo %l%┌─────────────────────────────┐ echo │ %r%W%l% = %e%Up%l% %r%D%l% = %e%Right%l% │ %r% _ _ _____ __ _ _ _____ _%l% echo │ %r%S%l% = %e%Down%l% %r%A%l% = %e%Left%l% │ %r% \ \ / ^| ^| ^| ^| / /\ ^| ^| ^| ^| ^| ^| \ \_/%l% %r%▲%e% Pages [%r%22%e%/%ConfigurationsPages%]%l% echo │ %r%X%l% = %e%Apply%l% │ %r%\_\/ ^|_^| ^|_^| /_/--\ ^|_^|__ ^|_^| ^|_^| ^|_^|%l% %e%Cat. [%r%7%e%/%CategoryWindows_Pages%]%l% echo. │ It's not that hard is it? │ echo └─────────────────────────────┘ echo %l%┌─────────────────────────────┐ %r%▲%e% Configuration: %r%Windows%l% echo ^│ ^│ Here you can configure all settings that are going to be applied echo ^│ ^│ echo ^│ Home ^│ echo ^│ ^│ %e%[%r% 1 %e%] %r%•%e% Pin To Quick Access%l% %RemovePinToQuickAccessc%▼%l% echo ^│ ^│ Remove Pin To Quick Access echo ^│ Tweaks ^│ echo ^│ ^│ %e%[%r% 2 %e%] %r%•%e% Folders In Quick Access%l% %HideFoldersInQuickAccessc%▼%l% echo ^│ ^│ Hide Folders In Quick Access echo ^│ Ingame Settings ^│ echo ^│ ^│ %e%[%r% 3 %e%] %r%•%e% Quick Access From File Explorer%l% %HideQuickAccessFromFileExplorerc%▼%l% echo ^│ ^│ Hide Quick Access From FIle Explorer echo ^│ Recording Settings ^│ echo ^│ ^│ %e%[%r% 4 %e%] %r%•%e% This PC%l% %LaunchFileExplorerToThisPCc%▼%l% echo ^│ ^│ Launch File Explorer To This PC echo ^│ Privacy ^│ echo ^│ ^│ %e%[%r% 5 %e%] %r%•%e% Recent Search%l% %TurnOffDisplayOfRecentSearchc%▼%l% echo ^│ ^│ Turn Off Recent Search echo ^│ %r%Configuration%l% ^│ echo ^│ ^│ %e%[%r% 6 %e%] %r%•%e% History Of Opened Document%l% %ClearHistoryOfRecentlyOpenedDocumentsOnExitc%▼%l% echo ^│ ^│ Clear History Of Recently Opened Document echo ^│ Credits ^│ echo ^│ ^│ echo ^│ ^│ echo └─────────────────────────────┘ %l%┌──────────────────────┐ ┌───────────────────┐ echo %l%│ %e%Go to Tweaks Tab [%r%G%e%]%l% │ │ %e%Skip Category [%r%N%e%]%l% │ echo └──────────────────────┘ └───────────────────┘ choice /c:WS123456GNDA /n /m " " set MenuItem=%errorlevel% if "%MenuItem%"=="1" goto Privacy if "%MenuItem%"=="2" goto Credits if "%MenuItem%"=="3" ( if "%RemovePinToQuickAccess%"=="False" ( set "RemovePinToQuickAccess=True" ) else ( set "RemovePinToQuickAccess=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="4" ( if "%HideFoldersInQuickAccess%"=="False" ( set "HideFoldersInQuickAccess=True" ) else ( set "HideFoldersInQuickAccess=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="5" ( if "%HideQuickAccessFromFileExplorer%"=="False" ( set "HideQuickAccessFromFileExplorer=True" ) else ( set "HideQuickAccessFromFileExplorer=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="6" ( if "%LaunchFileExplorerToThisPC%"=="False" ( set "LaunchFileExplorerToThisPC=True" ) else ( set "LaunchFileExplorerToThisPC=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="7" ( if "%TurnOffDisplayOfRecentSearch%"=="False" ( set "TurnOffDisplayOfRecentSearch=True" ) else ( set "TurnOffDisplayOfRecentSearch=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="8" ( if "%ClearHistoryOfRecentlyOpenedDocumentsOnExit%"=="False" ( set "ClearHistoryOfRecentlyOpenedDocumentsOnExit=True" ) else ( set "ClearHistoryOfRecentlyOpenedDocumentsOnExit=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="9" ( if "%LastTweaks1%"=="true" ( goto :LastTweaks1 ) else ( goto :LastTweaks2 ) ) if "%MenuItem%"=="10" goto %Configuration23% if "%MenuItem%"=="11" goto %Configuration23% if "%MenuItem%"=="12" goto Configuration21 :Configuration23Intel set LastConfiguration=:Configuration23Intel set "IntelCpuVirtualizationc=" if "%IntelCpuVirtualization%"=="False" ( set "IntelCpuVirtualizationc=" ) else ( set "IntelCpuVirtualizationc=" ) set "IntelCoreIsolationc=" if "%IntelCoreIsolation%"=="False" ( set "IntelCoreIsolationc=" ) else ( set "IntelCoreIsolationc=" ) set "IntelCStatesc=" if "%IntelCStates%"=="False" ( set "IntelCStatesc=" ) else ( set "IntelCStatesc=" ) set "IntelPowerThrottlingc=" if "%IntelPowerThrottling%"=="False" ( set "IntelPowerThrottlingc=" ) else ( set "IntelPowerThrottlingc=" ) set "AMDServicesc=" if "%AMDServices%"=="False" ( set "AMDServicesc=" ) else ( set "AMDServicesc=" ) set "IntelTSXc=" if "%IntelTSX%"=="False" ( set "IntelTSXc=" ) else ( set "IntelTSXc=" ) cls echo. echo %l%┌─────────────────────────────┐ echo │ %r%W%l% = %e%Up%l% %r%D%l% = %e%Right%l% │ %r% _ _ _____ __ _ _ _____ _%l% echo │ %r%S%l% = %e%Down%l% %r%A%l% = %e%Left%l% │ %r% \ \ / ^| ^| ^| ^| / /\ ^| ^| ^| ^| ^| ^| \ \_/%l% %r%▲%e% Pages [%r%23%e%/%ConfigurationsPages%]%l% echo │ %r%X%l% = %e%Apply%l% │ %r%\_\/ ^|_^| ^|_^| /_/--\ ^|_^|__ ^|_^| ^|_^| ^|_^|%l% %e%Cat. [%r%1%e%/%CategoryIntelCPU_Pages%]%l% echo. │ It's not that hard is it? │ echo └─────────────────────────────┘ echo %l%┌─────────────────────────────┐ %r%▲%e% Configuration: %r%Intel CPU%l% echo ^│ ^│ Here you can configure all settings that are going to be applied echo ^│ ^│ echo ^│ Home ^│ echo ^│ ^│ %e%[%r% 1 %e%] %r%•%e% Cpu Virtualization%l% %IntelCpuVirtualizationc%▼%l% echo ^│ ^│ Disable CPU Virtualization echo ^│ Tweaks ^│ echo ^│ ^│ %e%[%r% 2 %e%] %r%•%e% Core Isolation%l% %IntelCoreIsolationc%▼%l% echo ^│ ^│ Disable Core Isolation echo ^│ Ingame Settings ^│ echo ^│ ^│ %e%[%r% 3 %e%] %r%•%e% C-States%l% %IntelCStatesc%▼%l% echo ^│ ^│ Configure C-States echo ^│ Recording Settings ^│ echo ^│ ^│ %e%[%r% 4 %e%] %r%•%e% Power Throttling%l% %IntelPowerThrottlingc%▼%l% echo ^│ ^│ Disable Power Throttling echo ^│ Privacy ^│ echo ^│ ^│ %e%[%r% 5 %e%] %r%•%e% AMD Services%l% %AMDServicesc%▼%l% echo ^│ ^│ Disable AMD Services echo ^│ %r%Configuration%l% ^│ echo ^│ ^│ %e%[%r% 5 %e%] %r%•%e% Intel TSX%l% %IntelTSXc%▼%l% echo ^│ ^│ Configure TSX echo ^│ Credits ^│ echo ^│ ^│ echo ^│ ^│ echo └─────────────────────────────┘ %l%┌──────────────────────┐ ┌───────────────────┐ echo %l%│ %e%Go to Tweaks Tab [%r%G%e%]%l% │ │ %e%Skip Category [%r%N%e%]%l% │ echo └──────────────────────┘ └───────────────────┘ choice /c:WS123456GNDA /n /m " " set MenuItem=%errorlevel% if "%MenuItem%"=="1" goto Privacy if "%MenuItem%"=="2" goto Credits if "%MenuItem%"=="3" ( if "%IntelCpuVirtualization%"=="False" ( set "IntelCpuVirtualization=True" ) else ( set "IntelCpuVirtualization=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="4" ( if "%IntelCoreIsolation%"=="False" ( set "IntelCoreIsolation=True" ) else ( set "IntelCoreIsolation=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="5" ( if "%IntelCStates%"=="False" ( set "IntelCStates=True" ) else ( set "IntelCStates=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="6" ( if "%IntelPowerThrottling%"=="False" ( set "IntelPowerThrottling=True" ) else ( set "IntelPowerThrottling=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="7" ( if "%AMDServices%"=="False" ( set "AMDServices=True" ) else ( set "AMDServices=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="" ( if "%IntelTSX%"=="False" ( set "IntelTSX=True" ) else ( set "IntelTSX=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="9" ( if "%LastTweaks1%"=="true" ( goto :LastTweaks1 ) else ( goto :LastTweaks2 ) ) if "%MenuItem%"=="10" goto Configuration1 if "%MenuItem%"=="11" goto Configuration1 if "%MenuItem%"=="12" goto Configuration22 :Configuration23AMD set LastConfiguration=:Configuration23AMD set "AMDCpuVirtualizationc=" if "%AMDCpuVirtualization%"=="False" ( set "AMDCpuVirtualizationc=" ) else ( set "AMDCpuVirtualizationc=" ) set "AMDCoreIsolationc=" if "%AMDCoreIsolation%"=="False" ( set "AMDCoreIsolationc=" ) else ( set "AMDCoreIsolationc=" ) set "AMDCStatesc=" if "%AMDCStates%"=="False" ( set "AMDCStatesc=" ) else ( set "AMDCStatesc=" ) set "AMDPowerThrottlingc=" if "%AMDPowerThrottling%"=="False" ( set "AMDPowerThrottlingc=" ) else ( set "AMDPowerThrottlingc=" ) set "IntelServicesc=" if "%IntelServices%"=="False" ( set "IntelServicesc=" ) else ( set "IntelServicesc=" ) set "AMDTSXc=" if "%AMDTSX%"=="False" ( set "AMDTSXc=" ) else ( set "AMDTSXc=" ) cls echo. echo %l%┌─────────────────────────────┐ echo │ %r%W%l% = %e%Up%l% %r%D%l% = %e%Right%l% │ %r% _ _ _____ __ _ _ _____ _%l% echo │ %r%S%l% = %e%Down%l% %r%A%l% = %e%Left%l% │ %r% \ \ / ^| ^| ^| ^| / /\ ^| ^| ^| ^| ^| ^| \ \_/%l% %r%▲%e% Pages [%r%23%e%/%ConfigurationsPages%]%l% echo │ %r%X%l% = %e%Apply%l% │ %r%\_\/ ^|_^| ^|_^| /_/--\ ^|_^|__ ^|_^| ^|_^| ^|_^|%l% %e%Cat. [%r%1%e%/%CategoryAMDCPU_Pages%]%l% echo. │ It's not that hard is it? │ echo └─────────────────────────────┘ echo %l%┌─────────────────────────────┐ %r%▲%e% Configuration: %r%AMD CPU%l% echo ^│ ^│ Here you can configure all settings that are going to be applied echo ^│ ^│ echo ^│ Home ^│ echo ^│ ^│ %e%[%r% 1 %e%] %r%•%e% Cpu Virtualization%l% %AMDCpuVirtualizationc%▼%l% echo ^│ ^│ Disable CPU Virtualization echo ^│ Tweaks ^│ echo ^│ ^│ %e%[%r% 2 %e%] %r%•%e% Core Isolation%l% %AMDCoreIsolationc%▼%l% echo ^│ ^│ Disable Core Isolation echo ^│ Ingame Settings ^│ echo ^│ ^│ %e%[%r% 3 %e%] %r%•%e% C-States%l% %AMDCStatesc%▼%l% echo ^│ ^│ Configure C-States echo ^│ Recording Settings ^│ echo ^│ ^│ %e%[%r% 4 %e%] %r%•%e% Power Throttling%l% %AMDPowerThrottlingc%▼%l% echo ^│ ^│ Disable Power Throttling echo ^│ Privacy ^│ echo ^│ ^│ %e%[%r% 5 %e%] %r%•%e% Intel Services%l% %IntelServicesc%▼%l% echo ^│ ^│ Disable Intel Services echo ^│ %r%Configuration%l% ^│ echo ^│ ^│ %e%[%r% 5 %e%] %r%•%e% AMD TSX%l% %AMDTSXc%▼%l% echo ^│ ^│ Configure TSX echo ^│ Credits ^│ echo ^│ ^│ echo ^│ ^│ echo └─────────────────────────────┘ %l%┌──────────────────────┐ ┌───────────────────┐ echo %l%│ %e%Go to Tweaks Tab [%r%G%e%]%l% │ │ %e%Skip Category [%r%N%e%]%l% │ echo └──────────────────────┘ └───────────────────┘ choice /c:WS123456GNDA /n /m " " set MenuItem=%errorlevel% if "%MenuItem%"=="1" goto Privacy if "%MenuItem%"=="2" goto Credits if "%MenuItem%"=="3" ( if "%AMDCpuVirtualization%"=="False" ( set "AMDCpuVirtualization=True" ) else ( set "AMDCpuVirtualization=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="4" ( if "%AMDCoreIsolation%"=="False" ( set "AMDCoreIsolation=True" ) else ( set "AMDCoreIsolation=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="5" ( if "%AMDCStates%"=="False" ( set "AMDCStates=True" ) else ( set "AMDCStates=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="6" ( if "%AMDPowerThrottling%"=="False" ( set "AMDPowerThrottling=True" ) else ( set "AMDPowerThrottling=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="7" ( if "%IntelServices%"=="False" ( set "IntelServices=True" ) else ( set "IntelServices=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="8" ( if "%AMDTSX%"=="False" ( set "AMDTSX=True" ) else ( set "AMDTSX=False" ) ) && goto %LastConfiguration% if "%MenuItem%"=="9" ( if "%LastTweaks1%"=="true" ( goto :LastTweaks1 ) else ( goto :LastTweaks2 ) ) if "%MenuItem%"=="10" goto Configuration1 if "%MenuItem%"=="11" goto Configuration1 if "%MenuItem%"=="12" goto Configuration22 :Credits set LastPage=:Credits cls echo. echo %l%┌─────────────────────────────┐ echo │ %r%W%l% = %e%Up%l% %r%D%l% = %e%Right%l% │ %r% _ _ _____ __ _ _ _____ _%l% echo │ %r%S%l% = %e%Down%l% %r%A%l% = %e%Left%l% │ %r% \ \ / ^| ^| ^| ^| / /\ ^| ^| ^| ^| ^| ^| \ \_/%l% %r%▲%e% Pages [%r%1%e%/1]%l% echo │ %r%X%l% = %e%Apply%l% │ %r%\_\/ ^|_^| ^|_^| /_/--\ ^|_^|__ ^|_^| ^|_^| ^|_^|%l% echo. │ It's not that hard is it? │ echo └─────────────────────────────┘ echo %l%┌─────────────────────────────┐ %r%▲%e% Credits:%l% echo ^│ ^│ %l%We would like to thank these people: echo ^│ ^│ echo ^│ Home ^│ %r%hbn.x%l% - PC Tuning guide and AMD GPU debloating echo ^│ ^│ echo ^│ ^│ %r%hbn.x%l% - AMD GPU tweaks echo ^│ Tweaks ^│ echo ^│ ^│ %r%hbn.x (crown on top)%l% - Performance (FPS) and CPU tweaks echo ^│ ^│ echo ^│ Ingame Settings ^│ %r%hbn.xCTRL%l% - Functionally part, aswell as the backup and recording settings echo ^│ ^│ echo ^│ ^│ %r%hbn.x%l% - Privacy (privacy.sexy) echo ^│ Recording Settings ^│ echo ^│ ^│ %r%hbn.x%l% - Vitality Website echo ^│ ^│ echo ^│ Privacy ^│ %e%hbn.x%l% - Low Audio Latency tweak echo ^│ ^│ echo ^│ ^│ %e%hbn.x%l% - Various Nvidia GPU d-words echo ^│ Configuration ^│ echo ^│ ^│ %e%hbn.x%l% - Various performance (FPS) tweaks echo ^│ ^│ echo ^│ %r%Credits%l% ^│ %e%hbn.x%l% - Windows settings echo ^│ ^│ echo ^│ ^│ %ic%crown tweaking utility on top%l% echo └─────────────────────────────┘ echo. echo. choice /c:WS /n /m " " set MenuItem=%errorlevel% if "%MenuItem%"=="1" goto %LastConfiguration% if "%MenuItem%"=="2" goto Home :Export if exist "C:\Vitality\config.ini" ( if exist "C:\Vitality\old_config.ini" del /f "C:\Vitality\old_config.ini" ren "C:\Vitality\config.ini" "old_config.ini" ) echo # Tweaks Page 1 >> C:\Vitality\config.ini echo FPS=%FPS% >> C:\Vitality\config.ini echo Latency=%Latency% >> C:\Vitality\config.ini echo GPU=%GPU% >> C:\Vitality\config.ini echo Task=%Task% >> C:\Vitality\config.ini echo KBM=%KBM% >> C:\Vitality\config.ini echo CPU=%CPU% >> C:\Vitality\config.ini echo Network=%Network% >> C:\Vitality\config.ini echo # Tweaks Page 2 >> C:\Vitality\config.ini echo RAM=%RAM% >> C:\Vitality\config.ini echo DISK=%DISK% >> C:\Vitality\config.ini echo Windows=%Windows% >> C:\Vitality\config.ini echo # Recording Settings >> C:\Vitality\config.ini echo HighQuality=%HighQuality% >> C:\Vitality\config.ini echo MediumQuality=%MediumQuality% >> C:\Vitality\config.ini echo LowQuality=%LowQuality% >> C:\Vitality\config.ini echo # Game Settings >> C:\Vitality\config.ini echo Minecraft=%Minecraft% >> C:\Vitality\config.ini echo Valorant=%Valorant% >> C:\Vitality\config.ini echo Fortnite=%Fortnite% >> C:\Vitality\config.ini echo # Privacy >> C:\Vitality\config.ini echo PrivacyCleanup=%PrivacyCleanup% >> C:\Vitality\config.ini echo DataCol=%DataCol% >> C:\Vitality\config.ini echo SecurityImp=%SecurityImp% >> C:\Vitality\config.ini echo ConfigurePro=%ConfigurePro% >> C:\Vitality\config.ini echo PrivacyOverSec=%PrivacyOverSec% >> C:\Vitality\config.ini echo UIForPrivacy=%UIForPrivacy% >> C:\Vitality\config.ini echo # FPS ^& Input >> C:\Vitality\config.ini echo Visuals=%Visuals% >> C:\Vitality\config.ini echo WindowsUpdates=%WindowsUpdates% >> C:\Vitality\config.ini echo WindowsDefender=%WindowsDefender% >> C:\Vitality\config.ini echo ProcessMitigations=%ProcessMitigations% >> C:\Vitality\config.ini echo DebloatWindows=%DebloatWindows% >> C:\Vitality\config.ini echo FSE=%FSE% >> C:\Vitality\config.ini echo PowerPlan=%PowerPlan% >> C:\Vitality\config.ini echo WindowsServices=%WindowsServices% >> C:\Vitality\config.ini echo Win32PrioritySeparation=%Win32PrioritySeparation% >> C:\Vitality\config.ini echo DisableSearchIndexing=%DisableSearchIndexing% >> C:\Vitality\config.ini echo DisableFastStartup=%DisableFastStartup% >> C:\Vitality\config.ini echo ReserveCPUResources=%ReserveCPUResources% >> C:\Vitality\config.ini echo DisableBackgroundApps=%DisableBackgroundApps% >> C:\Vitality\config.ini echo Winlogon=%Winlogon% >> C:\Vitality\config.ini echo IntelMicroCode=%IntelMicroCode% >> C:\Vitality\config.ini echo AMDMicroCode=%AMDMicroCode% >> C:\Vitality\config.ini echo EnableGPUSheduling=%EnableGPUSheduling% >> C:\Vitality\config.ini echo DisableSettingsSynchronization=%DisableSettingsSynchronization% >> C:\Vitality\config.ini echo DisableRemoteAssistance=%DisableRemoteAssistance% >> C:\Vitality\config.ini echo DisableGamebarpresencewriter=%DisableGamebarpresencewriter% >> C:\Vitality\config.ini echo DisableSystemEnergySaving=%DisableSystemEnergySaving% >> C:\Vitality\config.ini echo SVCSplitThreshold=%SVCSplitThreshold% >> C:\Vitality\config.ini echo DisableUSBPowerSavings=%DisableUSBPowerSavings% >> C:\Vitality\config.ini echo EnableMSIMode=%EnableMSIMode% >> C:\Vitality\config.ini echo DevicePriorityUndefined=%DevicePriorityUndefined% >> C:\Vitality\config.ini echo # Latency >> C:\Vitality\config.ini echo SpectreMeltdown=%SpectreMeltdown% >> C:\Vitality\config.ini echo DisableIDLE=%DisableIDLE% >> C:\Vitality\config.ini echo MMCSS=%MMCSS% >> C:\Vitality\config.ini echo CSRSS=%CSRSS% >> C:\Vitality\config.ini echo LowProcessPriority=%LowProcessPriority% >> C:\Vitality\config.ini echo LowAudioLatency=%LowAudioLatency% >> C:\Vitality\config.ini echo TimerResolution=%TimerResolution% >> C:\Vitality\config.ini echo BCDLowLatency=%BCDLowLatency% >> C:\Vitality\config.ini echo DisableNetworkThrottling=%DisableNetworkThrottling% >> C:\Vitality\config.ini echo LatencyTolerance=%LatencyTolerance% >> C:\Vitality\config.ini echo # Network >> C:\Vitality\config.ini echo DisableNaglesAlgorithm=%DisableNaglesAlgorithm% >> C:\Vitality\config.ini echo NIC=%NIC% >> C:\Vitality\config.ini echo DNS=%DNS% >> C:\Vitality\config.ini echo WindowsNetworkSettings=%WindowsNetworkSettings% >> C:\Vitality\config.ini echo Autotuning=%Autotuning% >> C:\Vitality\config.ini echo # Keyboard and Mouse >> C:\Vitality\config.ini echo KeyboardDataSize=%KeyboardDataSize% >> C:\Vitality\config.ini echo AdjustKeyboardParameters=%AdjustKeyboardParameters% >> C:\Vitality\config.ini echo KeyboardAccessibilitySettings=%KeyboardAccessibilitySettings% >> C:\Vitality\config.ini echo MouseDataSize=%MouseDataSize% >> C:\Vitality\config.ini echo DisablePointerAcceleration=%DisablePointerAcceleration% >> C:\Vitality\config.ini echo MouseAccessibilitySettings=%MouseAccessibilitySettings% >> C:\Vitality\config.ini echo # Nvidia (not applied if you are on AMD) >> C:\Vitality\config.ini echo GameMode=%GameMode% >> C:\Vitality\config.ini echo NvidiaTelemetry=%NvidiaTelemetry% >> C:\Vitality\config.ini echo P0States=%P0States% >> C:\Vitality\config.ini echo HDCP=%HDCP% >> C:\Vitality\config.ini echo Preemption=%Preemption% >> C:\Vitality\config.ini echo Logging=%Logging% >> C:\Vitality\config.ini echo NvidiaProfileInspector=%NvidiaProfileInspector% >> C:\Vitality\config.ini echo DisableTiledDisplay=%DisableTiledDisplay% >> C:\Vitality\config.ini echo DisableTCC=%DisableTCC% >> C:\Vitality\config.ini echo ForceContiguousMemoryAllocation=%ForceContiguousMemoryAllocation% >> C:\Vitality\config.ini echo KBoost=%KBoost% >> C:\Vitality\config.ini echo DisableScaling=%DisableScaling% >> C:\Vitality\config.ini echo NoECC=%NoECC% >> C:\Vitality\config.ini echo UnrestrictedClockPolicy=%UnrestrictedClockPolicy% >> C:\Vitality\config.ini echo # AMD (not applied if you are on Nvidia) >> C:\Vitality\config.ini echo GameModeAMD=%GameModeAMD% >> C:\Vitality\config.ini echo AMDOptimizedSettings=%AMDOptimizedSettings% >> C:\Vitality\config.ini echo AMDDebloat=%AMDDebloat% >> C:\Vitality\config.ini echo # RAM >> C:\Vitality\config.ini echo MemoryManagement=%MemoryManagement% >> C:\Vitality\config.ini echo LargePageDrivers=%LargePageDrivers% >> C:\Vitality\config.ini echo # Disk >> C:\Vitality\config.ini echo FileSystemOptimization=%FileSystemOptimization% >> C:\Vitality\config.ini echo Cleaner=%Cleaner% >> C:\Vitality\config.ini echo Startupcleaner=%Startupcleaner% >> C:\Vitality\config.ini echo # Windows >> C:\Vitality\config.ini echo DisableTelemetry=%DisableTelemetry% >> C:\Vitality\config.ini echo DisableHibernation=%DisableHibernation% >> C:\Vitality\config.ini echo BootOptions=%BootOptions% >> C:\Vitality\config.ini echo PasswordOnWakeUp=%PasswordOnWakeUp% >> C:\Vitality\config.ini echo DisableAutomaticMaintenance=%DisableAutomaticMaintenance% >> C:\Vitality\config.ini echo DisableLocationTracking=%DisableLocationTracking% >> C:\Vitality\config.ini echo DisablePushNotifications=%DisablePushNotifications% >> C:\Vitality\config.ini echo DisableDriverSearching=%DisableDriverSearching% >> C:\Vitality\config.ini echo DisableWindowsNotifications=%DisableWindowsNotifications% >> C:\Vitality\config.ini echo DisableTransparency=%DisableTransparency% >> C:\Vitality\config.ini echo PauseMapsUpdates=%PauseMapsUpdates% >> C:\Vitality\config.ini echo DisableSettingsSync=%DisableSettingsSync% >> C:\Vitality\config.ini echo DisableAdvertisingID=%DisableAdvertisingID% >> C:\Vitality\config.ini echo DisableWebInSearch=%DisableWebInSearch% >> C:\Vitality\config.ini echo DisableRemoteAssistance=%DisableRemoteAssistance% >> C:\Vitality\config.ini echo DisableInventoryCollector=%DisableInventoryCollector% >> C:\Vitality\config.ini echo DisableWindowsErrorReporting=%DisableWindowsErrorReporting% >> C:\Vitality\config.ini echo DisableCustomerExperienceProgram=%DisableCustomerExperienceProgram% >> C:\Vitality\config.ini echo DisableOneDriveSync=%DisableOneDriveSync% >> C:\Vitality\config.ini echo DisableBiometrics=%DisableBiometrics% >> C:\Vitality\config.ini echo DenyCapabilityForApps=%DenyCapabilityForApps% >> C:\Vitality\config.ini echo DisableLocationServices=%DisableLocationServices% >> C:\Vitality\config.ini echo PreventWindowsMarkingFiles=%PreventWindowsMarkingFiles% >> C:\Vitality\config.ini echo DisableLanguageBar=%DisableLanguageBar% >> C:\Vitality\config.ini echo DisableStickyKeys=%DisableStickyKeys% >> C:\Vitality\config.ini echo DisableProgramCompatibilityAssistant=%DisableProgramCompatibilityAssistant% >> C:\Vitality\config.ini echo DisableFaultTolerantHeap=%DisableFaultTolerantHeap% >> C:\Vitality\config.ini echo DisablePowerShellTelemetry=%DisablePowerShellTelemetry% >> C:\Vitality\config.ini echo DisableWindowsErrorReporting=%DisableWindowsErrorReporting% >> C:\Vitality\config.ini echo Remove3DObjectsFromExplorer=%Remove3DObjectsFromExplorer% >> C:\Vitality\config.ini echo DisableSignInAndLockLastUser=%DisableSignInAndLockLastUser% >> C:\Vitality\config.ini echo DisableOnlineTips=%DisableOnlineTips% >> C:\Vitality\config.ini echo DisableTypingInsights=%DisableTypingInsights% >> C:\Vitality\config.ini echo DisableSuggestionsInTheSearchBox=%DisableSuggestionsInTheSearchBox% >> C:\Vitality\config.ini echo RestoreOldContextMenu=%RestoreOldContextMenu% >> C:\Vitality\config.ini echo RemovePinToQuickAccess=%RemovePinToQuickAccess% >> C:\Vitality\config.ini echo HideFoldersInQuickAccess=%HideFoldersInQuickAccess% >> C:\Vitality\config.ini echo HideQuickAccessFromFileExplorer=%HideQuickAccessFromFileExplorer% >> C:\Vitality\config.ini echo LaunchFileExplorerToThisPC=%LaunchFileExplorerToThisPC% >> C:\Vitality\config.ini echo TurnOffDisplayOfRecentSearch=%TurnOffDisplayOfRecentSearch% >> C:\Vitality\config.ini echo ClearHistoryOfRecentlyOpenedDocumentsOnExit=%ClearHistoryOfRecentlyOpenedDocumentsOnExit% >> C:\Vitality\config.ini echo # Intel (not applied if you are on AMD) >> C:\Vitality\config.ini echo IntelCpuVirtualization=%IntelCpuVirtualization% >> C:\Vitality\config.ini echo IntelCoreIsolation=%IntelCoreIsolation% >> C:\Vitality\config.ini echo IntelCStates=%IntelCStates% >> C:\Vitality\config.ini echo IntelPowerThrottling=%IntelPowerThrottling% >> C:\Vitality\config.ini echo AMDServices=%AMDServices% >> C:\Vitality\config.ini echo IntelTSX=%IntelTSX% >> C:\Vitality\config.ini echo # AMD (not applied if you are on Intel) >> C:\Vitality\config.ini echo AMDCpuVirtualization=%AMDCpuVirtualization% >> C:\Vitality\config.ini echo AMDCoreIsolation=%AMDCoreIsolation% >> C:\Vitality\config.ini echo AMDCStates=%AMDCStates% >> C:\Vitality\config.ini echo AMDPowerThrottling=%AMDPowerThrottling% >> C:\Vitality\config.ini echo IntelServices=%IntelServices% >> C:\Vitality\config.ini echo AMDTSX=%AMDTSX% >> C:\Vitality\config.ini call :ShowMsgBox "Info" "Config successfully exported to C:\Vitality!" && goto %LastPage% :TweaksProceed cls echo. echo. echo. echo. echo. echo. echo. echo. echo. echo. echo. echo. echo. echo. echo %r% _ _ _____ __ _ _ _____ _%l% echo %r% \ \ / ^| ^| ^| ^| / /\ ^| ^| ^| ^| ^| ^| \ \_/%l% echo %r%\_\/ ^|_^| ^|_^| /_/--\ ^|_^|__ ^|_^| ^|_^| ^|_^|%l% echo. if "%FPS%"=="False" goto skippingfps echo Applying FPS and Input Delay Tweaks if "%Visuals%" equ "True" ( REM Configure Windows Visuals reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects" /v "VisualFXSetting" /t REG_DWORD /d "3" /f >nul 2>&1 reg add "HKCU\Control Panel\Desktop" /f /v "UserPreferencesMask" /t REG_BINARY /d "9012078012000000" >nul 2>&1 reg add "HKCU\Control Panel\Desktop" /v "DragFullWindows" /t REG_SZ /d "1" /f >nul 2>&1 reg add "HKCU\Control Panel\Desktop" /v "FontSmoothing" /t REG_SZ /d "2" /f >nul 2>&1 reg add "HKCU\Control Panel\Desktop\WindowMetrics" /v "MinAnimate" /t REG_SZ /d "0" /f >nul 2>&1 reg add "HKCU\Software\Microsoft\Windows\DWM" /v "EnableAeroPeek" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKCU\Software\Microsoft\Windows\DWM" /v "AlwaysHibernateThumbnails" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKCU\Software\Microsoft\Windows\DWM" /v "ListviewShadow" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "IconsOnly" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ListviewAlphaSelect" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "TaskbarAnimations" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ListviewShadow" /t REG_DWORD /d "0" /f >nul 2>&1 ) if "%WindowsUpdate%" equ "True" ( REM Disable Windows Update reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v "WUServer" /t REG_SZ /d " " /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v "WUStatusServer" /t REG_SZ /d " " /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v "UpdateServiceUrlAlternate" /t REG_SZ /d " " /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v "DisableWindowsUpdateAccess" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v "NoAutoUpdate" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v "UseWUServer" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v "AUOptions" /t REG_DWORD /d "2" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\DriverSearching" /v "SearchOrderConfig" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Device Metadata" /v "PreventDeviceMetadataFromNetwork" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" /v "SearchOrderConfig" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" /v "DontSearchWindowsUpdate" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Services\wuauserv" /v "Start" /t REG_DWORD /d "4" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v "IncludeRecommendedUpdates" /t REG_DWORD /d "0" /f >nul 2>&1 reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v "SetupWizardLaunchTime" /f >nul 2>&1 reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v "AcceleratedInstallRequired" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" /v "ExcludeWUDriversInQualityUpdate" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v "DoNotConnectToWindowsUpdateInternetLocations" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v "DisableOSUpgrade" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v "ExcludeWUDriversInQualityUpdate" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v "SetDisableUXWUAccess" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Services\WaaSMedicSvc" /v "Start" /t REG_DWORD /d "4" /f >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Services\UsoSvc" /v "Start" /t REG_DWORD /d "4" /f >nul 2>&1 ) if "%WindowsServices%" equ "True" ( REM Configure Windows Services net pause DiagTrack >nul 2>&1 net pause DialogBlockingService >nul 2>&1 net pause MsKeyboardFilter >nul 2>&1 net pause NetMsmqActivator >nul 2>&1 net pause PcaSvc >nul 2>&1 net pause SEMgrSvc >nul 2>&1 net pause ShellHWDetection >nul 2>&1 net pause shpamsvc >nul 2>&1 net pause SysMain >nul 2>&1 net pause Themes >nul 2>&1 net pause TrkWks >nul 2>&1 net pause tzautoupdate >nul 2>&1 net pause uhssvc >nul 2>&1 net pause W3SVC >nul 2>&1 net pause OneSyncSvc >nul 2>&1 net pause WdiSystemHost >nul 2>&1 net pause WdiServiceHost >nul 2>&1 net pause SCardSvr >nul 2>&1 net pause ScDeviceEnum >nul 2>&1 net pause SCPolicySvc >nul 2>&1 net pause SensorDataService >nul 2>&1 net pause SensrSvc >nul 2>&1 net pause Beep >nul 2>&1 net pause cdfs >nul 2>&1 net pause cdrom >nul 2>&1 net pause cnghwassist >nul 2>&1 net pause GpuEnergyDrv >nul 2>&1 net pause GpuEnergyDr >nul 2>&1 net pause Telemetry >nul 2>&1 net pause VerifierExt >nul 2>&1 sc config "DiagTrack" start= disabled >nul 2>&1 sc config "DialogBlockingService" start= disabled >nul 2>&1 sc config "MsKeyboardFilter" start= disabled >nul 2>&1 sc config "NetMsmqActivator" start= disabled >nul 2>&1 sc config "PcaSvc" start= disabled >nul 2>&1 sc config "SEMgrSvc" start= disabled >nul 2>&1 sc config "ShellHWDetection" start= disabled >nul 2>&1 sc config "shpamsvc" start= disabled >nul 2>&1 sc config "SysMain" start= disabled >nul 2>&1 sc config "Themes" start= disabled >nul 2>&1 sc config "TrkWks" start= disabled >nul 2>&1 sc config "tzautoupdate" start= disabled >nul 2>&1 sc config "uhssvc" start= disabled >nul 2>&1 sc config "W3SVC" start= disabled >nul 2>&1 sc config "OneSyncSvc" start= disabled >nul 2>&1 sc config "WdiSystemHost" start= disabled >nul 2>&1 sc config "WdiServiceHost" start= disabled >nul 2>&1 sc config "SCardSvr" start= disabled >nul 2>&1 sc config "ScDeviceEnum" start= disabled >nul 2>&1 sc config "SensorDataService" start= disabled >nul 2>&1 sc config "SensrSvc" start= disabled >nul 2>&1 sc config "Beep" start= disabled >nul 2>&1 sc config "cdfs" start= disabled >nul 2>&1 sc config "cdrom" start= disabled >nul 2>&1 sc config "cnghwassist" start= disabled >nul 2>&1 sc config "GpuEnergyDrv" start= disabled >nul 2>&1 sc config "GpuEnergyDr" start= disabled >nul 2>&1 sc config "Telemetry" start= disabled >nul 2>&1 sc config "VerifierExt" start= disabled >nul 2>&1 ) if "%Win32PrioritySeparation%" equ "True" ( REM Configure Win32 Priority Separation (26hex) reg add "HKLM\SYSTEM\CurrentControlSet\Control\PriorityControl" /v "Win32PrioritySeparation" /t REG_DWORD /d "38" /f >nul 2>&1 ) if "%DisableSearchIndexing%" equ "True" ( REM Disable Search Indexing reg add "HKLM\SYSTEM\CurrentControlSet\Services\WSearch" /v "Start" /t REG_DWORD /d "4" /f >nul 2>&1 ) If "%WindowsDefender%" equ "True" ( REM Disable Windows Defender reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v "DisableAntiSpyware" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Microsoft Antimalware\Real-Time Protection" /v "DisableScanOnRealtimeEnable" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Microsoft Antimalware\Real-Time Protection" /v "DisableOnAccessProtection" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "DisableScanOnRealtimeEnable" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Services\WinDefend" /v "Start" /t REG_DWORD /d "4" /f >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Services\wscsvc" /v "Start" /t REG_DWORD /d "4" /f >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Services\SecurityHealthService" /v "Start" /t REG_DWORD /d "4" /f >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Services\Sense" /v "Start" /t REG_DWORD /d "4" /f >nul 2>&1 reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "SecurityHealth" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /f >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\DeviceGuard\Scenarios\HypervisorEnforcedCodeIntegrity" /v "Enabled" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\Windows Defender\Spynet" /v "SpyNetReporting" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\Windows Defender\Spynet" /v "SubmitSamplesConsent" /t REG_DWORD /d "0" /f >nul 2>&1 ) If "%DisableFastStartup%" equ "True" ( REM Disable Fast Startup reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Power" /v "HiberbootEnabled" /t REG_DWORD /d "0" /f >nul 2>&1 ) If "%ReserveCPUResources%" equ "True" ( REM Reserve 10% of CPU Resources For Low-Priority Tasks reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" /v "SystemResponsiveness" /t REG_DWORD /d "10" /f >nul 2>&1 ) If "%DisableGamebarpresencewriter%" equ "True" ( REM Disable Gamebarpresencewriter reg add "HKLM\SOFTWARE\Microsoft\WindowsRuntime\ActivatableClassId\Windows.Gaming.GameBar.PresenceServer.Internal.PresenceWriter" /v "ActivationType" /t REG_DWORD /d "0" /f >nul 2>&1 ) If "%ProcessMitigations%"=="Enabled" ( REM Disable Process Mitigations Rem Initialize Mask To Get Mask Length PowerShell Set-ProcessMitigation -System -Disable CFG >nul 2>&1 REM Get Current Mask for /f "tokens=3 skip=2" %%a in ('reg query "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\kernel" /v "MitigationAuditOptions"') do ( set "mitigation_mask=%%a" ) REM Set All Values In Current Mask To 2 for /L %%a in (0,1,9) do ( set "mitigation_mask=!mitigation_mask:%%a=2!" ) REM Apply Mask To Kernel reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\kernel" /v "MitigationOptions" /t REG_BINARY /d "%mitigation_mask%" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\kernel" /v "MitigationAuditOptions" /t REG_BINARY /d "%mitigation_mask%" /f > nul 2>&1 ) If "%DebloatWindows%" equ "True" ( REM Debloat Windows REM Take Full Control of "C:\Program Files\WindowsApps" takeown /F "C:\Program Files\WindowsApps" /R /A >nul 2>&1 icacls "C:\Program Files\WindowsApps" /grant administrators:F >nul 2>&1 REM Take Full Control of "C:\ProgramData\Packages" takeown /F "C:\ProgramData\Packages" /R /A >nul 2>&1 icacls "C:\ProgramData\Packages" /grant administrators:F >nul 2>&1 REM Take Full Control of "C:\Users\*\AppData\Local\Microsoft\WindowsApps" takeown /F "C:\Users\*\AppData\Local\Microsoft\WindowsApps" /R /A >nul 2>&1 icacls "C:\Users\*\AppData\Local\Microsoft\WindowsApps" /grant administrators:F >nul 2>&1 REM Take Full Control of "C:\Users\*\AppData\Local\Packages"" takeown /F "C:\Users\*\AppData\Local\Packages" /R /A >nul 2>&1 icacls "C:\Users\*\AppData\Local\Packages" /grant administrators:F >nul 2>&1 REM Take Full Control of "C:\Windows\SystemApps" takeown /F "C:\Windows\SystemApps" /R /A >nul 2>&1 icacls "C:\Windows\SystemApps" /grant administrators:F >nul 2>&1 REM Take Full Control of "C:\Windows\System32\smartscreen.exe" takeown /F "C:\Windows\System32\smartscreen.exe" >nul 2>&1 icacls "C:\Windows\System32\smartscreen.exe" /grant administrators:F >nul 2>&1 REM Take Full Control of "C:\Windows\System32\mobsync.exe" takeown /F "C:\Windows\System32\mobsync.exe" >nul 2>&1 icacls "C:\Windows\System32\mobsync.exe" /grant administrators:F >nul 2>&1 REM Delete files and folders rmdir /s /q "C:\Program Files\WindowsApps" >nul 2>&1 rmdir /s /q "C:\ProgramData\Packages" >nul 2>&1 rmdir /s /q "C:\Users\*\AppData\Local\Microsoft\WindowsApps" >nul 2>&1 rmdir /s /q "C:\Users\*\AppData\Local\Packages" >nul 2>&1 rmdir /s /q "C:\Windows\SystemApps" >nul 2>&1 del /f /q "C:\Windows\System32\smartscreen.exe" >nul 2>&1 del /f /q "C:\Windows\System32\mobsync.exe" >nul 2>&1 REM Remove Some Pre-Installed Windows Apps PowerShell -Command "Get-AppxPackage -allusers *3DBuilder* | Remove-AppxPackage" >nul 2>&1 PowerShell -Command "Get-AppxPackage -allusers *bing* | Remove-AppxPackage" >nul 2>&1 PowerShell -Command "Get-AppxPackage -allusers *bingfinance* | Remove-AppxPackage" >nul 2>&1 PowerShell -Command "Get-AppxPackage -allusers *bingsports* | Remove-AppxPackage" >nul 2>&1 PowerShell -Command "Get-AppxPackage -allusers *BingWeather* | Remove-AppxPackage" >nul 2>&1 PowerShell -Command "Get-AppxPackage -allusers *CommsPhone* | Remove-AppxPackage" >nul 2>&1 PowerShell -Command "Get-AppxPackage -allusers *Drawboard PDF* | Remove-AppxPackage" >nul 2>&1 PowerShell -Command "Get-AppxPackage -allusers *Facebook* | Remove-AppxPackage" >nul 2>&1 PowerShell -Command "Get-AppxPackage -allusers *Getstarted* | Remove-AppxPackage" >nul 2>&1 PowerShell -Command "Get-AppxPackage -allusers *Microsoft.Messaging* | Remove-AppxPackage" >nul 2>&1 PowerShell -Command "Get-AppxPackage -allusers *MicrosoftOfficeHub* | Remove-AppxPackage" >nul 2>&1 PowerShell -Command "Get-AppxPackage -allusers *Office.OneNote* | Remove-AppxPackage" >nul 2>&1 PowerShell -Command "Get-AppxPackage -allusers *OneNote* | Remove-AppxPackage" >nul 2>&1 PowerShell -Command "Get-AppxPackage -allusers *people* | Remove-AppxPackage" >nul 2>&1 PowerShell -Command "Get-AppxPackage -allusers *SkypeApp* | Remove-AppxPackage" >nul 2>&1 PowerShell -Command "Get-AppxPackage -allusers *solit* | Remove-AppxPackage" >nul 2>&1 PowerShell -Command "Get-AppxPackage -allusers *Sway* | Remove-AppxPackage" >nul 2>&1 PowerShell -Command "Get-AppxPackage -allusers *Twitter* | Remove-AppxPackage" >nul 2>&1 PowerShell -Command "Get-AppxPackage -allusers *WindowsAlarms* | Remove-AppxPackage" >nul 2>&1 PowerShell -Command "Get-AppxPackage -allusers *WindowsPhone* | Remove-AppxPackage" >nul 2>&1 PowerShell -Command "Get-AppxPackage -allusers *WindowsMaps* | Remove-AppxPackage" >nul 2>&1 PowerShell -Command "Get-AppxPackage -allusers *WindowsFeedbackHub* | Remove-AppxPackage" >nul 2>&1 PowerShell -Command "Get-AppxPackage -allusers *WindowsSoundRecorder* | Remove-AppxPackage" >nul 2>&1 PowerShell -Command "Get-AppxPackage -allusers *windowscommunicationsapps* | Remove-AppxPackage">nul 2>&1 PowerShell -Command "Get-AppxPackage -allusers *zune* | Remove-AppxPackage" >nul 2>&1 ) If "%FSE%" equ "True" ( REM Disable FSO reg delete "HKCU\System\GameConfigStore" /v "Win32_AutoGameModeDefaultProfile" /f >nul 2>&1 reg delete "HKCU\System\GameConfigStore" /v "Win32_GameModeRelatedProcesses" /f >nul 2>&1 REM Enable FSE reg add "HKCU\System\GameConfigStore" /v "GameDVR_DSEBehavior" /t REG_DWORD /d "2" /f >nul 2>&1 reg add "HKCU\System\GameConfigStore" /v "GameDVR_DXGIHonorFSEWindowsCompatible" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKCU\System\GameConfigStore" /v "GameDVR_EFSEFeatureFlags" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKCU\System\GameConfigStore" /v "GameDVR_Enabled" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKCU\System\GameConfigStore" /v "GameDVR_FSEBehavior" /t REG_DWORD /d "2" /f >nul 2>&1 reg add "HKCU\System\GameConfigStore" /v "GameDVR_FSEBehaviorMode" /t REG_DWORD /d "2" /f >nul 2>&1 reg add "HKCU\System\GameConfigStore" /v "GameDVR_HonorUserFSEBehaviorMode" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\GameDVR" /v "AllowGameDVR" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\PolicyManager\default\ApplicationManagement\AllowGameDVR" /v "value" /t >nul 2>&1 ) If "%DisableSystemEnergySaving%" equ "True" ( REM Disable System Energy-Saving Techniques reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Power" /v "CoalescingTimerInterval" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "CoalescingTimerInterval" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\kernel" /v "CoalescingTimerInterval" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Executive" /v "CoalescingTimerInterval" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager" /v "CoalescingTimerInterval" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Power\ModernSleep" /v "CoalescingTimerInterval" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Power" /v "CoalescingTimerInterval" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control" /v "CoalescingTimerInterval" /t REG_DWORD /d "0" /f >nul 2>&1 ) If "%SVCSplitThreshold%" equ "True" ( REM Set SVCSplitThreshold To User Memory Size for /f "tokens=2 delims==" %%i in ('wmic os get TotalVisibleMemorySize /format:value') do set mem=%%i set /a ram=%mem% + 1024000 reg add "HKLM\System\CurrentControlSet\Control" /v "SvcHostSplitThresholdInKB" /t REG_DWORD /d "%ram%" /f >nul 2>&1 ) If "%DisableUSBPowerSavings%" equ "True" ( REM Disable USB Power Savings for %%a in ( EnhancedPowerManagementEnabled AllowIdleIrpInD3 EnableSelectiveSuspend DeviceSelectiveSuspended SelectiveSuspendEnabled SelectiveSuspendOn EnumerationRetryCount ExtPropDescSemaphore WaitWakeEnabled D3ColdSupported WdfDirectedPowerTransitionEnable EnableIdlePowerManagement IdleInWorkingState ) do for /f "delims=" %%b in ('reg query "HKLM\SYSTEM\CurrentControlSet\Enum" /s /f "%%a" ^| findstr "HKEY"') do reg add "%%b" /v "%%a" /t REG_DWORD /d "0" /f > NUL 2>&1 ) If "%EnableMSIMode%" equ "True" ( REM Enabling MSI Mode For All Suported Devices for /f "tokens=*" %%i in ('reg query "HKLM\SYSTEM\CurrentControlSet\Enum\PCI"^| findstr "HKEY"') do ( for /f "tokens=*" %%a in ('reg query "%%i"^| findstr "HKEY"') do reg add "%%a\Device Parameters\Interrupt Management\MessageSignaledInterruptProperties" /v "MSISupported" /t REG_DWORD /d "1" /f > NUL 2>&1 ) ) If "%DevicePriorityUndefined%" equ "True" ( REM Setting All Device's Priority To Undefined for /f "tokens=*" %%i in ('reg query "HKLM\SYSTEM\CurrentControlSet\Enum\PCI"^| findstr "HKEY"') do ( for /f "tokens=*" %%a in ('reg query "%%i"^| findstr "HKEY"') do reg delete "%%a\Device Parameters\Interrupt Management\Affinity Policy" /v "DevicePriority" /f > NUL 2>&1 ) ) If "%DisableBackgroundApps%" equ "True" ( REM Disable Background Apps reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications" /v "GlobalUserDisabled" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsRunInBackground" /t REG_DWORD /d "2" /f >nul 2>&1 reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Search" /v "BackgroundAppGlobalToggle" /t REG_DWORD /d "0" /f >nul 2>&1 ) If "%Winlogon%" equ "True" ( REM Set Winlogon to Normal Priority reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\winlogon.exe\PerfOptions" /v "CpuPriorityClass" /t REG_DWORD /d "2" /f > NUL 2>&1 reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\winlogon.exe\PerfOptions" /v "IoPriority" /t REG_DWORD /d "2" /f > NUL 2>&1 ) If "%IntelMicroCode%" equ "True" ( REM Delete Intel Micro Code takeown /f "C:\Windows\System32\mcupdate_GenuineIntel.dll" /r /d y >nul 2>&1 del "C:\Windows\System32\mcupdate_GenuineIntel.dll" /s /f /q >nul 2>&1 ) If "%IntelMicroCode%" equ "True" ( REM Delete AMD Micro Code takeown /f "C:\Windows\System32\mcupdate_AuthenticAMD.dll" /r /d y >nul 2>&1 del "C:\Windows\System32\mcupdate_AuthenticAMD.dll" /s /f /q >nul 2>&1 ) If "%EnableGPUSheduling%" equ "True" ( REM Enabling Hardware Accelerated GPU Scheduling reg add "HKLM\SYSTEM\CurrentControlSet\Control\GraphicsDrivers" /F /V "HwSchMode" /T REG_DWORD /d "2" >nul 2>&1 ) If "%DisableSettingsSynchronization%" equ "True" ( REM Disable Settings Synchronization reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisableSettingSync" /t REG_DWORD /d "2" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisableSettingSyncUserOverride" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisableSyncOnPaidNetwork" /t REG_DWORD /d "1" /f >nul 2>&1 ) If "%DisableRemoteAssistance%" equ "True" ( REM Disable Remote Assistance reg add "HKLM\System\CurrentControlSet\Control\Remote Assistance" /v "fAllowFullControl" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\System\CurrentControlSet\Control\Remote Assistance" /v "fAllowToGetHelp" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\System\CurrentControlSet\Control\Remote Assistance" /v "fEnableChatControl" /t REG_DWORD /d "0" /f >nul 2>&1 ) If "%PowerPlan%" equ "True" ( REM Power Plan REM Remove And Add New "Ultimate Performance" Power Plan powercfg /duplicatescheme e9a42b02-d5df-448d-aa00-03f14749eb61 bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb >nul 2>&1 powercfg /setactive bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb >nul 2>&1 powercfg /delete eeeeeeee-eeee-eeee-eeee-eeeeeeeeeeee >nul 2>&1 powercfg /duplicatescheme e9a42b02-d5df-448d-aa00-03f14749eb61 eeeeeeee-eeee-eeee-eeee-eeeeeeeeeeee >nul 2>&1 powercfg /setactive eeeeeeee-eeee-eeee-eeee-eeeeeeeeeeee >nul 2>&1 powercfg /delete bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb >nul 2>&1 REM Throttle States: OFF powercfg -setacvalueindex scheme_current sub_processor THROTTLING 0 >nul 2>&1 REM Device Idle Policy: Performance powercfg -setacvalueindex scheme_current sub_none DEVICEIDLE 0 >nul 2>&1 REM USB 3 Link Power Management: OFF powercfg -setacvalueindex scheme_current 2a737441-1930-4402-8d77-b2bebba308a3 d4e98f31-5ffe-4ce1-be31-1b38b384c009 0 >nul 2>&1 REM USB selective suspend setting: OFF powercfg -setacvalueindex scheme_current 2a737441-1930-4402-8d77-b2bebba308a3 48e6b7a6-50f5-4782-a5d4-53bb8f07e226 0 >nul 2>&1 REM Link State Power Management: OFF powercfg -setacvalueindex scheme_current SUB_PCIEXPRESS ASPM 0 >nul 2>&1 REM AHCI Link Power Management - HIPM/DIPM: OFF powercfg -setacvalueindex scheme_current SUB_DISK 0b2d69d7-a2a1-449c-9680-f91c70521c60 0 >nul 2>&1 REM NVMe Power State Transition Latency Tolerance powercfg -setacvalueindex scheme_current SUB_DISK dbc9e238-6de9-49e3-92cd-8c2b4946b472 1 >nul 2>&1 powercfg -setacvalueindex scheme_current SUB_DISK fc95af4d-40e7-4b6d-835a-56d131dbc80e 1 >nul 2>&1 REM Interrupt Steering echo %PROCESSOR_IDENTIFIER% | find /I "Intel" >nul && powercfg -setacvalueindex scheme_current SUB_INTSTEER MODE 6 >nul 2>&1 REM Enable Hardware P-States reg add "HKLM\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\54533251-82be-4824-96c1-47b60b740d00\4d2b0152-7d5c-498b-88e2-34345392a2c5" /v "ValueMax" /t REG_DWORD /d "20000" /f >nul 2>&1 REM Dont restrict core boost powercfg -setacvalueindex scheme_current sub_processor PERFEPP 0 >nul 2>&1 REM Enable Turbo Boost powercfg -setacvalueindex scheme_current sub_processor PERFBOOSTMODE 1 >nul 2>&1 powercfg -setacvalueindex scheme_current sub_processor PERFBOOSTPOL 100 >nul 2>&1 REM Disable Sleep States powercfg -setacvalueindex scheme_current SUB_SLEEP AWAYMODE 0 >nul 2>&1 powercfg -setacvalueindex scheme_current SUB_SLEEP ALLOWSTANDBY 0 >nul 2>&1 powercfg -setacvalueindex scheme_current SUB_SLEEP HYBRIDSLEEP 0 >nul 2>&1 REM Disable Core Parking echo %PROCESSOR_IDENTIFIER% | find /I "Intel" >nul && ( reg add "HKLM\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\54533251-82be-4824-96c1-47b60b740d00\0cc5b647-c1df-4637-891a-dec35c318583" /v "ValueMax" /tREG_DWORD /d "100" /f >nul 2>&1 powercfg -setacvalueindex scheme_current sub_processor CPMINCORES 100 >nul 2>&1 ) || ( powercfg -setacvalueindex scheme_current SUB_INTSTEER UNPARKTIME 0 >nul 2>&1 powercfg -setacvalueindex scheme_current SUB_INTSTEER PERPROCLOAD 10000 >nul 2>&1 ) REM Disable Frequency Scaling powercfg -setacvalueindex scheme_current sub_processor PROCTHROTTLEMIN 100 >nul 2>&1 REM Don't turn off display when plugged in powercfg /change standby-timeout-ac 0 >nul 2>&1 powercfg /change monitor-timeout-ac 0 >nul 2>&1 powercfg /change hibernate-timeout-ac 0 >nul 2>&1 REM Apply Changes powercfg -setactive scheme_current >nul 2>&1 ) set "file=C:\Vitality\Info\fpsandinput" if not exist "%file%" ( echo Vitality > "%file%" set /a "ran_optimizations+=1" ) cd C:\Vitality set "formatted_optimizations=%ran_optimizations%" if %formatted_optimizations% LSS 10 set "formatted_optimizations= %formatted_optimizations%" echo set "ran_optimizations=%ran_optimizations%"> v.bat :skippingfps if "%Latency%"=="False" goto skippinglatency echo Applying Latency Tweaks REM Download Timer Resolution (Credits to Amitxv) if exist "%SYSTEMDRIVE%\SetTimerResolution.exe" del "%SYSTEMDRIVE%\SetTimerResolution.exe" >nul 2>&1 curl -g -k -L -# -o "%SYSTEMDRIVE%\SetTimerResolution.exe" "https://github.com/amitxv/TimerResolution/releases/download/SetTimerResolution-v0.1.3/SetTimerResolution.exe" >nul 2>&1 curl -g -k -L -# -o "%SYSTEMDRIVE%\Vitality\Resources\VisualCppRedist_AIO_x86_x64.exe" "https://github.com/abbodi1406/vcredist/releases/download/v0.76.0/VisualCppRedist_AIO_x86_x64.exe" >nul 2>&1 REM Set TimerResolution Variables set "targetPath=C:\SetTimerResolution.exe" set "args=--resolution 5000 --no-console" set "shortcutName=TimerResolutionShortcut.lnk" if "%SpectreMeltdown%" equ "True" ( REM Disable Spectre and Meltdown reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "FeatureSettings" /t REG_DWORD /d 1 /f >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "FeatureSettingsOverride" /t REG_DWORD /d 3 /f >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "FeatureSettingsOverrideMask" /t REG_DWORD /d 3 /f >nul 2>&1 ) REM Configure BCD For Low Latency REM Disable Dynamic Tick bcdedit /set disabledynamictick yes >nul 2>&1 REM Disable High Precision Event Timer (HPET) bcdedit /deletevalue useplatformclock >nul 2>&1 REM Disable Synthetic Timers bcdedit /set useplatformtick yes >nul 2>&1 if "%DisableIDLE%" equ "True" ( REM ONLY FOR DESKTOP (ADD SCRIPT THAT WILL AUTOMATICALLY TELL IF USER IS USING LAPTOP OR DESKTOP) REM Disable Idle powercfg -setacvalueindex scheme_current sub_processor 5d76a2ca-e8c0-402f-a133-2158492d58ad 1 >nul 2>&1 REM Apply The Changes powercfg -setactive scheme_current >nul 2>&1 ) REM Disable Network Throttling reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" /v "NetworkThrottlingIndex" /t REG_DWORD /d "4294967295" /f >nul 2>&1 if "%MMCSS%" equ "True" ( REM Configure MMCSS reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" /v "NoLazyMode" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" /v "AlwaysOn" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" /v "GPU Priority" /t REG_DWORD /d "8" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" /v "Priority" /t REG_DWORD /d "6" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" /v "Scheduling Category" /t REG_SZ /d "High" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" /v "SFIO Priority" /t REG_SZ /d "High" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" /v "Latency Sensitive" /t REG_SZ /d "True" /f >nul 2>&1 ) if "%CSRSS%" equ "True" ( REM Set CSRSS to High Priority reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\csrss.exe\PerfOptions" /v "CpuPriorityClass" /t REG_DWORD /d "3" /f > NUL 2>&1 reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\csrss.exe\PerfOptions" /v "IoPriority" /t REG_DWORD /d "3" /f > NUL 2>&1 ) if "%LowProcessPriority%" equ "True" ( REM Setting Low Process Priority To Processes That Uses Cycles REM Splitting Audio Services... copy /y "%windir%\System32\svchost.exe" "%windir%\System32\audiosvchost.exe" > NUL 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Services\Audiosrv" /v "ImagePath" /t REG_EXPAND_SZ /d "%SystemRoot%\System32\audiosvchost.exe -k LocalServiceNetworkRestricted -p" /f > NUL 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Services\AudioEndpointBuilder" /v "ImagePath" /t REG_EXPAND_SZ /d "%SystemRoot%\System32\audiosvchost.exe -k LocalSystemNetworkRestricted -p" /f > NUL 2>&1 REM Setting Process Priority And Disabling Security Mitigations for %%i in ( dwm.exe lsass.exe svchost.exe WmiPrvSE.exe ) do ( reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\%%i\PerfOptions" /v "CpuPriorityClass" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\%%i\PerfOptions" /v "IoPriority" /t REG_DWORD /d "0" /f >nul 2>&1 ) ) If "%LowAudioLatency%" equ "True" ( REM Downloading Low Audio Latency (Credits to sppdl) if exist "%appdata%\Microsoft\Windows\Start Menu\Programs\Startup\low_audio_latency_no_console.exe" del "%appdata%\Microsoft\Windows\Start Menu\Programs\Startup\low_audio_latency_no_console.exe" >nul 2>&1 curl -g -k -L -# -o "%appdata%\Microsoft\Windows\Start Menu\Programs\Startup\low_audio_latency_no_console.exe" "https://github.com/spddl/LowAudioLatency/releases/download/v2.0.1/low_audio_latency_no_console.exe" >nul 2>&1 ) If "%TimerResolution%" equ "True" ( del "%appdata%\Microsoft\Windows\Start Menu\Programs\Startup\TimerResolutionShortcut.lnk" >nul 2>&1 cd "%appdata%\Microsoft\Windows\Start Menu\Programs\Startup" >nul 2>&1 set "targetPath=C:\SetTimerResolution.exe" set "args=--resolution 5000 --no-console" set "shortcutName=TimerResolutionShortcut.lnk" powershell -Command "$WshShell = New-Object -ComObject WScript.Shell; $Shortcut = $WshShell.CreateShortcut('%shortcutName%'); $Shortcut.TargetPath = '%targetPath%'; $Shortcut.Arguments = '%args%'; $Shortcut.Save()" >nul 2>&1 cd "%SYSTEMDRIVE%\Vitality\Resources" >nul 2>&1 VisualCppRedist_AIO_x86_x64.exe /y >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\kernel" /v "GlobalTimerResolutionRequests" /t REG_DWORD /d "1" /f >nul 2>&1 ) else ( del "%SYSTEMDRIVE%\SetTimerResolution.exe" >nul 2>&1 ) set "file=C:\Vitality\Info\latency" if not exist "%file%" ( echo Vitality > "%file%" set /a "ran_optimizations+=1" ) cd C:\Vitality set "formatted_optimizations=%ran_optimizations%" if %formatted_optimizations% LSS 10 set "formatted_optimizations= %formatted_optimizations%" echo set "ran_optimizations=%ran_optimizations%"> v.bat :skippinglatency if "%Network%"=="False" goto skippingnetwork echo Applying Network Tweaks if "%DisableNaglesAlgorithm%" equ "True" ( REM Disable Nagle's Algorithm reg add "HKLM\SOFTWARE\Microsoft\MSMQ\Parameters" /v "TCPNoDelay" /t REG_DWORD /d "1" /f >nul 2>&1 for /f "tokens=3*" %%i in ('reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkCards" /f "ServiceName" /s ^|findstr /i /l "ServiceName"') do ( reg add "HKLM\System\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\%%i" /v "TCPNoDelay" /t REG_DWORD /d "1" /f reg add "HKLM\System\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\%%i" /v "TcpAckFrequency" /t REG_DWORD /d "1" /f reg add "HKLM\System\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\%%i" /v "TcpDelAckTicks" /t REG_DWORD /d "0" /f ) >nul 2>&1 ) if "%NIC%" equ "True" ( REM NIC for /f "tokens=3*" %%a in ('reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkCards" /k /v /f "Description" /s /e ^| findstr /ri "REG_SZ"') do ( for /f %%g in ('reg query "HKLM\System\CurrentControlSet\Control\Class\{4d36e972-e325-11ce-bfc1-08002be10318}" /s /f "%%b" /d ^| findstr /C:"HKEY"') do ( if not exist "%SYSTEMDRIVE%\Backup\(Default) %%b.reg" reg export "%%g" "%SYSTEMDRIVE%\Backup\(Default) %%b.reg" /y REM Disable Wake Features reg add "%%g" /v "*WakeOnMagicPacket" /t REG_SZ /d "0" /f reg add "%%g" /v "*WakeOnPattern" /t REG_SZ /d "0" /f reg add "%%g" /v "WakeOnLink" /t REG_SZ /d "0" /f reg add "%%g" /v "S5WakeOnLan" /t REG_SZ /d "0" /f reg add "%%g" /v "WolShutdownLinkSpeed" /t REG_SZ /d "2" /f reg add "%%g" /v "*ModernStandbyWoLMagicPacket " /t REG_SZ /d "0" /f reg add "%%g" /v "*DeviceSleepOnDisconnect" /t REG_SZ /d "0" /f REM Disable Power Saving Features reg add "%%g" /v "*NicAutoPowerSaver" /t REG_SZ /d "0" /f reg add "%%g" /v "*FlowControl" /t REG_SZ /d "0" /f reg add "%%g" /v "*EEE" /t REG_SZ /d "0" /f reg add "%%g" /v "EnablePME" /t REG_SZ /d "0" /f reg add "%%g" /v "EEELinkAdvertisement" /t REG_SZ /d "0" /f reg add "%%g" /v "ReduceSpeedOnPowerDown" /t REG_SZ /d "0" /f reg add "%%g" /v "PowerSavingMode" /t REG_SZ /d "0" /f reg add "%%g" /v "EnableGreenEthernet" /t REG_SZ /d "0" /f reg add "%%g" /v "ULPMode" /t REG_SZ /d "0" /f reg add "%%g" /v "GigaLite" /t REG_SZ /d "0" /f reg add "%%g" /v "EnableSavePowerNow" /t REG_SZ /d "0" /f reg add "%%g" /v "EnablePowerManagement" /t REG_SZ /d "0" /f reg add "%%g" /v "EnableDynamicPowerGating" /t REG_SZ /d "0" /f reg add "%%g" /v "EnableConnectedPowerGating" /t REG_SZ /d "0" /f reg add "%%g" /v "AutoPowerSaveModeEnabled" /t REG_SZ /d "0" /f reg add "%%g" /v "AutoDisableGigabit" /t REG_SZ /d "0" /f reg add "%%g" /v "AdvancedEEE" /t REG_SZ /d "0" /f reg add "%%g" /v "PowerDownPll" /t REG_SZ /d "0" /f reg add "%%g" /v "S5NicKeepOverrideMacAddrV2" /t REG_SZ /d "0" /f reg add "%%g" /v "MIMOPowerSaveMode" /t REG_SZ /d "3" /f reg add "%%g" /v "AlternateSemaphoreDelay" /t REG_SZ /d "0" /f REM Disable JumboPacket reg add "%%g" /v "JumboPacket" /t REG_SZ /d "0" /f REM Interrupt Moderation Adaptive (Default) reg add "%%g" /v "ITR" /t REG_SZ /d "125" /f REM Receive/Transmit Buffers reg add "%%g" /v "ReceiveBuffers" /t REG_SZ /d "266" /f reg add "%%g" /v "TransmitBuffers" /t REG_SZ /d "266" /f REM Enable Throughput Booster reg add "%%g" /v "ThroughputBoosterEnabled" /t REG_SZ /d "1" /f REM PnPCapabilities reg add "%%g" /v "PnPCapabilities" /t REG_DWORD /d "24" /f REM Enable LargeSendOffloads reg add "%%g" /v "LsoV1IPv4" /t REG_SZ /d "1" /f reg add "%%g" /v "LsoV2IPv4" /t REG_SZ /d "1" /f reg add "%%g" /v "LsoV2IPv6" /t REG_SZ /d "1" /f ::Enable Offloads reg add "%%g" /v "TCPUDPChecksumOffloadIPv4" /t REG_SZ /d "3" /f reg add "%%g" /v "TCPUDPChecksumOffloadIPv6" /t REG_SZ /d "3" /f reg add "%%g" /v "UDPChecksumOffloadIPv4" /t REG_SZ /d "3" /f reg add "%%g" /v "UDPChecksumOffloadIPv6" /t REG_SZ /d "3" /f reg add "%%g" /v "TCPChecksumOffloadIPv4" /t REG_SZ /d "3" /f reg add "%%g" /v "TCPChecksumOffloadIPv6" /t REG_SZ /d "3" /f reg add "%%g" /v "IPChecksumOffloadIPv4" /t REG_SZ /d "3" /f reg add "%%g" /v "IPsecOffloadV1IPv4" /t REG_SZ /d "3" /f reg add "%%g" /v "IPsecOffloadV2" /t REG_SZ /d "3" /f reg add "%%g" /v "*IPsecOffloadV2IPv4" /t REG_SZ /d "3" /f reg add "%%g" /v "*PMARPOffload" /t REG_SZ /d "1" /f reg add "%%g" /v "*PMNSOffload" /t REG_SZ /d "1" /f reg add "%%g" /v "*PMWiFiRekeyOffload" /t REG_SZ /d "1" /f ) >nul 2>&1 ) ) if "%DNS%" equ "True" ( REM Setting primary DNS server to 1.1.1.1 netsh interface ip set dns name="Ethernet" static 1.1.1.1 primary >nul 2>&1 REM Setting secondary DNS server to 1.0.0.1 netsh interface ip add dns name="Ethernet" addr=1.0.0.1 index=2 >nul 2>&1 ) if "%WindowsNetworkSettigns%" equ "True" ( REM Enable Network Task Offloading Netsh int ip set global taskoffload=enabled >nul 2>&1 reg add HKLM\SYSTEM\CurrentControlSet\Services\TCPIP\Parameters /v DisableTaskOffload /t REG_DWORD /d 0 /f >nul 2>&1 REM Setting global neighbor cache limit netsh int ip set global neighborcachelimit=4096 >nul 2>&1 REM Setting global route cache limit netsh int ip set global routecachelimit=4096 >nul 2>&1 REM Disable source routing netsh int ip set global sourceroutingbehavior=drop >nul 2>&1 REM Disable DHCP Media Sense netsh int ip set global dhcpmediasense=disabled >nul 2>&1 REM Disable Media Sense event logging netsh int ip set global mediasenseeventlog=disabled >nul 2>&1 REM Disable MLD for IPv6 netsh int ip set global mldlevel=none >nul 2>&1 REM Set global TCP settings netsh int tcp set global chimney=enabled congestionprovider=ctcp dca=enabled netdma=disabled >nul 2>&1 REM Disable Teredo tunneling netsh interface teredo set state disabled >nul 2>&1 REM Disable ISATAP state netsh int isatap set state disable >nul 2>&1 REM Find network interface number for /f "tokens=1" %%i in ('netsh int ip show interfaces ^| findstr [0-9]') do set INTERFACE=%%i >nul 2>&1 REM Set interface parameters netsh int ip set interface %INTERFACE% basereachable=3600000 dadtransmits=0 otherstateful=disabled routerdiscovery=disabled store=persistent >nul 2>&1 REM Disable RSC (Receive Segment Coalescing) netsh int tcp set global rsc=disabled >nul 2>&1 REM Setting Initial Retransmission Timeout netsh int tcp set global initialRto=2000 >nul 2>&1 REM Disable TCP heuristics netsh int tcp set heuristics disabled >nul 2>&1 REM Disable window scaling heuristics netsh int tcp set heuristics wsh=disabled >nul 2>&1 REM Disable Multipath TCP netsh int tcp set security mpp=disabled >nul 2>&1 REM Disable TCP security profiles netsh int tcp set security profiles=disabled >nul 2>&1 REM Setting TCP dynamic port range netsh int ipv4 set dynamicport tcp start=1025 num=64511 >nul 2>&1 REM Setting UDP dynamic port range netsh int ipv4 set dynamicport udp start=1025 num=64511 >nul 2>&1 REM Disable Windows Scaling heuristics in PowerShell powershell Set-NetTCPSetting -SettingName "*" -ForceWS Disabled >nul 2>&1 ) if "%Autotunning%" equ "True" ( REM Disable Autotunning netsh int tcp set global autotuninglevel=disabled >nul 2>&1 ) set "file=C:\Vitality\Info\network" if not exist "%file%" ( echo Vitality > "%file%" set /a "ran_optimizations+=1" ) cd C:\Vitality set "formatted_optimizations=%ran_optimizations%" if %formatted_optimizations% LSS 10 set "formatted_optimizations= %formatted_optimizations%" echo set "ran_optimizations=%ran_optimizations%"> v.bat :skippingnetwork if "%KBM%"=="False" goto skippingkbm echo Applying KBM Tweaks if "%KeyboardDataSize%" equ "True" ( REM Set KeyboardDataQueueSize To 50 Dec reg add "HKLM\SYSTEM\CurrentControlSet\services\kbdclass\Parameters" /v "KeyboardDataQueueSize" /t REG_DWORD /d "50" /f >nul 2>&1 ) if "%AdjustKeyboardParameters%" equ "True" ( REM Adjusts keyboard parameters reg add "HKCU\Control Panel\Keyboard" /v "KeyboardSpeed" /t REG_SZ /d "31" /f >nul 2>&1 reg add "HKCU\Control Panel\Keyboard" /v "KeyboardDelay" /t REG_SZ /d "0" /f >nul 2>&1 ) if "%KeyboardAccessibilitySettings%" equ "True" ( REM Configures keyboard accessibility settings reg add "HKCU\Control Panel\Accessibility\Keyboard Response" /v "BounceTime" /t REG_SZ /d "0" /f >nul 2>&1 reg add "HKCU\Control Panel\Accessibility\Keyboard Response" /v "Flags" /t REG_SZ /d "0" /f >nul 2>&1 reg add "HKCU\Control Panel\Accessibility\Keyboard Response" /v "Last BounceKey Setting" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKCU\Control Panel\Accessibility\Keyboard Response" /v "Last Valid Delay" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKCU\Control Panel\Accessibility\Keyboard Response" /v "Last Valid Repeat" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKCU\Control Panel\Accessibility\Keyboard Response" /v "Last Valid Wait" /t REG_DWORD /d "1000" /f >nul 2>&1 ) if "%MouseDataSize%" equ "True" ( REM Set MouseDataQueueSize To 50 Dec reg add "HKLM\SYSTEM\CurrentControlSet\services\mouclass\Parameters" /v "MouseDataQueueSize" /t REG_DWORD /d "50" /f >nul 2>&1 ) if "%DisablePointerAcceleration%" equ "True" ( REM Disable Pointer Acceleration reg add "HKCU\Control Panel\Mouse" /v "MouseSpeed" /t REG_SZ /d "0" /f >nul 2>&1 reg add "HKCU\Control Panel\Mouse" /v "MouseThreshold1" /t REG_SZ /d "0" /f >nul 2>&1 reg add "HKCU\Control Panel\Mouse" /v "MouseThreshold2" /t REG_SZ /d "0" /f >nul 2>&1 ) if "%MouseAccessibilitySettings%" equ "True" ( REM Configures mouse accessibility settings reg add "HKCU\Control Panel\Accessibility\MouseKeys" /v "Flags" /t REG_SZ /d "0" /f >nul 2>&1 reg add "HKCU\Control Panel\Accessibility\MouseKeys" /v "MaximumSpeed" /t REG_SZ /d "80" /f >nul 2>&1 reg add "HKCU\Control Panel\Accessibility\MouseKeys" /v "TimeToMaximumSpeed" /t REG_SZ /d "3000" /f >nul 2>&1 ) set "file=C:\Vitality\Info\kbm" if not exist "%file%" ( echo Vitality > "%file%" set /a "ran_optimizations+=1" ) cd C:\Vitality set "formatted_optimizations=%ran_optimizations%" if %formatted_optimizations% LSS 10 set "formatted_optimizations= %formatted_optimizations%" echo set "ran_optimizations=%ran_optimizations%"> v.bat :skippingkbm if "%Task%"=="False" goto skippingtask echo Applying Task Scheduler Tweaks REM Disable Scheduled tasks for %%x in ( "\Microsoft\Windows\Customer Experience Improvement Program\Consolidator" "\Microsoft\Windows\Customer Experience Improvement Program\UsbCeip" "\Microsoft\Windows\Diagnosis\Scheduled" "\Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticDataCollector" "\Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticResolver" "\Microsoft\Windows\Location\Notifications" "\Microsoft\Windows\Location\WindowsActionDialog" "\Microsoft\Windows\Offline Files\Background Synchronization" "\Microsoft\Windows\Offline Files\Logon Synchronization" "\Microsoft\Windows\Time Synchronization\ForceSynchronizeTime" "\Microsoft\Windows\Time Synchronization\SynchronizeTime" "\Microsoft\Windows\Time Zone\SynchronizeTimeZone" "\Microsoft\Windows\UpdateOrchestrator\Schedule Scan" "\Microsoft\Windows\UpdateOrchestrator\Schedule Scan Static Task" "\Microsoft\Windows\UpdateOrchestrator\Reboot" "\Microsoft\Windows\USB\Usb-Notifications" "\Microsoft\Windows\WDI\ResolutionHost" "\Microsoft\Windows\WindowsUpdate\Scheduled Start" "\Microsoft\Windows\Workplace Join\Automatic-Device-Join" "\Microsoft\Windows\Workplace Join\Recovery-Check" )Do ( schtasks /Change /TN %%x /Disable >nul 2>&1 ) set "file=C:\Vitality\Info\task" if not exist "%file%" ( echo Vitality > "%file%" set /a "ran_optimizations+=1" ) cd C:\Vitality set "formatted_optimizations=%ran_optimizations%" if %formatted_optimizations% LSS 10 set "formatted_optimizations= %formatted_optimizations%" echo set "ran_optimizations=%ran_optimizations%"> v.bat :skippingtask if "%GPU%"=="False" goto skippinggpu If %gpu1%==Nvidia ( goto nvidia ) else ( goto checkforradeon ) :checkforradeon If %gpu1%==AMD ( goto radeon ) else ( goto nullgpu ) :nullgpu echo Your GPU is not supported by Vitality. pause >nul goto skippinggpu :nvidia if "%GameMode%" equ "True" ( echo Applying Nvidia Tweaks REM Enable Game Mode reg add "HKCU\Software\Microsoft\GameBar" /v "AllowAutoGameMode" /t REG_DWORD /d "1" /f > nul 2>&1 reg add "HKCU\Software\Microsoft\GameBar" /v "AutoGameModeEnabled" /t REG_DWORD /d "1" /f > nul 2>&1 ) if "%NvidiaTelemetry%" equ "True" ( REM Remove Nvidia Telemetry reg add "HKLM\SOFTWARE\NVIDIA Corporation\NvControlPanel2\Client" /v "OptInOrOutPreference" /t REG_DWORD /d 0 /f > nul 2>&1 reg add "HKLM\SOFTWARE\NVIDIA Corporation\Global\FTS" /v "EnableRID44231" /t REG_DWORD /d 0 /f > nul 2>&1 reg add "HKLM\SOFTWARE\NVIDIA Corporation\Global\FTS" /v "EnableRID64640" /t REG_DWORD /d 0 /f > nul 2>&1 reg add "HKLM\SOFTWARE\NVIDIA Corporation\Global\FTS" /v "EnableRID66610" /t REG_DWORD /d 0 /f > nul 2>&1 reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "NvBackend" /f > nul 2>&1 schtasks /change /disable /tn "NvTmRep_CrashReport1_{B2FE1952-0186-46C3-BAEC-A80AA35AC5B8}" > nul 2>&1 schtasks /change /disable /tn "NvTmRep_CrashReport2_{B2FE1952-0186-46C3-BAEC-A80AA35AC5B8}" > nul 2>&1 schtasks /change /disable /tn "NvTmRep_CrashReport3_{B2FE1952-0186-46C3-BAEC-A80AA35AC5B8}" > nul 2>&1 schtasks /change /disable /tn "NvTmRep_CrashReport4_{B2FE1952-0186-46C3-BAEC-A80AA35AC5B8}" > nul 2>&1 rmdir /s /q "C:\Windows\System32\drivers\NVIDIA Corporation" > nul 2>&1 cd /d "C:\Windows\System32\DriverStore\FileRepository\" > nul 2>&1 dir NvTelemetry64.dll /a /b /s > nul 2>&1 del NvTelemetry64.dll /a /s > nul 2>&1 ) REM Registry Key For NVIDIA Card for /f %%a in ('reg query "HKLM\System\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}" /t REG_SZ /s /e /f "NVIDIA" ^| findstr "HKEY"') do ( if "%DisableTiledDisplay%" equ "True" ( REM Disalbe Tiled Display reg add "%%a" /v "EnableTiledDisplay" /t REG_DWORD /d "0" /f > nul 2>&1 ) if "%DisableTCC%" equ "True" ( REM Disable TCC reg add "%%a" /v "TCCSupported" /t REG_DWORD /d "0" /f > nul 2>&1 ) if "%ForceContiguousMemoryAllocation%" equ "True" ( REM Force contiguous memory allocation reg add "%%a" /v "PreferSystemMemoryContiguous" /t REG_DWORD /d "1" /f > nul 2>&1 ) if "%KBoost%" equ "True" ( REM KBoost reg add "%%a" /v "PowerMizerEnable" /t REG_DWORD /d "1" /f > nul 2>&1 reg add "%%a" /v "PowerMizerLevel" /t REG_DWORD /d "1" /f > nul 2>&1 reg add "%%a" /v "PowerMizerLevelAC" /t REG_DWORD /d "1" /f> nul 2>&1 reg add "%%a" /v "PerfLevelSrc" /t REG_DWORD /d "8738" /f > nul 2>&1 ) if "%DisableScaling%" equ "True" ( REM Disable Scaling for /f %%i in ('reg query "HKLM\SYSTEM\CurrentControlSet\Control\GraphicsDrivers" /s /f "Scaling"^| findstr "HKEY"') do reg add "%%i" /v "Scaling" /t REG_DWORD /d "1" /f >nul 2>&1 ) ) if "%P0States%" equ "True" ( REM Force P0-State for /f %%i in ('wmic path Win32_VideoController get PNPDeviceID^| findstr /L "PCI\VEN_"') do ( for /f "tokens=3" %%a in ('reg query "HKLM\SYSTEM\CurrentControlSet\Enum\%%i" /v "Driver"') do ( for /f %%i in ('echo %%a ^| findstr "{"') do ( reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\%%i" /v "DisableDynamicPstate" /t REG_DWORD /d "1" /f > nul 2>&1 ) ) ) ) if "%HDCP%" equ "True" ( REM Disable HDCP for /f %%i in ('wmic path Win32_VideoController get PNPDeviceID^| findstr /L "PCI\VEN_"') do ( for /f "tokens=3" %%a in ('reg query "HKLM\SYSTEM\CurrentControlSet\Enum\%%i" /v "Driver"') do ( for /f %%i in ('echo %%a ^| findstr "{"') do ( reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\%%i" /v "RMHdcpKeyglobZero" /t REG_DWORD /d "1" /f > nul 2>&1 ) ) ) ) if "%NoECC%" equ "True" ( REM No ECC cd C:\Program Files\NVIDIA Corporation\NVSMI > nul 2>&1 nvidia-smi.exe -e 0 > nul 2>&1 ) if "%UnrestrictedClockPolicy%" equ "True" ( REM Unrestricted Clock Policy cd C:\Program Files\NVIDIA Corporation\NVSMI > nul 2>&1 nvidia-smi.exe -acp 0 > nul 2>&1 ) if "%Preemption%" equ "True" ( REM Disable Preemption reg add "HKLM\SYSTEM\CurrentControlSet\Services\nvlddmkm" /v "DisablePreemption" /t REG_DWORD /d "1" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Services\nvlddmkm" /v "DisableCudaContextPreemption" /t REG_DWORD /d "1" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Services\nvlddmkm" /v "EnableCEPreemption" /t REG_DWORD /d "0" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Services\nvlddmkm" /v "DisablePreemptionOnS3S4" /t REG_DWORD /d "1" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Services\nvlddmkm" /v "ComputePreemption" /t REG_DWORD /d "0" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Services\nvlddmkm" /v "EnableMidGfxPreemption" /t REG_DWORD /d "0" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Services\nvlddmkm" /v "EnableMidGfxPreemptionVGPU" /t REG_DWORD /d "0" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Services\nvlddmkm" /v "EnableMidBufferPreemptionForHighTdrTimeout" /t REG_DWORD /d "0" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Services\nvlddmkm" /v "EnableMidBufferPreemption" /t REG_DWORD /d "0" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Services\nvlddmkm" /v "EnableAsyncMidBufferPreemption" /t REG_DWORD /d "0" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Services\nvlddmkm" /v "DisableCudaContextPreemption" /t REG_DWORD /d "1" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Services\nvlddmkm\Global\NVTweak" /v "DisplayPowerSaving" /t REG_DWORD /d "0" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\GraphicsDrivers\Scheduler" /v "EnablePreemption" /t REG_DWORD /d "0" /f > nul 2>&1 ) if "%Logging%" equ "True" ( REM Disable Logging reg add "HKLM\SYSTEM\CurrentControlSet\Services\nvlddmkm" /v "LogWarningEntries" /t REG_DWORD /d "0" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Services\nvlddmkm" /v "LogPagingEntries" /t REG_DWORD /d "0" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Services\nvlddmkm" /v "LogEventEntries" /t REG_DWORD /d "0" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Services\nvlddmkm" /v "LogErrorEntries" /t REG_DWORD /d "0" /f > nul 2>&1 ) if "%NvidiaProfileInspector%" equ "True" ( REM Applying Custon Nvidia Profile Inspector Config if exist "%SYSTEMDRIVE%\Vitality\Resources\nvidiaProfileInspector" ( rd /s /q "%SYSTEMDRIVE%\Vitality\Resources\nvidiaProfileInspector" >nul 2>&1 ) if not exist "%SYSTEMDRIVE%\Vitality\Resources\nvidiaProfileInspector" md "%SYSTEMDRIVE%\Vitality\Resources\nvidiaProfileInspector" >nul 2>&1 curl -g -L -# -o "%SYSTEMDRIVE%\Vitality\Resources\nvidiaProfileInspector\nvidiaProfileInspector.zip" "https://github.com/Orbmu2k/nvidiaProfileInspector/releases/latest/download/nvidiaProfileInspector.zip" >nul 2>&1 powershell -NoProfile Expand-Archive '%SYSTEMDRIVE%\Vitality\Resources\nvidiaProfileInspector\nvidiaProfileInspector.zip' -DestinationPath '%SYSTEMDRIVE%\Vitality\Resources\nvidiaProfileInspector' >nul 2>&1 del /F /Q "%SYSTEMDRIVE%\Vitality\Resources\nvidiaProfileInspector\nvidiaProfileInspector.zip" >nul 2>&1 Powershell.exe -Command "Invoke-WebRequest -Uri 'https://raw.githubusercontent.com/vojtikczhraje/Vitality/main/assets/Config.nip' -OutFile '%SYSTEMDRIVE%\Vitality\Resources\nvidiaProfileInspector\Vitality.nip'" >nul 2>&1 cd "%SYSTEMDRIVE%\Vitality\Resources\nvidiaProfileInspector\" >nul 2>&1 nvidiaProfileInspector.exe "Vitality.nip" >nul 2>&1 ) set "file=C:\Vitality\Info\gpu" if not exist "%file%" ( echo Vitality > "%file%" set /a "ran_optimizations+=1" ) cd C:\Vitality set "formatted_optimizations=%ran_optimizations%" if %formatted_optimizations% LSS 10 set "formatted_optimizations= %formatted_optimizations%" echo set "ran_optimizations=%ran_optimizations%"> v.bat goto skippinggpu :radeon echo Applying Radeon Tweaks if "%GameModeAMD%" equ "True" ( REM Disable Gamemode reg add "HKCU\Software\Microsoft\GameBar" /v "AllowAutoGameMode" /t REG_DWORD /d "0" /f > nul 2>&1 reg add "HKCU\Software\Microsoft\GameBar" /v "AutoGameModeEnabled" /t REG_DWORD /d "0" /f > nul 2>&1 ) if "%AMDOptimizedSettings%" equ "True" ( REM AMD Optimized Settings reg add "HKCU\Software\AMD\CN" /v "AutoUpdateTriggered" /t REG_DWORD /d "0" /f > nul 2>&1 reg add "HKCU\Software\AMD\CN" /v "PowerSaverAutoEnable_CUR" /t REG_DWORD /d "0" /f > nul 2>&1 reg add "HKCU\Software\AMD\CN" /v "WindowSize" /t REG_SZ /d "1440,960" /f > nul 2>&1 reg add "HKCU\Software\AMD\CN" /v "BuildType" /t REG_DWORD /d "0" /f > nul 2>&1 reg add "HKCU\Software\AMD\CN" /v "WizardProfile" /t REG_SZ /d "PROFILE_CUSTOM" /f > nul 2>&1 reg add "HKCU\Software\AMD\CN" /v "UserTypeWizardShown" /t REG_DWORD /d "1" /f > nul 2>&1 reg add "HKCU\Software\AMD\CN" /v "LastPage" /t REG_SZ /d "settings/graphics/0/" /f > nul 2>&1 reg add "HKCU\Software\AMD\CN" /v "AutoUpdate" /t REG_DWORD /d "0" /f > nul 2>&1 reg add "HKCU\Software\AMD\CN" /v "RSXBrowserUnavailable" /t REG_SZ /d "true" /f > nul 2>&1 reg add "HKCU\Software\AMD\CN" /v "SYSTEMTray" /t REG_SZ /d "False" /f > nul 2>&1 reg add "HKCU\Software\AMD\CN" /v "AllowWebContent" /t REG_SZ /d "False" /f > nul 2>&1 reg add "HKCU\Software\AMD\CN" /v "CN_Hide_Toast_Notification" /t REG_SZ /d "true" /f > nul 2>&1 reg add "HKCU\Software\AMD\CN" /v "AnimationEffect" /t REG_SZ /d "False" /f > nul 2>&1 reg add "HKCU\Software\AMD\CN\OverlayNotification" /v "AlreadyNotified" /t REG_DWORD /d "1" /f > nul 2>&1 reg add "HKCU\Software\AMD\CN\VirtualSuperResolution" /v "AlreadyNotified" /t REG_DWORD /d "1" /f > nul 2>&1 reg add "HKCU\Software\AMD\DVR" /v "PerformanceMonitorOpacityWA" /t REG_DWORD /d "0" /f > nul 2>&1 reg add "HKCU\Software\AMD\DVR" /v "CaptureFileOutput" /t REG_SZ /d "C:\Users\Emre\Videos\Radeon ReLive" /f > nul 2>&1 reg add "HKCU\Software\AMD\DVR" /v "DvrEnabled" /t REG_DWORD /d "1" /f > nul 2>&1 reg add "HKCU\Software\AMD\DVR" /v "ActiveSceneId" /t REG_SZ /d "0" /f > nul 2>&1 reg add "HKCU\Software\AMD\DVR" /v "AVCCaps" /t REG_SZ /d "256,1,4096,4096,100000000,244800,0;" /f > nul 2>&1 reg add "HKCU\Software\AMD\DVR" /v "HEVCCaps" /t REG_SZ /d "256,1,4096,4096,2147483647,979200,0;" /f > nul 2>&1 reg add "HKCU\Software\AMD\DVR" /v "AvcEfcSupport" /t REG_SZ /d "0;" /f > nul 2>&1 reg add "HKCU\Software\AMD\DVR" /v "HevcEfcSupport" /t REG_SZ /d "0;" /f > nul 2>&1 reg add "HKCU\Software\AMD\DVR" /v "PrevInstantReplayEnable" /t REG_DWORD /d "0" /f > nul 2>&1 reg add "HKCU\Software\AMD\DVR" /v "PrevInGameReplayEnabled" /t REG_DWORD /d "0" /f > nul 2>&1 reg add "HKCU\Software\AMD\DVR" /v "PrevInstantGifEnabled" /t REG_DWORD /d "0" /f > nul 2>&1 reg add "HKCU\Software\AMD\DVR" /v "DvrDesktops" /t REG_SZ /d "\\.\DISPLAY19" /f > nul 2>&1 reg add "HKCU\Software\AMD\DVR" /v "RemoteServerStatus" /t REG_DWORD /d "0" /f > nul 2>&1 reg add "HKCU\Software\AMD\DVR" /v "ShowRSOverlay" /t REG_SZ /d "False" /f > nul 2>&1 reg add "HKCU\Software\AMD\SCENE\0" /v "CameraSize" /t REG_DWORD /d "3" /f > nul 2>&1 reg add "HKCU\Software\AMD\SCENE\0" /v "CameraEnabled" /t REG_DWORD /d "1" /f > nul 2>&1 reg add "HKCU\Software\AMD\SCENE\0" /v "CameraOpacity" /t REG_DWORD /d "100" /f > nul 2>&1 reg add "HKCU\Software\AMD\SCENE\0" /v "CameraAnchor" /t REG_DWORD /d "3" /f > nul 2>&1 reg add "HKCU\Software\AMD\SCENE\0" /v "CameraShownOnScreen" /t REG_DWORD /d "1" /f > nul 2>&1 reg add "HKCU\Software\AMD\SCENE\0" /v "IndicatorPosition" /t REG_DWORD /d "0" /f > nul 2>&1 reg add "HKCU\Software\AMD\SCENE\0" /v "TimerEnabled" /t REG_DWORD /d "1" /f > nul 2>&1 reg add "HKCU\Software\AMD\SCENE\0" /v "ChatOverlayEnabled" /t REG_DWORD /d "0" /f > nul 2>&1 reg add "HKCU\Software\AMD\SCENE\0" /v "ChatCustomOffset" /t REG_SZ /d "0.0260,0.0462" /f > nul 2>&1 reg add "HKCU\Software\AMD\SCENE\0" /v "ChatOverlayAnchor" /t REG_DWORD /d "4" /f > nul 2>&1 reg add "HKCU\Software\AMD\SCENE\0" /v "ChatBackgroundBlur" /t REG_DWORD /d "0" /f > nul 2>&1 reg add "HKCU\Software\AMD\SCENE\0" /v "ChatFontSize" /t REG_DWORD /d "1" /f > nul 2>&1 reg add "HKCU\Software\AMD\SCENE\0" /v "RelativeCoords" /t REG_DWORD /d "1" /f > nul 2>&1 reg add "HKCU\Software\AMD\SCENE\0" /v "CameraOffset" /t REG_SZ /d "0.0208,0.0370" /f > nul 2>&1 reg add "HKCU\Software\AMD\SCENE\0" /v "CameraCustomOffset" /t REG_SZ /d "0.0208,0.0370" /f > nul 2>&1 reg add "HKCU\Software\AMD\SCENE\0" /v "CameraRect" /t REG_SZ /d "0.1667,0.2222" /f > nul 2>&1 reg add "HKCU\Software\AMD\SCENE\0" /v "CameraCustomRect" /t REG_SZ /d "0.1667,0.2222" /f > nul 2>&1 reg add "HKCU\Software\AMD\SCENE\0" /v "ChatCustomRect" /t REG_SZ /d "0.1562,0.1562" /f > nul 2>&1 reg add "HKCU\Software\AMD\SCENE\0" /v "ChatOverlaySize" /t REG_DWORD /d "3" /f > nul 2>&1 reg add "HKCU\Software\ATI\ACE\Settings\ADL\AppProfiles" /v "AplReloadCounter" /t REG_DWORD /d "0" /f > nul 2>&1 reg add "HKLM\SOFTWARE\AMD\Install" /v "AUEP" /t REG_DWORD /d "1" /f > nul 2>&1 reg add "HKLM\SOFTWARE\AUEP" /v "RSX_AUEPStatus" /t REG_DWORD /d "2" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000" /v "NotifySubscription" /t REG_BINARY /d "3000" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000" /v "IsComponentControl" /t REG_BINARY /d "00000000" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000" /v "KMD_USUEnable" /t REG_DWORD /d "0" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000" /v "KMD_RadeonBoostEnabled" /t REG_DWORD /d "0" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000" /v "IsAutoDefault" /t REG_BINARY /d "01000000" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000" /v "KMD_ChillEnabled" /t REG_DWORD /d "0" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000" /v "KMD_DeLagEnabled" /t REG_DWORD /d "0" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000" /v "ACE" /t REG_BINARY /d "3000" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD" /v "AnisoDegree_SET" /t REG_BINARY /d "3020322034203820313600" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD" /v "Main3D_SET" /t REG_BINARY /d "302031203220332034203500" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD" /v "Tessellation_OPTION" /t REG_BINARY /d "3200" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD" /v "Tessellation" /t REG_BINARY /d "3100" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD" /v "AAF" /t REG_BINARY /d "30000000" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD" /v "GI" /t REG_BINARY /d "31000000" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD" /v "CatalystAI" /t REG_BINARY /d "31000000" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD" /v "TemporalAAMultiplier_NA" /t REG_BINARY /d "3100" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD" /v "ForceZBufferDepth" /t REG_BINARY /d "30000000" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD" /v "EnableTripleBuffering" /t REG_BINARY /d "3000" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD" /v "ExportCompressedTex" /t REG_BINARY /d "31000000" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD" /v "PixelCenter" /t REG_BINARY /d "30000000" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD" /v "ZFormats_NA" /t REG_BINARY /d "3100" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD" /v "DitherAlpha_NA" /t REG_BINARY /d "3100" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD" /v "SwapEffect_D3D_SET" /t REG_BINARY /d "3020312032203320342038203900" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD" /v "TFQ" /t REG_BINARY /d "3200" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD" /v "VSyncControl" /t REG_BINARY /d "3100" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD" /v "TextureOpt" /t REG_BINARY /d "30000000" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD" /v "TextureLod" /t REG_BINARY /d "30000000" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD" /v "ASE" /t REG_BINARY /d "3000" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD" /v "ASD" /t REG_BINARY /d "3000" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD" /v "ASTT" /t REG_BINARY /d "3000" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD" /v "AntiAliasSamples" /t REG_BINARY /d "3000" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD" /v "AntiAlias" /t REG_BINARY /d "3100" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD" /v "AnisoDegree" /t REG_BINARY /d "3000" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD" /v "AnisoType" /t REG_BINARY /d "30000000" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD" /v "AntiAliasMapping_SET" /t REG_BINARY /d "3028303A302C313A3029203228303A322C313A3229203428303A342C313A3429203828303A382C313A382900" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD" /v "AntiAliasSamples_SET" /t REG_BINARY /d "3020322034203800" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD" /v "ForceZBufferDepth_SET" /t REG_BINARY /d "3020313620323400" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD" /v "SwapEffect_OGL_SET" /t REG_BINARY /d "3020312032203320342035203620372038203920313120313220313320313420313520313620313700" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD" /v "Tessellation_SET" /t REG_BINARY /d "31203220342036203820313620333220363400" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD" /v "HighQualityAF" /t REG_BINARY /d "3100" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD" /v "DisplayCrossfireLogo" /t REG_BINARY /d "3000" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD" /v "AppGpuId" /t REG_BINARY /d "300078003000310030003000" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD" /v "SwapEffect" /t REG_BINARY /d "30000000" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD" /v "PowerState" /t REG_BINARY /d "3000" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD" /v "AntiStuttering" /t REG_BINARY /d "3100" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD" /v "TurboSync" /t REG_BINARY /d "3000" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD" /v "SurfaceFormatReplacements" /t REG_BINARY /d "3100" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD" /v "EQAA" /t REG_BINARY /d "3000" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD" /v "ShaderCache" /t REG_BINARY /d "3100" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD" /v "MLF" /t REG_BINARY /d "3000" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD" /v "TruformMode_NA" /t REG_BINARY /d "3100" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD\DXVA" /v "LRTCEnable" /t REG_BINARY /d "30000000" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD\DXVA" /v "3to2Pulldown" /t REG_BINARY /d "31000000" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD\DXVA" /v "MosquitoNoiseRemoval_ENABLE" /t REG_BINARY /d "30000000" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD\DXVA" /v "MosquitoNoiseRemoval" /t REG_BINARY /d "350030000000" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD\DXVA" /v "Deblocking_ENABLE" /t REG_BINARY /d "30000000" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD\DXVA" /v "Deblocking" /t REG_BINARY /d "350030000000" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD\DXVA" /v "DemoMode" /t REG_BINARY /d "30000000" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD\DXVA" /v "OverridePA" /t REG_BINARY /d "30000000" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD\DXVA" /v "DynamicRange" /t REG_BINARY /d "30000000" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD\DXVA" /v "StaticGamma_ENABLE" /t REG_BINARY /d "30000000" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD\DXVA" /v "BlueStretch_ENABLE" /t REG_BINARY /d "31000000" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD\DXVA" /v "BlueStretch" /t REG_BINARY /d "31000000" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD\DXVA" /v "LRTCCoef" /t REG_BINARY /d "3100300030000000" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD\DXVA" /v "DynamicContrast_ENABLE" /t REG_BINARY /d "30000000" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD\DXVA" /v "WhiteBalanceCorrection" /t REG_BINARY /d "30000000" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD\DXVA" /v "Fleshtone_ENABLE" /t REG_BINARY /d "30000000" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD\DXVA" /v "Fleshtone" /t REG_BINARY /d "350030000000" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD\DXVA" /v "ColorVibrance_ENABLE" /t REG_BINARY /d "31000000" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD\DXVA" /v "ColorVibrance" /t REG_BINARY /d "340030000000" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD\DXVA" /v "Detail_ENABLE" /t REG_BINARY /d "30000000" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD\DXVA" /v "Detail" /t REG_BINARY /d "310030000000" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD\DXVA" /v "Denoise_ENABLE" /t REG_BINARY /d "30000000" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD\DXVA" /v "Denoise" /t REG_BINARY /d "360034000000" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD\DXVA" /v "TrueWhite" /t REG_BINARY /d "30000000" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD\DXVA" /v "OvlTheaterMode" /t REG_BINARY /d "30000000" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD\DXVA" /v "StaticGamma" /t REG_BINARY /d "3100300030000000" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD\DXVA" /v "InternetVideo" /t REG_BINARY /d "30000000" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Services\amdwddmg" /v "ChillEnabled" /t REG_DWORD /d "0" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD" /v "Main3D_DEF" /t REG_SZ /d "1" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\UMD" /v "Main3D" /t REG_BINARY /d "3100" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000" /v "DisableDMACopy" /t REG_DWORD /d "1" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000" /v "DisableBlockWrite" /t REG_DWORD /d "0" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000" /v "PP_ThermalAutoThrottlingEnable" /t REG_DWORD /d "0" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000" /v "DisableDrmdmaPowerGating" /t REG_DWORD /d "1" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Services\AMD Crash Defender Service" /v "Start" /t REG_DWORD /d "4" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Services\AMD External Events Utility" /v "Start" /t REG_DWORD /d "4" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Services\amdfendr" /v "Start" /t REG_DWORD /d "4" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Services\amdfendrmgr" /v "Start" /t REG_DWORD /d "4" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Services\amdlog" /v "Start" /t REG_DWORD /d "4" /f > nul 2>&1 ) if "%AMDDebloat%" equ "True" ( REM Debloat AMD Drivers rmdir /s /q "%PROGRAMFILES%\AMD\CNext\CNext\facebook" > nul 2>&1 rmdir /s /q "%PROGRAMFILES%\AMD\CNext\CNext\ffmpeg" > nul 2>&1 rmdir /s /q "%PROGRAMFILES%\AMD\CNext\CNext\Gfycat" > nul 2>&1 rmdir /s /q "%PROGRAMFILES%\AMD\CNext\CNext\localisation" > nul 2>&1 rmdir /s /q "%PROGRAMFILES%\AMD\CNext\CNext\mixer" > nul 2>&1 rmdir /s /q "%PROGRAMFILES%\AMD\CNext\CNext\models" > nul 2>&1 rmdir /s /q "%PROGRAMFILES%\AMD\CNext\CNext\QtCharts" > nul 2>&1 rmdir /s /q "%PROGRAMFILES%\AMD\CNext\CNext\QtMultimedia" > nul 2>&1 rmdir /s /q "%PROGRAMFILES%\AMD\CNext\CNext\QtQml" > nul 2>&1 rmdir /s /q "%PROGRAMFILES%\AMD\CNext\CNext\QtTest" > nul 2>&1 rmdir /s /q "%PROGRAMFILES%\AMD\CNext\CNext\QtWebEngine" > nul 2>&1 rmdir /s /q "%PROGRAMFILES%\AMD\CNext\CNext\QtWinExtras" > nul 2>&1 rmdir /s /q "%PROGRAMFILES%\AMD\CNext\CNext\quanminTV" > nul 2>&1 rmdir /s /q "%PROGRAMFILES%\AMD\CNext\CNext\resources" > nul 2>&1 rmdir /s /q "%PROGRAMFILES%\AMD\CNext\CNext\restream" > nul 2>&1 rmdir /s /q "%PROGRAMFILES%\AMD\CNext\CNext\sinaWeibo" > nul 2>&1 rmdir /s /q "%PROGRAMFILES%\AMD\CNext\CNext\streamable" > nul 2>&1 rmdir /s /q "%PROGRAMFILES%\AMD\CNext\CNext\translations" > nul 2>&1 rmdir /s /q "%PROGRAMFILES%\AMD\CNext\CNext\twitch" > nul 2>&1 rmdir /s /q "%PROGRAMFILES%\AMD\CNext\CNext\twitter" > nul 2>&1 rmdir /s /q "%PROGRAMFILES%\AMD\CNext\CNext\youku" > nul 2>&1 rmdir /s /q "%PROGRAMFILES%\AMD\CNext\CNext\youtube" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\RadeonML-DirectML.dll" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\swresample-3.dll" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\swscale-5.dll" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\WirelessVR-windesktop64.dll" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\xerces-c_2_6.dll" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\branding.bmp" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\brandingRSX.bmp" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\brandingWS_RSX.bmp" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\atiacmLocalisation.ini" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\radeonimagefilters64.dl_" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\radeonml-directml.dl_" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\ModularMonet.dtd" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\branding_pro_rsx.ico" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\branding_rsx.ico" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\CNVersions.json" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\workstation.rcc" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\amddvr.reg" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\EyefinityPro.reg" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\license.txt" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\ModularMonet.xml" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\StartCN.xml" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\StartCNBM.xml" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\StartDVR.xml" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\wProfile.xsd" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\7z.exe" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\amddmlfilters.exe" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\amdow.exe" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\AMDRSServ.exe" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\AMDRSSrcExt.exe" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\ATISetup.exe" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\AutoOverClockGFXCLK.exe" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\CompressionUtility.exe" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\DuplicateDesktop.exe" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\EyefinityPro.exe" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\gpuup.exe" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\installShell64.exe" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\MMLoadDrv.exe" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\MMLoadDrvPXDiscrete.exe" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\QtWebEngineProcess.exe" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\RSServCmd.exe" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\videotrim.exe" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\ZipUtility.exe" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\7z.dll" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\amf-component-ffmpeg64.dll" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\amf-component-ring-buffer64.dll" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\avcodec-58.dll" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\avdevice-58.dll" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\avfilter-7.dll" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\avformat-58.dll" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\avresample-4.dll" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\avutil-56.dll" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\D3Dcompiler_47.dll" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\dvrres_cs.dll" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\dvrres_da_DK.dll" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\dvrres_de.dll" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\dvrres_el_GR.dll" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\dvrres_en_US.dll" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\dvrres_es_ES.dll" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\dvrres_fi_FI.dll" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\dvrres_fr_FR.dll" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\dvrres_hu_HU.dll" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\dvrres_it_IT.dll" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\dvrres_ja.dll" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\dvrres_ko_KR.dll" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\dvrres_nl_NL.dll" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\dvrres_no.dll" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\dvrres_pl.dll" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\dvrres_pt_BR.dll" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\dvrres_ru_RU.dll" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\dvrres_sv_SE.dll" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\dvrres_th.dll" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\dvrres_tr_TR.dll" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\dvrres_zh_CN.dll" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\dvrres_zh_TW.dll" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\freeglut.dll" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\glew32.dll" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\MediaInfo.dll" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\Qt5Multimedia.dll" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\Qt5MultimediaQuick.dll" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\Qt5QuickTest.dll" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\Qt5SerialPort.dll" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\Qt5Test.dll" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\Qt5WebEngineWidgets.dll" > nul 2>&1 del /q "%PROGRAMFILES%\AMD\CNext\CNext\RadeonImageFilters64.dll" > nul 2>&1 ) set "file=C:\Vitality\Info\gpu" if not exist "%file%" ( echo Vitality > "%file%" set /a "ran_optimizations+=1" ) cd C:\Vitality set "formatted_optimizations=%ran_optimizations%" if %formatted_optimizations% LSS 10 set "formatted_optimizations= %formatted_optimizations%" echo set "ran_optimizations=%ran_optimizations%"> v.bat goto skippinggpu :skippinggpu if "%RAM%"=="False" goto skippingram echo Applying RAM Tweaks if "%MemoryManagment%" equ "True" ( REM Configure Memory Managment reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "ClearPageFileAtShutdown" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "DisablePagingExecutive" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "DisablePageCombining" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "LargeSystemCache" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "NonPagedPoolQuota" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "NonPagedPoolSize" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "PagedPoolQuota" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "PagedPoolSize" /t REG_DWORD /d "192" /f >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "SecondLevelDataCache" /t REG_DWORD /d "1024" /f >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "SessionPoolSize" /t REG_DWORD /d "192" /f >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "SessionViewSize" /t REG_DWORD /d "192" /f >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "SystemPages" /t REG_DWORD /d "4294967295" /f >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "PhysicalAddressExtension" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "FeatureSettings" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "FeatureSettingsOverride" /t REG_DWORD /d "3" /f >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "FeatureSettingsOverrideMask" /t REG_DWORD /d "3" /f >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "IoPageLockLimit" /t REG_DWORD /d "16710656" /f >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "PoolUsageMaximum" /t REG_DWORD /d "96" /f >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "EnablePrefetcher" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "EnableSuperfetch" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" /v "EnablePrefetcher" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" /v "EnableSuperfetch" /t REG_DWORD /d "0" /f >nul 2>&1 ) if "%LargePageDrivers%" equ "True" ( REM LargePageDrivers set WHITELIST=ACPI AcpiDev AcpiPmi AFD AMDPCIDev amdgpio2 amdgpio3 AmdPPM amdpsp amdsata amdsbs amdxata asmtxhci atikmdag BasicDisplay BasicRender dc1-controll Disk DXGKrnl e1iexpress e1rexpress genericusbfn hwpolicy IntcAzAudAdd kbdclass kbdhid MMCSS monitor mouclass mouhid mountmgr mt7612US MTConfig NDIS nvdimm nvlddmkm pci PktMon Psched rt640x64 RTCore64 RzCommon RzDev_0244 Tcpip usbehci usbhub USBHUB3 USBXHCI Wdf01000 xboxgip xinputhid for /f %%i in ('driverquery ^| findstr "!WHITELIST!"') do set "DRIVERLIST=!DRIVERLIST!%%i\0" reg add "HKLM\SYSTEM\currentcontrolset\control\session manager\Memory Management" /v "LargePageDrivers" /t REG_MULTI_SZ /d "!DRIVERLIST!" /f >nul 2>&1 ) :skippingram set "file=C:\Vitality\Info\ram" if not exist "%file%" ( echo Vitality > "%file%" set /a "ran_optimizations+=1" ) cd C:\Vitality set "formatted_optimizations=%ran_optimizations%" if %formatted_optimizations% LSS 10 set "formatted_optimizations= %formatted_optimizations%" echo set "ran_optimizations=%ran_optimizations%"> v.bat :skippingram if "%DISK%"=="False" goto skippingdisk echo Applying DISK Tweaks if "%FileSystemOptimization%" equ "True" ( REM File System Optimization fsutil behavior set allowextchar 0 > NUL 2>&1 fsutil behavior set Bugcheckoncorrupt 0 > NUL 2>&1 fsutil repair set C: 0 > NUL 2>&1 fsutil behavior set disable8dot3 1 > NUL 2>&1 fsutil behavior set disablecompression 1 > NUL 2>&1 fsutil behavior set disableencryption 1 > NUL 2>&1 fsutil behavior set disablelastaccess 1 > NUL 2>&1 fsutil behavior set disablespotcorruptionhandling 1 > NUL 2>&1 fsutil behavior set encryptpagingfile 0 > NUL 2>&1 fsutil behavior set quotanotify 86400 > NUL 2>&1 fsutil behavior set symlinkevaluation L2L:1 > NUL 2>&1 fsutil behavior set disabledeletenotify 0 > NUL 2>&1 ) if "%Cleaner%" equ "True" ( REM Cleaner del /s /f /q c:\windows\temp\*.* > NUL 2>&1 rd /s /q c:\windows\temp > NUL 2>&1 md c:\windows\temp > NUL 2>&1 del /s /f /q C:\WINDOWS\Prefetch > NUL 2>&1 del /s /f /q %temp%\*.* > NUL 2>&1 rd /s /q %temp% > NUL 2>&1 md %temp% > NUL 2>&1 deltree /y c:\windows\tempor~1 > NUL 2>&1 deltree /y c:\windows\temp > NUL 2>&1 deltree /y c:\windows\tmp > NUL 2>&1 deltree /y c:\windows\ff*.tmp > NUL 2>&1 deltree /y c:\windows\history > NUL 2>&1 deltree /y c:\windows\cookies > NUL 2>&1 deltree /y c:\windows\recent > NUL 2>&1 deltree /y c:\windows\spool\printers > NUL 2>&1 del c:\WIN386.SWP > NUL 2>&1 ) if "%Startupcleaner%" equ "True" ( REM Startup Cleaner (shell:startup) ( echo @echo off title Cleaning... echo del /s /f /q c:\windows\temp\*.* ^> NUL 2^>^&1 echo rd /s /q c:\windows\temp ^> NUL 2^>^&1 echo md c:\windows\temp ^> NUL 2^>^&1 echo del /s /f /q C:\WINDOWS\Prefetch ^> NUL 2^>^&1 echo del /s /f /q %%temp%%\*.* ^> NUL 2^>^&1 echo rd /s /q %%temp%% ^> NUL 2^>^&1 echo md %%temp%% ^> NUL 2^>^&1 echo deltree /y c:\windows\tempor~1 ^> NUL 2^>^&1 echo deltree /y c:\windows\temp ^> NUL 2^>^&1 echo deltree /y c:\windows\tmp ^> NUL 2^>^&1 echo deltree /y c:\windows\ff*.tmp ^> NUL 2^>^&1 echo deltree /y c:\windows\history ^> NUL 2^>^&1 echo deltree /y c:\windows\cookies ^> NUL 2^>^&1 echo deltree /y c:\windows\recent ^> NUL 2^>^&1 echo deltree /y c:\windows\spool\printers ^> NUL 2^>^&1 echo del c:\WIN386.SWP ^> NUL 2^>^&1 ) > "%appdata%\Microsoft\Windows\Start Menu\Programs\Startup\StartupCleaner.bat" ) set "file=C:\Vitality\Info\disk" if not exist "%file%" ( echo Vitality > "%file%" set /a "ran_optimizations+=1" ) cd C:\Vitality set "formatted_optimizations=%ran_optimizations%" if %formatted_optimizations% LSS 10 set "formatted_optimizations= %formatted_optimizations%" echo set "ran_optimizations=%ran_optimizations%"> v.bat :skippingdisk if "%Windows%"=="False" goto skippingwindows echo Applying Windows Tweaks if "%DisablePushNotifications%" equ "True" ( REM Disable push notifications for applications reg add "HKCU\Software\Policies\Microsoft\Windows\CurrentVersion\PushNotifications" /v "NoToastApplicationNotification" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKCU\Software\Policies\Microsoft\Windows\CurrentVersion\PushNotifications" /v "NoToastApplicationNotificationOnLockScreen" /t REG_DWORD /d "1" /f >nul 2>&1 ) if "%DisableDriverSearching%" equ "True" ( REM Disable driver searching for Windows Update reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" /v "SearchOrderConfig" /t REG_DWORD /d "0" /f >nul 2>&1 ) If "%DisableHibernation%" equ "True" ( REM Disable Hibernation powercfg /h off >nul 2>&1 ) If "%DisableWindowsNotifications%" equ "True" ( REM Disable Windows Notifications Center reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Explorer" /v "DisableNotificationCenter" /t REG_DWORD /d "1" /f >nul 2>&1 ) If "%DisableTransparency%" equ "True" ( REM Disable transparency in themes reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize" /v "EnableTransparency" /t REG_DWORD /d "0" /f >nul 2>&1 ) If "%DisableAutomaticMaintenance%" equ "True" ( REM Disable automatic maintenance reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\Maintenance" /v "MaintenanceDisabled" /t REG_DWORD /d "1" /f >nul 2>&1 ) If "%PauseMapsUpdates%" equ "True" ( REM Pause Maps Updates/Downloads reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Maps" /v "AutoDownloadAndUpdateMapData" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Maps" /v "AllowUntriggeredNetworkTrafficOnSettingsPage" /t REG_DWORD /d "0" /f >nul 2>&1 ) If "%DisableSettingsSync%" equ "True" ( REM Disable Settings Sync reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisableSettingSync" /t REG_DWORD /d "2" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisableSettingSyncUserOverride" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisableSyncOnPaidNetwork" /t REG_DWORD /d "1" /f >nul 2>&1 ) If "%DisableAdvertisingID%" equ "True" ( REM Disable Advertising ID reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AdvertisingInfo" /v "DisabledByGroupPolicy" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\AdvertisingInfo" /v "Enabled" /t REG_DWORD /d "0" /f >nul 2>&1 ) If "%DisableLocationTracking%" equ "True" ( REM Location Tracking reg add "HKLM\SOFTWARE\Policies\Microsoft\FindMyDevice" /v "AllowFindMyDevice" /t REG_DWORD /d "0" /F >nul 2>&1 ) If "%DisableWebInSearch%" equ "True" ( REM Disable Web in Search reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v "ConnectedSearchUseWeb" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v "DisableWebSearch" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" /v "BingSearchEnabled" /t REG_DWORD /d "0" /f >nul 2>&1 ) If "%DisableRemoteAssistance%" equ "True" ( REM Disable Remote Assistance reg add "HKLM\System\CurrentControlSet\Control\Remote Assistance" /v "fAllowFullControl" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\System\CurrentControlSet\Control\Remote Assistance" /v "fAllowToGetHelp" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\System\CurrentControlSet\Control\Remote Assistance" /v "fEnableChatControl" /t REG_DWORD /d "0" /f >nul 2>&1 ) If "%DisableInventoryCollector%" equ "True" ( REM Turn off Inventory Collector reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v "DisableInventory" /t REG_DWORD /d "1" /f >nul 2>&1 ) If "%DisableWindowsErrorReporting%" equ "True" ( REM Turn off Windows Error Reporting reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting" /v "Disabled" /t REG_DWORD /d "1" /f >nul 2>&1 ) If "%DisableTelemetry%" equ "True" ( REM Disable Application Telemetry reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v "AITEnable" /t REG_DWORD /d "0" /f >nul 2>&1 REM Disable Telemetry reg add "HKLM\SOFTWARE\Policies\Microsoft\MSDeploy\3" /v "EnableTelemetry" /t REG_DWORD /d "0" /f >nul 2>&1 REM Configure Data Collection reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /F /V "AllowCommercialDataPipeline" /T REG_DWORD /d 0 >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /F /V "AllowDesktopAnalyticsProcessing" /T REG_DWORD /d 0 >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /F /V "AllowDeviceNameInTelemetry" /T REG_DWORD /d 0 >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /F /V "AllowTelemetry" /T REG_DWORD /d 0 >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /F /V "AllowUpdateComplianceProcessing" /T REG_DWORD /d 0 >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /F /V "AllowWUfBCloudProcessing" /T REG_DWORD /d 0 >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /F /V "DisableEnterpriseAuthProxy" /T REG_DWORD /d 1 >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /F /V "MicrosoftEdgeDataOptIn" /T REG_DWORD /d 0 >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /F /V "DisableTelemetryOptInChangeNotification" /T REG_DWORD /d 1 >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /F /V "DisableTelemetryOptInSettingsUx" /T REG_DWORD /d 1 >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /F /V "DisableDiagnosticDataViewer" /T REG_DWORD /d 1 >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /F /V "EnableConfigFlighting" /T REG_DWORD /d 0 >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /F /V "DoNotShowFeedbackNotifications" /T REG_DWORD /d 1 >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /F /V "LimitEnhancedDiagnosticDataWindowsAnalytics" /T REG_DWORD /d 0 >nul 2>&1 REM Disable Text/Ink/Handwriting Telemetry reg add "HKCU\Software\Microsoft\Input\TIPC" /v Enabled /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\InputPersonalization" /v "RestrictImplicitTextCollection" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\InputPersonalization" /v "RestrictImplicitInkCollection" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\TabletPC" /v "PreventHandwritingDataSharing" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\HandwritingErrorReports" /v "PreventHandwritingErrorReports" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKCU\Software\Microsoft\Personalization\Settings" /v AcceptedPrivacyPolicy /t REG_DWORD /d 0 /f >nul 2>&1 ) If "%DisableCustomerExperienceProgram%" equ "True" ( REM Disable the Customer Experience Improvement program reg add "HKLM\SOFTWARE\Policies\Microsoft\Internet Explorer\SQM" /v "DisableCustomerImprovementProgram" /t REG_DWORD /d 1 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\SQMClient\Windows" /v "CEIPEnable" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\AppV\CEIP" /v "CEIPEnable" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Messenger\Client" /v "CEIP" /t REG_DWORD /d "2" /f >nul 2>&1 ) If "%DisableOneDriveSync%" equ "True" ( REM Disable OneDrive Sync reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\OneDrive" /v "DisableFileSyncNGSC" /t REG_DWORD /d "1" /f >nul 2>&1 ) If "%DisableBiometrics%" equ "True" ( REM Disable Biometrics reg add "HKLM\SOFTWARE\Policies\Microsoft\Biometrics" /v "Enabled" /t REG_DWORD /d "0" /f >nul 2>&1 ) If "%DenyCapabilityForApps%" equ "True" ( REM Deny capability access for specific apps. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\appDiagnostics" /F /V "Value" /T REG_SZ /d "Deny" >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\appointments" /F /V "Value" /T REG_SZ /d "Deny" >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\email" /F /V "Value" /T REG_SZ /d "Deny" >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\phoneCall" /F /V "Value" /T REG_SZ /d "Deny" >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\userDataTasks" /F /V "Value" /T REG_SZ /d "Deny" >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\chat" /F /V "Value" /T REG_SZ /d "Deny" >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\contacts" /F /V "Value" /T REG_SZ /d "Deny" >nul 2>&1 ) If "%DisableLocationServices%" equ "True" ( REM Disable location services reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\LocationAndSensors" /v "DisableLocation" /t REG_DWORD /d 1 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\LocationAndSensors" /v "DisableLocationScripting" /t REG_DWORD /d 1 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\LocationAndSensors" /v "DisableSensors" /t REG_DWORD /d 1 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\LocationAndSensors" /v "DisableWindowsLocationProvider" /t REG_DWORD /d 1 /f >nul 2>&1 ) If "%BootOptions%" equ "True" ( REM Configure Boot Options REM Disables boot graphics. bcdedit /set bootux disabled > NUL 2>&1 REM Set Boot Menu to Standard Instead Of Legacy bcdedit /set bootmenupolicy standard > NUL 2>&1 REM Disable Hyper-V bcdedit /set hypervisorlaunchtype off > NUL 2>&1 REM Disable TPM bcdedit /set tpmbootentropy ForceDisable > NUL 2>&1 REM Enable Quietboot bcdedit /set quietboot yes > NUL 2>&1 REM Disable Boot Logo bcdedit /set {globalsettings} custom:16000067 true > NUL 2>&13 REM Disable Spinning Animation bcdedit /set {globalsettings} custom:16000069 true > NUL 2>&1 REM Disable Boot Message bcdedit /set {globalsettings} custom:16000068 true > NUL 2>&1 REM Disable Automatic Repair bcdedit /set {current} recoveryenabled no > NUL 2>&1 REM Avoid the use of uncontiguous portions of low-memory from the OS bcdedit /set firstmegabytepolicy UseAll >nul 2>&1 bcdedit /set avoidlowmemory 0x8000000 >nul 2>&1 bcdedit /set nolowmem Yes >nul 2>&1 REM Disable Some Kernel Memory Mitigations bcdedit /set allowedinmemorysettings 0x0 >nul 2>&1 bcdedit /set isolatedcontext No >nul 2>&1 REM Disable DMA Memory Protection And Cores Isolation bcdedit /set vsmlaunchtype Off >nul 2>&1 bcdedit /set vm No >nul 2>&1 REM Enable X2Apic And Enable Memory Mapping bcdedit /set x2apicpolicy Enable >nul 2>&1 bcdedit /set configaccesspolicy Default >nul 2>&1 bcdedit /set MSI Default >nul 2>&1 bcdedit /set usephysicaldestination No >nul 2>&1 bcdedit /set usefirmwarepcisettings No >nul 2>&1 ) If "%PasswordOnWakeUp%" equ "True" ( REM Require a password on wakeup: OFF powercfg -setacvalueindex scheme_current sub_none CONSOLELOCK 0 >nul ) If "%PreventWindowsMarkingFiles%" equ "True" ( REM Prevent Windows Marking File Attachments With Informations About Their Zone Of Origin reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments" /v "SaveZoneInformation" /t REG_DWORD /d "1" /f >nul 2>&1 ) If "%DisableLanguageBar%" equ "True" ( REM Disable Language Bar reg add "HKCU\Keyboard Layout\Toggle" /v "Layout Hotkey" /t REG_SZ /d "3" /f >nul 2>&1 reg add "HKCU\Keyboard Layout\Toggle" /v "Language Hotkey" /t REG_SZ /d "3" /f >nul 2>&1 reg add "HKCU\Keyboard Layout\Toggle" /v "Hotkey" /t REG_SZ /d "3" /f >nul 2>&1 ) If "%DisableStickyKeys%" equ "True" ( REM Disable Sticky Keys reg add "HKCU\Control Panel\Accessibility\StickyKeys" /v "Flags" /t REG_SZ /d "506" /f >nul 2>&1 ) If "%DisableProgramCompatibilityAssistant%" equ "True" ( REM Disable Program Compatibility Assistant reg add "HKCU\Software\Policies\Microsoft\Windows\AppCompat" /v "DisablePCA" /t REG_DWORD /d "1" /f >nul 2>&1 ) If "%DisableFaultTolerantHeap%" equ "True" ( REM Disable Fault Tolerant Heap reg add "HKLM\SOFTWARE\Microsoft\FTH" /v "Enabled" /t REG_DWORD /d "0" /f >nul 2>&1 ) If "%DisablePowerShellTelemtry%" equ "True" ( REM Disable PowerShell Telemetry reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v "POWERSHELL_TELEMETRY_OPTOUT" /t REG_SZ /d "1" /f >nul 2>&1 ) If "%DisableWindowsErrorReporting%" equ "True" ( REM Disable Windows Error Reporting reg add "HKLM\SOFTWARE\Policies\Microsoft\PCHealth\ErrorReporting" /v "DoReport" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting" /v "Disabled" /t REG_DWORD /d "1" /f >nul 2>&1 ) If "%DisableRemoteAssistance%" equ "True" ( REM Disable Remote Assistance reg add "HKLM\SYSTEM\CurrentControlSet\Control\Remote Assistance" /v "fAllowToGetHelp" /t REG_DWORD /d "0" /f >nul 2>&1 ) If "%ShowFileExtension%" equ "True" ( REM Show File Extensions reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "HideFileExt" /t REG_DWORD /d "0" /f >nul 2>&1 ) If "%Remove3DObjectsFromExplorer%" equ "True" ( REM Remove 3D Objects From Explorer Pane reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}" /f >nul 2>&1 reg delete "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}" /f >nul 2>&1 ) If "%DisableSignInAndLockLastUser%" equ "True" ( REM Disable Sing-In And Lock Last Interactive User reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "DisableAutomaticRestartSignOn" /t REG_DWORD /d "1" /f >nul 2>&1 ) If "%DisableOnlineTips%" equ "True" ( REM Disable Disable Online Tips reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "AllowOnlineTips" /t REG_DWORD /d "0" /f >nul 2>&1 ) If "%DisableTypingInsights%" equ "True" ( REM Disable Typing Insights reg add "HKCU\Software\Microsoft\input\Settings" /v "InsightsEnabled" /t REG_DWORD /d "0" /f >nul 2>&1 ) If "%DisableSuggestionsInTheSearchBox%" equ "True" ( REM Disable Suggestions In The Search Box And In Search Home reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\SearchSettings" /v "IsDynamicSearchBoxEnabled" /t REG_DWORD /d "0" /f >nul 2>&1 ) If "%RestoreOldContextMenu%" equ "True" ( REM Resotre Old Context Menu reg add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}" /ve /t REG_SZ /d "" /f >nul 2>&1 reg add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /ve /t REG_SZ /d "" /f >nul 2>&1 ) If "%RemovePinToQuickAccess%" equ "True" ( REM Remove Pin TO Quick Access In Context Menu reg delete "HKCR\Folder\shell\pintohome" /f >nul 2>&1 reg delete "HKLM\SOFTWARE\Classes\Folder\shell\pintohome" /f >nul 2>&1 ) If "%HideFoldersInQuickAccess%" equ "True" ( REM Hide Folders In Quick Access reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer" /v "ShowFrequent" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer" /v "ShowRecent" /t REG_DWORD /d "0" /f >nul 2>&1 ) If "%HideQuickAccessFromFileExplorer%" equ "True" ( REM Hide Quick Access From File Explorer reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" /v "HubMode" /t REG_DWORD /d "1" /f >nul 2>&1 ) If "%LaunchFileExplorerToThisPC%" equ "True" ( REM Launch File Explorer To This PC reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "LaunchTo" /t REG_DWORD /d "1" /f >nul 2>&1 ) If "%TurnOffDisplayOfRecentSearch%" equ "True" ( REM Turn Off Display Of Recent Search Entries In The File Explorer Search Box reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "DisableSearchBoxSuggestions" /t REG_DWORD /d "1" /f >nul 2>&1 ) If "%ClearHistoryOfRecentlyOpenedDocumentsOnExit%" equ "True" ( REM Clear History Of Recently Opened Documents On Exit reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "ClearRecentDocsOnExit" /t REG_DWORD /d "1" /f >nul 2>&1 ) set "file=C:\Vitality\Info\windows" if not exist "%file%" ( echo Vitality > "%file%" set /a "ran_optimizations+=1" ) cd C:\Vitality set "formatted_optimizations=%ran_optimizations%" if %formatted_optimizations% LSS 10 set "formatted_optimizations= %formatted_optimizations%" echo set "ran_optimizations=%ran_optimizations%"> v.bat :skippingwindows if "%CPU%"=="False" goto skippingcpu if %cpu1%==Intel ( goto intel ) else ( goto amd ) :intel echo Applying Intel CPU Tweaks If "%DisableCPUVirtualizationIntel%" equ "True" ( REM Disable CPU Virtualization reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DeviceGuard" /v "EnableVirtualizationBasedSecurity" /t REG_DWORD /d "0" /f > NUL 2>&1 ) If "%DisableCoreIsolationIntel%" equ "True" ( REM Disable Core Isolation reg add "HKLM\SYSTEM\CurrentControlSet\Control\DeviceGuard\Scenarios\HypervisorEnforcedCodeIntegrity" /v "Enabled" /t REG_DWORD /d "0" /f > NUL 2>&1 ) If "%ConfigureCStatesIntel%" equ "True" ( REM Configure C-States powercfg -setacvalueindex scheme_current sub_processor IDLEPROMOTE 100 > NUL 2>&1 powercfg -setacvalueindex scheme_current sub_processor IDLEDEMOTE 100 > NUL 2>&1 powercfg -setacvalueindex scheme_current sub_processor IDLECHECK 100000 > NUL 2>&1 powercfg -setacvalueindex scheme_current sub_processor IDLESCALING 0 > NUL 2>&1 ) If "%DisableThrottlingIntel%" equ "True" ( REM Disable Throttling reg add "HKLM\SYSTEM\CurrentControlSet\Control\Power\PowerThrottling" /v "PowerThrottlingOff" /t REG_DWORD /d "1" /f > NUL 2>&1 ) If "%DisableAMDServices%" equ "True" ( REM Disable AMD Services reg add "HKLM\System\CurrentControlSet\Services\AmdK8" /v "Start" /t REG_DWORD /d "4" /f > NUL 2>&1 reg add "HKLM\System\CurrentControlSet\Services\amdsata" /v "Start" /t REG_DWORD /d "4" /f > NUL 2>&1 reg add "HKLM\System\CurrentControlSet\Services\amdsbs" /v "Start" /t REG_DWORD /d "4" /f > NUL 2>&1 reg add "HKLM\System\CurrentControlSet\Services\amdxata" /v "Start" /t REG_DWORD /d "4" /f > NUL 2>&1 ) If "%DisableTSXIntel%" equ "True" ( REM Disable TSX reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\kernel" /v "DisableTsx" /t REG_DWORD /d "0" /f > NUL 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\kernel" /v "EnableTsx" /t REG_DWORD /d "1" /f > NUL 2>&1 ) set "file=C:\Vitality\Info\cpu" if not exist "%file%" ( echo Vitality > "%file%" set /a "ran_optimizations+=1" ) cd C:\Vitality set "formatted_optimizations=%ran_optimizations%" if %formatted_optimizations% LSS 10 set "formatted_optimizations= %formatted_optimizations%" echo set "ran_optimizations=%ran_optimizations%"> v.bat goto skippingcpu :amd echo Applying AMD CPU Tweaks If "%DisableCPUVirtualizationAMD%" equ "True" ( REM Disable CPU Virtualization reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DeviceGuard" /v "EnableVirtualizationBasedSecurity" /t REG_DWORD /d "0" /f > NUL 2>&1 ) If "%DisableCoreIsolationAMD%" equ "True" ( REM Disable Core Isolation reg add "HKLM\SYSTEM\CurrentControlSet\Control\DeviceGuard\Scenarios\HypervisorEnforcedCodeIntegrity" /v "Enabled" /t REG_DWORD /d "0" /f > NUL 2>&1 ) If "%ConfigureCStatesAMD%" equ "True" ( REM Configure C-States powercfg -setacvalueindex scheme_current sub_processor IDLEPROMOTE 100 > NUL 2>&1 powercfg -setacvalueindex scheme_current sub_processor IDLEDEMOTE 100 > NUL 2>&1 powercfg -setacvalueindex scheme_current sub_processor IDLECHECK 100000 > NUL 2>&1 powercfg -setacvalueindex scheme_current sub_processor IDLESCALING 0 > NUL 2>&1 ) If "%DisableThrottlingAMD%" equ "True" ( REM Disable Throttling reg add "HKLM\SYSTEM\CurrentControlSet\Control\Power\PowerThrottling" /v "PowerThrottlingOff" /t REG_DWORD /d "1" /f ) If "%DisableIntelServices%" equ "True" ( REM Disable Intel Services reg add "HKLM\System\CurrentControlSet\Services\iagpio" /v "Start" /t REG_DWORD /d "4" /f > NUL 2>&1 reg add "HKLM\System\CurrentControlSet\Services\iai2c" /v "Start" /t REG_DWORD /d "4" /f > NUL 2>&1 reg add "HKLM\System\CurrentControlSet\Services\iaLPSS2i_GPIO2" /v "Start" /t REG_DWORD /d "4" /f > NUL 2>&1 reg add "HKLM\System\CurrentControlSet\Services\iaLPSS2i_GPIO2_BXT_P" /v "Start" /t REG_DWORD /d "4" /f > NUL 2>&1 reg add "HKLM\System\CurrentControlSet\Services\iaLPSS2i_I2C" /v "Start" /t REG_DWORD /d "4" /f > NUL 2>&1 reg add "HKLM\System\CurrentControlSet\Services\iaLPSSi_GPIO" /v "Start" /t REG_DWORD /d "4" /f > NUL 2>&1 reg add "HKLM\System\CurrentControlSet\Services\iaStorAVC" /v "Start" /t REG_DWORD /d "4" /f > NUL 2>&1 reg add "HKLM\System\CurrentControlSet\Services\iaStorV" /v "Start" /t REG_DWORD /d "4" /f > NUL 2>&1 reg add "HKLM\System\CurrentControlSet\Services\intelide" /v "Start" /t REG_DWORD /d "4" /f > NUL 2>&1 reg add "HKLM\System\CurrentControlSet\Services\intelpep" /v "Start" /t REG_DWORD /d "4" /f > NUL 2>&1 ) If "%DisableTSXAMD%" equ "True" ( REM Disable TSX reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\kernel" /v "DisableTsx" /t REG_DWORD /d "1" /f > NUL 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\kernel" /v "EnableTsx" /t REG_DWORD /d "0" /f > NUL 2>&1 ) set "file=C:\Vitality\Info\cpu" if not exist "%file%" ( echo Vitality > "%file%" set /a "ran_optimizations+=1" ) cd C:\Vitality set "formatted_optimizations=%ran_optimizations%" if %formatted_optimizations% LSS 10 set "formatted_optimizations= %formatted_optimizations%" echo set "ran_optimizations=%ran_optimizations%"> v.bat goto skippingcpu :skippingcpu if "%HighQuality%"=="False" goto skippinghighquality echo Applying High Quality Recording Settings if not exist "%appdata%\obs-studio" echo Please Reinstall OBS taskkill /f /im obs64.exe >nul 2>&1 for /f %%A in ('powershell -Command "(Get-WmiObject -Class Win32_VideoController).CurrentHorizontalResolution"') do set "horizontal=%%A" for /f %%A in ('powershell -Command "(Get-WmiObject -Class Win32_VideoController).CurrentVerticalResolution"') do set "vertical=%%A" if %gpu1% == Nvidia ( (for %%i in ( "[AdvOut]" "RecEncoder=jim_nvenc" "RecRB=true" "TrackIndex=1" "RecType=Standard" "RecFormat=mp4" "RecTracks=1" "FLVTrack=1" "FFOutputToFile=true" "FFFormat=" "FFFormatMimeType=" "FFVEncoderId=0" "FFVEncoder=" "FFAEncoderId=0" "FFAEncoder=" "FFAudioMixes=1" "VodTrackIndex=2" . "[General]" "Name=Untitled" . "[Video]" "BaseCX=!width!" "BaseCY=!height!" "OutputCX=!width!" "OutputCY=!height!" "FPSDen=1" "FPSType=2" "ScaleType=bilinear" "FPSNum=60" "ColorSpace=sRGB" "ColorRange=Full" . "[Output]" "RecType=Standard" "Mode=Advanced" ) do echo.%%~i)>"%TEMP%\Basic.ini" echo.{"bf":2,"cqp":17,"keyint_sec":0,"lookahead":"False","multipass":"disabled","preset2":"p1","profile":"baseline","rate_control":"CQP"} >"%TEMP%\RecordEncoder.json" move /Y "%TEMP%\basic.ini" "%APPDATA%\obs-studio\basic\profiles\Untitled\" >nul 2>&1 move /Y "%TEMP%\RecordEncoder.json" "%APPDATA%\obs-studio\basic\profiles\Untitled\" >nul 2>&1 set "file=C:\Vitality\Info\obs" if not exist "%file%" ( echo Vitality > "%file%" set /a "ran_optimizations+=1" ) cd C:\Vitality set "formatted_optimizations=%ran_optimizations%" if %formatted_optimizations% LSS 10 set "formatted_optimizations= %formatted_optimizations%" echo set "ran_optimizations=%ran_optimizations%"> v.bat goto obsend ) if %gpu1% == AMD ( (for %%i in ( "[AdvOut]" "RecEncoder=h264_texture_amf" "RecRB=true" "TrackIndex=1" "RecType=Standard" "RecFormat=mp4" "RecTracks=1" "FLVTrack=1" "FFOutputToFile=true" "FFFormat=" "FFFormatMimeType=" "FFVEncoderId=0" "FFVEncoder=" "FFAEncoderId=0" "FFAEncoder=" "FFAudioMixes=1" "VodTrackIndex=2" . "[General]" "Name=Untitled" . "[Video]" "BaseCX=!width!" "BaseCY=!height!" "OutputCX=!width!" "OutputCY=!height!" "FPSDen=1" "FPSType=2" "ScaleType=bilinear" "FPSNum=60" "ColorSpace=sRGB" "ColorRange=Full" . "[Output]" "RecType=Standard" "Mode=Advanced" ) do echo.%%~i)>"%TEMP%\Basic.ini" echo.{"cqp":18,"preset":"speed","profile":"baseline","rate_control":"CQP"} >"%TEMP%\RecordEncoder.json" move /Y "%TEMP%\basic.ini" "%APPDATA%\obs-studio\basic\profiles\Untitled\" >nul 2>&1 move /Y "%TEMP%\RecordEncoder.json" "%APPDATA%\obs-studio\basic\profiles\Untitled\" >nul 2>&1 set "file=C:\Vitality\Info\obs" if not exist "%file%" ( echo Vitality > "%file%" set /a "ran_optimizations+=1" ) cd C:\Vitality set "formatted_optimizations=%ran_optimizations%" if %formatted_optimizations% LSS 10 set "formatted_optimizations= %formatted_optimizations%" echo set "ran_optimizations=%ran_optimizations%"> v.bat goto obsend ) if %gpu1% == NaN ( (for %%i in ( "[AdvOut]" "RecEncoder=obs_x264" "RecRB=true" "TrackIndex=1" "RecType=Standard" "RecFormat=mp4" "RecTracks=1" "FLVTrack=1" "FFOutputToFile=true" "FFFormat=" "FFFormatMimeType=" "FFVEncoderId=0" "FFVEncoder=" "FFAEncoderId=0" "FFAEncoder=" "FFAudioMixes=1" "VodTrackIndex=2" . "[General]" "Name=Untitled" . "[Video]" "BaseCX=!width!" "BaseCY=!height!" "OutputCX=!width!" "OutputCY=!height!" "FPSDen=1" "FPSType=2" "ScaleType=bilinear" "FPSNum=60" "ColorSpace=sRGB" "ColorRange=Full" . "[Output]" "RecType=Standard" "Mode=Advanced" ) do echo.%%~i)>"%TEMP%\Basic.ini" echo.{"bitrate":40000,"preset":"faster","profile":"baseline","tune":"film"} >"%TEMP%\RecordEncoder.json" move /Y "%TEMP%\basic.ini" "%APPDATA%\obs-studio\basic\profiles\Untitled\" >nul 2>&1 move /Y "%TEMP%\RecordEncoder.json" "%APPDATA%\obs-studio\basic\profiles\Untitled\" >nul 2>&1 set "file=C:\Vitality\Info\obs" if not exist "%file%" ( echo Vitality > "%file%" set /a "ran_optimizations+=1" ) cd C:\Vitality set "formatted_optimizations=%ran_optimizations%" if %formatted_optimizations% LSS 10 set "formatted_optimizations= %formatted_optimizations%" echo set "ran_optimizations=%ran_optimizations%"> v.bat goto obsend ) :skippinghighquality if "%MediumQuality%"=="False" goto skippingmediumquality echo Applying Medium Quality Recording Settings if not exist "%appdata%\obs-studio" echo Reinstall OBS taskkill /f /im obs64.exe >nul 2>&1 for /f %%A in ('powershell -Command "(Get-WmiObject -Class Win32_VideoController).CurrentHorizontalResolution"') do set "horizontal=%%A" for /f %%A in ('powershell -Command "(Get-WmiObject -Class Win32_VideoController).CurrentVerticalResolution"') do set "vertical=%%A" if %gpu1% == Nvidia ( (for %%i in ( "[AdvOut]" "RecEncoder=jim_nvenc" "RecRB=true" "TrackIndex=1" "RecType=Standard" "RecFormat=mp4" "RecTracks=1" "FLVTrack=1" "FFOutputToFile=true" "FFFormat=" "FFFormatMimeType=" "FFVEncoderId=0" "FFVEncoder=" "FFAEncoderId=0" "FFAEncoder=" "FFAudioMixes=1" "VodTrackIndex=2" . "[General]" "Name=Untitled" . "[Video]" "BaseCX=!width!" "BaseCY=!height!" "OutputCX=!width!" "OutputCY=!height!" "FPSDen=1" "FPSType=2" "ScaleType=bilinear" "FPSNum=180" "ColorSpace=sRGB" "ColorRange=Partial" . "[Output]" "RecType=Standard" "Mode=Advanced" ) do echo.%%~i)>"%TEMP%\Basic.ini" echo.{"bf":0,"cqp":18,"keyint_sec":0,"lookahead":"False","multipass":"disabled","preset2":"p1","profile":"baseline","psycho_aq":"False","rate_control":"CQP"} >"%TEMP%\RecordEncoder.json" move /Y "%TEMP%\basic.ini" "%APPDATA%\obs-studio\basic\profiles\Untitled\" >nul 2>&1 move /Y "%TEMP%\RecordEncoder.json" "%APPDATA%\obs-studio\basic\profiles\Untitled\" >nul 2>&1 set "file=C:\Vitality\Info\obs" if not exist "%file%" ( echo Vitality > "%file%" set /a "ran_optimizations+=1" ) cd C:\Vitality set "formatted_optimizations=%ran_optimizations%" if %formatted_optimizations% LSS 10 set "formatted_optimizations= %formatted_optimizations%" echo set "ran_optimizations=%ran_optimizations%"> v.bat goto obsend ) if %gpu1% == AMD ( (for %%i in ( "[AdvOut]" "RecEncoder=h264_texture_amf" "RecRB=true" "TrackIndex=1" "RecType=Standard" "RecFormat=mp4" "RecTracks=1" "FLVTrack=1" "FFOutputToFile=true" "FFFormat=" "FFFormatMimeType=" "FFVEncoderId=0" "FFVEncoder=" "FFAEncoderId=0" "FFAEncoder=" "FFAudioMixes=1" "VodTrackIndex=2" . "[General]" "Name=Untitled" . "[Video]" "BaseCX=!width!" "BaseCY=!height!" "OutputCX=!width!" "OutputCY=!height!" "FPSDen=1" "FPSType=2" "ScaleType=bilinear" "FPSNum=180" "ColorSpace=sRGB" "ColorRange=Partial" . "[Output]" "RecType=Standard" "Mode=Advanced" ) do echo.%%~i)>"%TEMP%\Basic.ini" echo.{"cqp":18,"preset":"speed","profile":"baseline","rate_control":"CQP"} >"%TEMP%\RecordEncoder.json" move /Y "%TEMP%\basic.ini" "%APPDATA%\obs-studio\basic\profiles\Untitled\" >nul 2>&1 move /Y "%TEMP%\RecordEncoder.json" "%APPDATA%\obs-studio\basic\profiles\Untitled\" >nul 2>&1 set "file=C:\Vitality\Info\obs" if not exist "%file%" ( echo Vitality > "%file%" set /a "ran_optimizations+=1" ) cd C:\Vitality set "formatted_optimizations=%ran_optimizations%" if %formatted_optimizations% LSS 10 set "formatted_optimizations= %formatted_optimizations%" echo set "ran_optimizations=%ran_optimizations%"> v.bat goto obsend ) if %gpu1% == NaN( (for %%i in ( "[AdvOut]" "RecEncoder=obs_x264" "RecRB=true" "TrackIndex=1" "RecType=Standard" "RecFormat=mp4" "RecTracks=1" "FLVTrack=1" "FFOutputToFile=true" "FFFormat=" "FFFormatMimeType=" "FFVEncoderId=0" "FFVEncoder=" "FFAEncoderId=0" "FFAEncoder=" "FFAudioMixes=1" "VodTrackIndex=2" . "[General]" "Name=Untitled" . "[Video]" "BaseCX=!width!" "BaseCY=!height!" "OutputCX=!width!" "OutputCY=!height!" "FPSDen=1" "FPSType=2" "ScaleType=bilinear" "FPSNum=180" "ColorSpace=sRGB" "ColorRange=Partial" . "[Output]" "RecType=Standard" "Mode=Advanced" ) do echo.%%~i)>"%TEMP%\Basic.ini" echo.{"bitrate":30000,"preset":"veryfast","profile":"baseline","tune":"film"} >"%TEMP%\RecordEncoder.json" move /Y "%TEMP%\basic.ini" "%APPDATA%\obs-studio\basic\profiles\Untitled\" >nul 2>&1 move /Y "%TEMP%\RecordEncoder.json" "%APPDATA%\obs-studio\basic\profiles\Untitled\" >nul 2>&1 set "file=C:\Vitality\Info\obs" if not exist "%file%" ( echo Vitality > "%file%" set /a "ran_optimizations+=1" ) cd C:\Vitality set "formatted_optimizations=%ran_optimizations%" if %formatted_optimizations% LSS 10 set "formatted_optimizations= %formatted_optimizations%" echo set "ran_optimizations=%ran_optimizations%"> v.bat goto obsend ) :skippingmediumquality if "%LowQuality%"=="False" goto skippinglowquality echo Applying Low Quality Recording Settings if not exist "%appdata%\obs-studio" echo Reinstall OBS taskkill /f /im obs64.exe >nul 2>&1 for /f %%A in ('powershell -Command "(Get-WmiObject -Class Win32_VideoController).CurrentHorizontalResolution"') do set "horizontal=%%A" for /f %%A in ('powershell -Command "(Get-WmiObject -Class Win32_VideoController).CurrentVerticalResolution"') do set "vertical=%%A" if %gpu1% == Nvidia ( (for %%i in ( "[AdvOut]" "RecEncoder=jim_nvenc" "RecRB=true" "TrackIndex=1" "RecType=Standard" "RecFormat=mp4" "RecTracks=1" "FLVTrack=1" "FFOutputToFile=true" "FFFormat=" "FFFormatMimeType=" "FFVEncoderId=0" "FFVEncoder=" "FFAEncoderId=0" "FFAEncoder=" "FFAudioMixes=1" "VodTrackIndex=2" . "[General]" "Name=Untitled" . "[Video]" "BaseCX=!width!" "BaseCY=!height!" "OutputCX=1280" "OutputCY=720" "FPSDen=1" "FPSType=2" "ScaleType=bicubic" "FPSNum=180" "ColorSpace=sRGB" "ColorRange=Partial" . "[Output]" "RecType=Standard" "Mode=Advanced" ) do echo.%%~i)>"%TEMP%\Basic.ini" echo.{"bf":0,"cqp":19,"keyint_sec":0,"lookahead":"False","multipass":"disabled","preset2":"p1","profile":"baseline","psycho_aq":"False","rate_control":"CQP"} >"%TEMP%\RecordEncoder.json" move /Y "%TEMP%\basic.ini" "%APPDATA%\obs-studio\basic\profiles\Untitled\" >nul 2>&1 move /Y "%TEMP%\RecordEncoder.json" "%APPDATA%\obs-studio\basic\profiles\Untitled\" >nul 2>&1 set "file=C:\Vitality\Info\obs" if not exist "%file%" ( echo Vitality > "%file%" set /a "ran_optimizations+=1" ) cd C:\Vitality set "formatted_optimizations=%ran_optimizations%" if %formatted_optimizations% LSS 10 set "formatted_optimizations= %formatted_optimizations%" echo set "ran_optimizations=%ran_optimizations%"> v.bat goto obsend ) if %gpu1% == AMD ( (for %%i in ( "[AdvOut]" "RecEncoder=h264_texture_amf" "RecRB=true" "TrackIndex=1" "RecType=Standard" "RecFormat=mp4" "RecTracks=1" "FLVTrack=1" "FFOutputToFile=true" "FFFormat=" "FFFormatMimeType=" "FFVEncoderId=0" "FFVEncoder=" "FFAEncoderId=0" "FFAEncoder=" "FFAudioMixes=1" "VodTrackIndex=2" . "[General]" "Name=Untitled" . "[Video]" "BaseCX=!width!" "BaseCY=!height!" "OutputCX=1280" "OutputCY=720" "FPSDen=1" "FPSType=2" "ScaleType=bicubic" "FPSNum=180" "ColorSpace=sRGB" "ColorRange=Partial" . "[Output]" "RecType=Standard" "Mode=Advanced" ) do echo.%%~i)>"%TEMP%\Basic.ini" echo.{"cqp":18,"preset":"speed","profile":"baseline","rate_control":"CQP"} >"%TEMP%\RecordEncoder.json" move /Y "%TEMP%\basic.ini" "%APPDATA%\obs-studio\basic\profiles\Untitled\" >nul 2>&1 move /Y "%TEMP%\RecordEncoder.json" "%APPDATA%\obs-studio\basic\profiles\Untitled\" >nul 2>&1 set "file=C:\Vitality\Info\obs" if not exist "%file%" ( echo Vitality > "%file%" set /a "ran_optimizations+=1" ) cd C:\Vitality set "formatted_optimizations=%ran_optimizations%" if %formatted_optimizations% LSS 10 set "formatted_optimizations= %formatted_optimizations%" echo set "ran_optimizations=%ran_optimizations%"> v.bat goto obsend ) if %gpu1% == NaN ( (for %%i in ( "[AdvOut]" "RecEncoder=obs_x264" "RecRB=true" "TrackIndex=1" "RecType=Standard" "RecFormat=mp4" "RecTracks=1" "FLVTrack=1" "FFOutputToFile=true" "FFFormat=" "FFFormatMimeType=" "FFVEncoderId=0" "FFVEncoder=" "FFAEncoderId=0" "FFAEncoder=" "FFAudioMixes=1" "VodTrackIndex=2" . "[General]" "Name=Untitled" . "[Video]" "BaseCX=!width!" "BaseCY=!height!" "OutputCX=1280" "OutputCY=720" "FPSDen=1" "FPSType=2" "ScaleType=bicubic" "FPSNum=180" "ColorSpace=sRGB" "ColorRange=Partial" . "[Output]" "RecType=Standard" "Mode=Advanced" ) do echo.%%~i)>"%TEMP%\Basic.ini" echo.{"bitrate":25000,"preset":"ultrafast","profile":"baseline","tune":"fastdecode"} >"%TEMP%\RecordEncoder.json" move /Y "%TEMP%\basic.ini" "%APPDATA%\obs-studio\basic\profiles\Untitled\" >nul 2>&1 move /Y "%TEMP%\RecordEncoder.json" "%APPDATA%\obs-studio\basic\profiles\Untitled\" >nul 2>&1 set "file=C:\Vitality\Info\obs" if not exist "%file%" ( echo Vitality > "%file%" set /a "ran_optimizations+=1" ) cd C:\Vitality set "formatted_optimizations=%ran_optimizations%" if %formatted_optimizations% LSS 10 set "formatted_optimizations= %formatted_optimizations%" echo set "ran_optimizations=%ran_optimizations%"> v.bat goto obsend ) :skippinglowquality :obsend if "%PrivacyCleanup%"=="False" goto skippingprivacypleanup echo Applying Privacy Cleanup REM Remove adware, spyware, PUPs if not exist "%SYSTEMDRIVE%\Vitality\Resources\AdwCleaner" mkdir "%SYSTEMDRIVE%\Vitality\Resources\AdwCleaner" del /F /Q "%SYSTEMDRIVE%\Vitality\Resources\AdwCleaner\AdwCleaner.exe" >nul 2>&1 curl -g -L -# -o "%SYSTEMDRIVE%\Vitality\Resources\AdwCleaner\AdwCleaner.exe" "https://adwcleaner.malwarebytes.com/adwcleaner?channel=release" >nul 2>&1 REM Delete Listary user data del /f /s /q %appdata%\Listary\UserData > NUL 2>&1 REM Remove Java cache rd /s /q "%APPDATA%\Sun\Java\Deployment\cache" > NUL 2>&1 REM Clear Flash Player Data rd /s /q "%APPDATA%\Macromedia\Flash Player" > NUL 2>&1 REM Delete Steam crash dumps and traces del /f /q %ProgramFiles(x86)%\Steam\Dumps > NUL 2>&1 del /f /q %ProgramFiles(x86)%\Steam\Traces > NUL 2>&1 del /f /q %ProgramFiles(x86)%\Steam\appcache\*.log > NUL 2>&1 REM Remove Visual Studion Telemtry data rmdir /s /q "%AppData%\vstelemetry" > NUL 2>&1 rmdir /s /q "%LocalAppData%\Microsoft\VSApplicationInsights" > NUL 2>&1 rmdir /s /q "%ProgramData%\Microsoft\VSApplicationInsights" > NUL 2>&1 rmdir /s /q "%Temp%\Microsoft\VSApplicationInsights" > NUL 2>&1 REM Delete Visual Studio Fault And Feedback logs rmdir /s /q "%Temp%\VSFaultInfo" > NUL 2>&1 rmdir /s /q "%Temp%\VSFeedbackPerfWatsonData" > NUL 2>&1 rmdir /s /q "%Temp%\VSFeedbackVSRTCLogs" > NUL 2>&1 REM Remove Visual Studio Remote Control And Telemetry data rmdir /s /q "%Temp%\VSRemoteControl" > NUL 2>&1 rmdir /s /q "%Temp%\VSTelem" > NUL 2>&1 rmdir /s /q "%Temp%\VSTelem.Out" > NUL 2>&1 REM Clear .NET TelemetryStorageService data rmdir /s /q "%USERPROFILE%\.dotnet\TelemetryStorageService" > NUL 2>&1 REM Delete Recent Registry Entries Related To Regedit reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Applets\Regedit" /va /f > NUL 2>&1 reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Applets\Regedit" /va /f> NUL 2>&1 REM Delete Recent Registry Entries Related To Favorites In Regedit reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Applets\Regedit\Favorites" /va /f > NUL 2>&1 reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Applets\Regedit\Favorites" /va /f > NUL 2>&1 REM Delete Recent Registry Entries Related To ComDlg32 reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\LastVisitedPidlMRU" /va /f > NUL 2>&1 reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\LastVisitedPidlMRULegacy" /va /f > NUL 2>&1 REM Delete Recent Registry Entries Related To Adobe MediaBrowser reg delete "HKCU\Software\Adobe\MediaBrowser\MRU" /va /f > NUL 2>&1 REM Delete Recent Registry Entries Related To Paint And Wordpad reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Applets\Paint\Recent File List" /va /f > NUL 2>&1 reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Applets\Paint\Recent File List" /va /f > NUL 2>&1 reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Applets\Wordpad\Recent File List" /va /f > NUL 2>&1 REM Delete Recent Registry Entries Related To Map Network Drives reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Map Network Drive MRU" /va /f > NUL 2>&1 reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Map Network Drive MRU" /va /f > NUL 2>&1 REM Delete Recent Registry Entries Related To Search Assistand And RecentDocuments reg delete "HKCU\Software\Microsoft\Search Assistant\ACMru" /va /f > NUL 2>&1 reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs" /va /f > NUL 2>&1 reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs" /va /f > NUL 2>&1 REM Delete Recent Registry Entries Related To OpenSaveMRU And Media Player reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU" /va /f > NUL 2>&1 reg delete "HKCU\Software\Microsoft\MediaPlayer\Player\RecentFileList" /va /f > NUL 2>&1 reg delete "HKCU\Software\Microsoft\MediaPlayer\Player\RecentURLList" /va /f > NUL 2>&1 reg delete "HKLM\SOFTWARE\Microsoft\MediaPlayer\Player\RecentFileList" /va /f > NUL 2>&1 reg delete "HKLM\SOFTWARE\Microsoft\MediaPlayer\Player\RecentURLList" /va /f > NUL 2>&1 REM Delete Recent Registry Entries Related To Direct3D And Explorer reg delete "HKCU\Software\Microsoft\Direct3D\MostRecentApplication" /va /f > NUL 2>&1 reg delete "HKLM\SOFTWARE\Microsoft\Direct3D\MostRecentApplication" /va /f > NUL 2>&1 reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU" /va /f > NUL 2>&1 reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\TypedPaths" /va /f > NUL 2>&1 REM Delete AutomaticDestination And CustomDestinations In Recent Folder del /f /q "%APPDATA%\Microsoft\Windows\Recent\AutomaticDestinations\*" > NUL 2>&1 del /f /q "%APPDATA%\Microsoft\Windows\Recent\CustomDestinations\*" > NUL 2>&1 REM Remove Opera Browser Data rd /s /q "%USERPROFILE%\Local Settings\Application Data\Opera\Opera" > NUL 2>&1 rd /s /q "%localappdata%\Opera\Opera" > NUL 2>&1 rd /s /q "%APPDATA%\Opera\Opera" > NUL 2>&1 REM Delete Internet Explorer And Edge Cached Data del /f /q "%localappdata%\Microsoft\Windows\INetCache\IE\*" > NUL 2>&1 rd /s /q "%localappdata%\Microsoft\Windows\WebCache" > NUL 2>&1 reg delete "HKCU\Software\Microsoft\Internet Explorer\TypedURLs" /va /f > NUL 2>&1 reg delete "HKCU\Software\Microsoft\Internet Explorer\TypedURLsTime" /va /f > NUL 2>&1 REM Remove Temporary Internet Files rd /s /q %userprofile%\Local Settings\Temporary Internet Files > NUL 2>&1 rd /s /q "%localappdata%\Microsoft\Windows\Temporary Internet Files" > NUL 2>&1 REM Take ownership of Temporary Internet Files and grant admin full control takeown /f "%localappdata%\Temporary Internet Files" /r /d y > NUL 2>&1 icacls "%localappdata%\Temporary Internet Files" /grant administrators:F /t > NUL 2>&1 REM Remove Temporary Internet Files (again) rd /s /q "%localappdata%\Temporary Internet Files" > NUL 2>&1 REM Clear various browser caches and data rd /s /q "%localappdata%\Microsoft\Windows\INetCache" > NUL 2>&1 rd /s /q "%localappdata%\Microsoft\Feeds Cache" > NUL 2>&1 rd /s /q "%APPDATA%\Microsoft\Windows\Cookies" > NUL 2>&1 rd /s /q "%localappdata%\Microsoft\Windows\INetCookies" > NUL 2>&1 rd /s /q "%localappdata%\Microsoft\InternetExplorer\DOMStore" > NUL 2>&1 rd /s /q "%localappdata%\Microsoft\Internet Explorer" > NUL 2>&1 REM Clear Google Chrome data rd /s /q "%localappdata%\Google\Chrome\User Data\Crashpad\reports\" > NUL 2>&1 rd /s /q "%localappdata%\Google\CrashReports\" > NUL 2>&1 del /f /q "%localappdata%\Google\Software Reporter Tool\*.log" > NUL 2>&1 rd /s /q "%USERPROFILE%\Local Settings\Application Data\Google\Chrome\User Data" > NUL 2>&1 rd /s /q "%localappdata%\Google\Chrome\User Data" > NUL 2>&1 REM Clear Windows Explorer and Temp files del /f /s /q /a %LocalAppData%\Microsoft\Windows\Explorer\*.db > NUL 2>&1 del /f /q %localappdata%\Temp\* > NUL 2>&1 rd /s /q "%WINDIR%\Temp" > NUL 2>&1 rd /s /q "%TEMP%" > NUL 2>&1 REM Clear Diagtrack log if exist "%ProgramData%\Microsoft\Diagnosis\ETLLogs\AutoLogger\AutoLogger-Diagtrack-Listener.etl" ( takeown /f "%ProgramData%\Microsoft\Diagnosis\ETLLogs\AutoLogger\AutoLogger-Diagtrack-Listener.etl" /r /d y > NUL 2>&1 icacls "%ProgramData%\Microsoft\Diagnosis\ETLLogs\AutoLogger\AutoLogger-Diagtrack-Listener.etl" /grant administrators:F /t > NUL 2>&1 echo "" > "%ProgramData%\Microsoft\Diagnosis\ETLLogs\AutoLogger\AutoLogger-Diagtrack-Listener.etl" > NUL 2>&1 echo Clear successful: "%ProgramData%\Microsoft\Diagnosis\ETLLogs\AutoLogger\AutoLogger-Diagtrack-Listener.etl" > NUL 2>&1 ) REM Clear Windows Defender scan history del "%ProgramData%\Microsoft\Windows Defender\Scans\History\" /s /f /q > NUL 2>&1 REM Delete various log files del /f /q %SystemRoot%\comsetup.log > NUL 2>&1 del /f /q %SystemRoot%\DtcInstall.log > NUL 2>&1 del /f /q %SystemRoot%\PFRO.log > NUL 2>&1 REM Clear Windows Deployment Upgrade Process Logs del /f /q %SystemRoot%\setupact.log > NUL 2>&1 del /f /q %SystemRoot%\setuperr.log > NUL 2>&1 del /f /q %SystemRoot%\setupapi.log > NUL 2>&1 del /f /q %SystemRoot%\Panther\* > NUL 2>&1 del /f /q %SystemRoot%\inf\setupapi.app.log > NUL 2>&1 del /f /q %SystemRoot%\inf\setupapi.dev.log > NUL 2>&1 del /f /q %SystemRoot%\inf\setupapi.offline.log > NUL 2>&1 del /f /q %SystemRoot%\Performance\WinSAT\winsat.log > NUL 2>&1 del /f /q %SystemRoot%\debug\PASSWD.LOG > NUL 2>&1 REM Clear Windows WebCache del /f /q %localappdata%\Microsoft\Windows\WebCache\*.* > NUL 2>&1 REM Clear LocalService Temp files del /f /q %SystemRoot%\ServiceProfiles\LocalService\AppData\Local\Temp\*.* > NUL 2>&1 REM Clear CBS and DISM logs del /f /q %SystemRoot%\Logs\CBS\CBS.log > NUL 2>&1 del /f /q %SystemRoot%\Logs\DISM\DISM.log > NUL 2>&1 REM Clear SIH and CLR traces del /f /q "%SystemRoot%\Logs\SIH\*" > NUL 2>&1 del /f /q "%LocalAppData%\Microsoft\CLR_v4.0\UsageTraces\*" > NUL 2>&1 del /f /q "%LocalAppData%\Microsoft\CLR_v4.0_32\UsageTraces\*" > NUL 2>&1 REM Clear NetSetup, setupcln, and Temp files del /f /q "%SystemRoot%\Logs\NetSetup\*" > NUL 2>&1 del /f /q "%SystemRoot%\System32\LogFiles\setupcln\*" > NUL 2>&1 del /f /q %SystemRoot%\Temp\CBS\* > NUL 2>&1 REM Clear waasmedic log takeown /f %SystemRoot%\Logs\waasmedic /r /d y > NUL 2>&1 icacls %SystemRoot%\Logs\waasmedic /grant administrators:F /t > NUL 2>&1 rd /s /q %SystemRoot%\Logs\waasmedic > NUL 2>&1 REM Clear catroot2 logs and database del /f /q %SystemRoot%\System32\catroot2\dberr.txt > NUL 2>&1 del /f /q %SystemRoot%\System32\catroot2.log > NUL 2>&1 del /f /q %SystemRoot%\System32\catroot2.jrs > NUL 2>&1 del /f /q %SystemRoot%\System32\catroot2.edb > NUL 2>&1 del /f /q %SystemRoot%\System32\catroot2.chk > NUL 2>&1 REM Clear WindowsUpdate, delete defaultuser0, and modify registry del /f /q "%SystemRoot%\Traces\WindowsUpdate\*" > NUL 2>&1 net user defaultuser0 /delete > NUL 2>&1 reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Configuration" /v "DisableResetbase" /t "REG_DWORD" /d "0" /f > NUL 2>&1 REM Reset default app associations using DISM dism /online /Remove-DefaultAppAssociations > NUL 2>&1 cd %SYSTEMDRIVE%\Vitality >nul 2>&1 AdwCleaner.exe /eula /clean /noreboot >nul 2>&1 cleanmgr /sagerun:1 >nul 2>&1 set "file=C:\Vitality\Info\privacycleanup" if not exist "%file%" ( echo Vitality > "%file%" set /a "ran_optimizations+=1" ) cd C:\Vitality set "formatted_optimizations=%ran_optimizations%" if %formatted_optimizations% LSS 10 set "formatted_optimizations= %formatted_optimizations%" echo set "ran_optimizations=%ran_optimizations%"> v.bat :skippingprivacypleanup if "%DataCol%"=="False" goto skippingdatacol echo Applying Data Collection REM Disable CEIP (Customer Experience Improvement Program) reg add "HKLM\SOFTWARE\Policies\Microsoft\SQMClient\Windows" /v "CEIPEnable" /t REG_DWORD /d "0" /f >nul 2>&1 REM Disable AIT (Application Impact Telemetry) reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v "AITEnable" /t REG_DWORD /d "0" /f >nul 2>&1 REM Disable Customer Experience Improvement Program tasks schtasks /change /TN "\Microsoft\Windows\Customer Experience Improvement Program\Consolidator" /DISABLE >nul 2>&1 schtasks /change /TN "\Microsoft\Windows\Customer Experience Improvement Program\KernelCeipTask" /DISABLE >nul 2>&1 schtasks /change /TN "\Microsoft\Windows\Customer Experience Improvement Program\UsbCeip" /DISABLE >nul 2>&1 REM Disable Telemetry at various levels reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Policies\DataCollection" /v "AllowTelemetry" /d 0 /t REG_DWORD /f >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection" /v "AllowTelemetry" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v "AllowTelemetry" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v "LimitEnhancedDiagnosticDataWindowsAnalytics" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection" /v "AllowTelemetry" /t REG_DWORD /d 0 /f >nul 2>&1 REM Disable Data Collection reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\CurrentVersion\Software Protection Platform" /v "NoGenTicket" /t "REG_DWORD" /d "1" /f >nul 2>&1 REM Disable Windows Error Reporting reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting" /v "Disabled" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting" /v "Disabled" /t "REG_DWORD" /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\Consent" /v "DefaultConsent" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\Consent" /v "DefaultOverrideBehavior" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting" /v "DontSendAdditionalData" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting" /v "LoggingDisabled" /t REG_DWORD /d "1" /f >nul 2>&1 REM Disable Error Details and Device Information tasks schtasks /Change /TN "Microsoft\Windows\ErrorDetails\EnableErrorDetailsUpdate" /Disable >nul 2>&1 schtasks /Change /TN "Microsoft\Windows\Windows Error Reporting\QueueReporting" /Disable >nul 2>&1 schtasks /change /TN "Microsoft\Windows\Device Information\Device" /disable >nul 2>&1 REM Modify Debugger for Device Census reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\'DeviceCensus.exe'" /v "Debugger" /t REG_SZ /d "%windir%\System32\taskkill.exe" /f >nul 2>&1 REM Disable Application Experience tasks schtasks /change /TN "Microsoft\Windows\Application Experience\ProgramDataUpdater" /disable >nul 2>&1 schtasks /change /TN "Microsoft\Windows\Application Experience\AitAgent" /disable >nul 2>&1 schtasks /change /TN "Microsoft\Windows\Application Experience\StartupAppTask" /disable >nul 2>&1 schtasks /change /TN "Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" /disable >nul 2>&1 REM Modify Debugger for CompatTelRunner.exe reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\'CompatTelRunner.exe'" /v "Debugger" /t REG_SZ /d "%windir%\System32\taskkill.exe" /f >nul 2>&1 REM Prevent device metadata retrieval from network reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Device Metadata" /v "PreventDeviceMetadataFromNetwork" /t REG_DWORD /d 1 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Device Metadata" /v "PreventDeviceMetadataFromNetwork" /t REG_DWORD /d 1 /f >nul 2>&1 REM Disable driver searching reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\DriverSearching" /v "SearchOrderConfig" /t REG_DWORD /d 0 /f >nul 2>&1 REM Deny access to location for apps reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location" /v "Value" /d "Deny" /f >nul 2>&1 REM Disable 'Geolocation Service' reg add "HKLM\SYSTEM\CurrentControlSet\Services\lfsvc\Service\Configuration" /v "Status" /d "0" /t REG_DWORD /f >nul 2>&1 REM Configure app privacy settings for location reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessLocation" /t REG_DWORD /d 2 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessLocation_UserInControlOfTheseApps" /t REG_MULTI_SZ /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessLocation_ForceAllowTheseApps" /t REG_MULTI_SZ /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessLocation_ForceDenyTheseApps" /t REG_MULTI_SZ /f >nul 2>&1 REM Deny access to user account information reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\userAccountInformation" /v "Value" /d "Deny" /f >nul 2>&1 REM Deny device access permissions reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{C1D23ACC-752B-43E5-8448-8D0E519CD6D6}" /t REG_SZ /v "Value" /d "Deny" /f >nul 2>&1 REM Configure app privacy settings for account info reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessAccountInfo" /t REG_DWORD /d 2 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessAccountInfo_UserInControlOfTheseApps" /t REG_MULTI_SZ /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessAccountInfo_ForceAllowTheseApps" /t REG_MULTI_SZ /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessAccountInfo_ForceDenyTheseApps" /t REG_MULTI_SZ /f >nul 2>&1 REM Deny access to activity info reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\activity" /v "Value" /d "Deny" /f >nul 2>&1 REM Configure app privacy settings for motion reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessMotion" /t REG_DWORD /d 2 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessMotion_UserInControlOfTheseApps" /t REG_MULTI_SZ /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessMotion_ForceAllowTheseApps" /t REG_MULTI_SZ /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessMotion_ForceDenyTheseApps" /t REG_MULTI_SZ /f >nul 2>&1 REM Configure app privacy settings for phone reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessPhone" /t REG_DWORD /d 2 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessPhone_UserInControlOfTheseApps" /t REG_MULTI_SZ /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessPhone_ForceAllowTheseApps" /t REG_MULTI_SZ /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessPhone_ForceDenyTheseApps" /t REG_MULTI_SZ /f >nul 2>&1 REM Deny access to trusted devices reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{C1D23ACC-752B-43E5-8448-8D0E519CD6D6}" /t REG_SZ /v "Value" /d "Deny" /f >nul 2>&1 REM Configure app privacy settings for trusted devices reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessTrustedDevices" /t REG_DWORD /d 2 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessTrustedDevices_UserInControlOfTheseApps" /t REG_MULTI_SZ /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessTrustedDevices_ForceAllowTheseApps" /t REG_MULTI_SZ /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessTrustedDevices_ForceDenyTheseApps" /t REG_MULTI_SZ /f >nul 2>&1 REM Configure app privacy settings for syncing with devices reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsSyncWithDevices" /t REG_DWORD /d 2 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsSyncWithDevices_UserInControlOfTheseApps" /t REG_MULTI_SZ /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsSyncWithDevices_ForceAllowTheseApps" /t REG_MULTI_SZ /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsSyncWithDevices_ForceDenyTheseApps" /t REG_MULTI_SZ /f >nul 2>&1 REM Deny access to webcam reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\webcam" /v "Value" /d "Deny" /t REG_SZ /f >nul 2>&1 REM Deny camera access for specific device reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{E5323777-F976-4f5b-9B55-B94699C46E44}" /t REG_SZ /v "Value" /d "Deny" /f >nul 2>&1 REM Configure app privacy settings for camera reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessCamera" /t REG_DWORD /d 2 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessCamera_UserInControlOfTheseApps" /t REG_MULTI_SZ /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessCamera_ForceAllowTheseApps" /t REG_MULTI_SZ /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessCamera_ForceDenyTheseApps" /t REG_MULTI_SZ /f >nul 2>&1 reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{2EEF81BE-33FA-4800-9670-1CD474972C3F}" /v "Value" /t REG_SZ /d "Deny" /f >nul 2>&1 REM Deny access for all loosely coupled devices reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\LooselyCoupled" /t REG_SZ /v "Value" /d "Deny" /f >nul 2>&1 REM Deny app diagnostics consent reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\appDiagnostics" /v "Value" /d "Deny" /t REG_SZ /f >nul 2>&1 REM Configure app privacy settings for diagnostic info reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsGetDiagnosticInfo" /t REG_DWORD /d 2 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsGetDiagnosticInfo_UserInControlOfTheseApps" /t REG_MULTI_SZ /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsGetDiagnosticInfo_ForceAllowTheseApps" /t REG_MULTI_SZ /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsGetDiagnosticInfo_ForceDenyTheseApps" /t REG_MULTI_SZ /f >nul 2>&1 REM Deny access to contacts reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\contacts" /v "Value" /d "Deny" /t REG_SZ /f >nul 2>&1 REM Deny contacts access for specific device reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{7D7E8402-7C54-4821-A34E-AEEFD62DED93}" /t REG_SZ /v "Value" /d "Deny" /f >nul 2>&1 REM Configure app privacy settings for contacts reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessContacts" /t REG_DWORD /d 2 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessContacts_UserInControlOfTheseApps" /t REG_MULTI_SZ /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessContacts_ForceAllowTheseApps" /t REG_MULTI_SZ /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessContacts_ForceDenyTheseApps" /t REG_MULTI_SZ /f >nul 2>&1 REM Deny user notification listener access reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\userNotificationListener" /v "Value" /d "Deny" /t REG_SZ /f >nul 2>&1 REM Deny device access for specific device reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{52079E78-A92B-413F-B213-E8FE35712E72}" /t REG_SZ /v "Value" /d "Deny" /f >nul 2>&1 REM Configure app privacy settings for notifications reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessNotifications" /t REG_DWORD /d 2 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessNotifications_UserInControlOfTheseApps" /t REG_MULTI_SZ /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessNotifications_ForceAllowTheseApps" /t REG_MULTI_SZ /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessNotifications_ForceDenyTheseApps" /t REG_MULTI_SZ /f >nul 2>&1 REM Deny appointments access reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\appointments" /v "Value" /d "Deny" /t REG_SZ /f >nul 2>&1 REM Deny appointments access for specific device reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{D89823BA-7180-4B81-B50C-7E471E6121A3}" /t REG_SZ /v "Value" /d "Deny" /f >nul 2>&1 REM Configure app privacy settings for calendar reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessCalendar" /t REG_DWORD /d 2 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessCalendar_UserInControlOfTheseApps" /t REG_MULTI_SZ /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessCalendar_ForceAllowTheseApps" /t REG_MULTI_SZ /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessCalendar_ForceDenyTheseApps" /t REG_MULTI_SZ /f >nul 2>&1 REM Deny phone call history access reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\phoneCallHistory" /v "Value" /d "Deny" /t REG_SZ /f >nul 2>&1 REM Deny phone call history access for specific device reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{8BC668CF-7728-45BD-93F8-CF2B3B41D7AB}" /t REG_SZ /v "Value" /d "Deny" /f >nul 2>&1 REM Configure app privacy settings for call history reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessCallHistory" /t REG_DWORD /d 2 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessCallHistory_UserInControlOfTheseApps" /t REG_MULTI_SZ /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessCallHistory_ForceAllowTheseApps" /t REG_MULTI_SZ /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessCallHistory_ForceDenyTheseApps" /t REG_MULTI_SZ /f >nul 2>&1 REM Deny email access reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\email" /v "Value" /d "Deny" /t REG_SZ /f >nul 2>&1 REM Deny email access for specific device reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{9231CB4C-BF57-4AF3-8C55-FDA7BFCC04C5}" /t REG_SZ /v "Value" /d DENY /f >nul 2>&1 REM Configure app privacy settings for email reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessEmail" /t REG_DWORD /d 2 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessEmail_UserInControlOfTheseApps" /t REG_MULTI_SZ /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessEmail_ForceAllowTheseApps" /t REG_MULTI_SZ /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessEmail_ForceDenyTheseApps" /t REG_MULTI_SZ /f >nul 2>&1 REM Deny user data tasks access reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\userDataTasks" /v "Value" /d "Deny" /t REG_SZ /f >nul 2>&1 REM Configure app privacy settings for tasks reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessTasks" /t REG_DWORD /d 2 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessTasks_UserInControlOfTheseApps" /t REG_MULTI_SZ /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessTasks_ForceAllowTheseApps" /t REG_MULTI_SZ /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessTasks_ForceDenyTheseApps" /t REG_MULTI_SZ /f >nul 2>&1 REM Deny chat access reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\chat" /v "Value" /d "Deny" /t REG_SZ /f >nul 2>&1 REM Deny chat access for specific devices reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{992AFA70-6F47-4148-B3E9-3003349C1548}" /t REG_SZ /v "Value" /d "Deny" /f >nul 2>&1 reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{21157C1F-2651-4CC1-90CA-1F28B02263F6}" /t REG_SZ /v "Value" /d "Deny" /f >nul 2>&1 REM Configure app privacy settings for messaging reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessMessaging" /t REG_DWORD /d 2 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessMessaging_UserInControlOfTheseApps" /t REG_MULTI_SZ /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessMessaging_ForceAllowTheseApps" /t REG_MULTI_SZ /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessMessaging_ForceDenyTheseApps" /t REG_MULTI_SZ /f >nul 2>&1 REM Deny radios access reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\radios" /v "Value" /d "Deny" /t REG_SZ /f >nul 2>&1 REM Deny radios access for specific device reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{A8804298-2D5F-42E3-9531-9C8C39EB29CE}" /t REG_SZ /v "Value" /d DENY /f >nul 2>&1 REM Configure app privacy settings for radios reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessRadios" /t REG_DWORD /d 2 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessRadios_UserInControlOfTheseApps" /t REG_MULTI_SZ /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessRadios_ForceAllowTheseApps" /t REG_MULTI_SZ /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessRadios_ForceDenyTheseApps" /t REG_MULTI_SZ /f >nul 2>&1 REM Deny Bluetooth synchronization reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\bluetoothSync" /v "Value" /d "Deny" /t REG_SZ /f >nul 2>&1 REM Deny library access: documents, pictures, videos reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\documentsLibrary" /v "Value" /d "Deny" /t REG_SZ /f >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\picturesLibrary" /v "Value" /d "Deny" /t REG_SZ /f >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\videosLibrary" /v "Value" /d "Deny" /t REG_SZ /f >nul 2>&1 REM Deny broad file system access reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\broadFileSystemAccess" /v "Value" /d "Deny" /t REG_SZ /f >nul 2>&1 REM Disable voice activation reg add "HKCU\Software\Microsoft\Speech_OneCore\Settings\VoiceActivation\UserPreferenceForAllApps" /v "AgentActivationEnabled" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsActivateWithVoice" /t REG_DWORD /d 2 /f >nul 2>&1 reg add "HKCU\Software\Microsoft\Speech_OneCore\Settings\VoiceActivation\UserPreferenceForAllApps" /v "AgentActivationOnLockScreenEnabled" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsActivateWithVoiceAboveLock" /t REG_DWORD /d 2 /f >nul 2>&1 REM Disable location and sensors reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\LocationAndSensors" /v "DisableWindowsLocationProvider" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\LocationAndSensors" /v "DisableLocationScripting" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\LocationAndSensors" /v "DisableLocation" /d "1" /t REG_DWORD /f >nul 2>&1 REM Deny specific sensor access reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Sensor\Overrides\{BFA794E4-F964-4FDB-90F6-51056BFE4B44}" /v "SensorPermissionState" /d "0" /t REG_DWORD /f >nul 2>&1 reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{BFA794E4-F964-4FDB-90F6-51056BFE4B44}" /v "Value" /t REG_SZ /d "Deny" /f >nul 2>&1 REM Configure Windows Search settings reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v "AllowSearchToUseLocation" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v "DisableWebSearch" /t REG_DWORD /d 1 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v "ConnectedSearchUseWeb" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" /v "BingSearchEnabled" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v "AllowCortana" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\PolicyManager\default\Experience\AllowCortana" /v "value" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v "AllowCloudSearch" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v "AllowCortanaAboveLock" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Search" /v "CortanaConsent" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Search" /v "CanCortanaBeEnabled" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" /v "CortanaEnabled" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Search" /v "CortanaEnabled" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ShowCortanaButton" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" /v "CortanaInAmbientMode" /t REG_DWORD /d 0 /f >nul 2>&1 REM Disable search history reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Search" /v "HistoryViewEnabled" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Search" /v "DeviceHistoryEnabled" /t REG_DWORD /d 0 /f >nul 2>&1 REM Disable voice activation above lock screen reg add "HKCU\Software\Microsoft\Speech_OneCore\Preferences" /v "VoiceActivationOn" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\Speech_OneCore\Preferences" /v "VoiceActivationDefaultOn" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Search" /v "VoiceShortcut" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKCU\Software\Microsoft\Speech_OneCore\Preferences" /v "VoiceActivationEnableAboveLockscreen" /t REG_DWORD /d 0 /f >nul 2>&1 REM Disable Model Donwload For Speech Recognition reg add "HKCU\Software\Microsoft\Speech_OneCore\Preferences" /v "ModelDownloadAllowed" /t REG_DWORD /d 0 /f >nul 2>&1 REM Disable Voice During Out of Box Experience (OOBE) reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OOBE" /v "DisableVoice" /t REG_DWORD /d 1 /f >nul 2>&1 REM Disable indexing of encrypted stores or items reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v "AllowIndexingEncryptedStoresOrItems" /t REG_DWORD /d 0 /f >nul 2>&1 REM Disable automatic language detection for Windows Search reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v "AlwaysUseAutoLangDetection" /t REG_DWORD /d 0 /f >nul 2>&1 REM Disable personalized ads and ad tracking reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\AdvertisingInfo" /v "Enabled" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AdvertisingInfo" /v "DisabledByGroupPolicy" /t REG_DWORD /d "1" /f >nul 2>&1 REM Disable Windows content delivery for specific IDs reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-338393Enabled" /d "0" /t REG_DWORD /f >nul 2>&1 reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-353694Enabled" /d "0" /t REG_DWORD /f >nul 2>&1 reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-353696Enabled" /d "0" /t REG_DWORD /f >nul 2>&1 REM Disable Windows Spotlight and cloud content reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\CloudContent" /v "DisableSoftLanding" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\CloudContent" /v "DisableWindowsSpotlightFeatures" /t "REG_DWORD" /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\CloudContent" /v "DisableWindowsConsumerFeatures" /t "REG_DWORD" /d "1" /f >nul 2>&1 REM Disable biometric features and credential provider reg add "HKLM\SOFTWARE\Policies\Microsoft\Biometrics" /v "Enabled" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Biometrics\Credential Provider" /v "Enabled" /t "REG_DWORD" /d "0" /f >nul 2>&1 REM Disable Windows Biometric Service PowerShell -ExecutionPolicy Unrestricted -Command "$serviceName = 'WbioSrvc'; Write-Host "^""Disabling service: `"^""$serviceName`"^""."^""; <# -- 1. Skip if service does not exist #>; $service = Get-Service -Name $serviceName -ErrorAction SilentlyContinue; if(!$service) {; Write-Host "^""Service `"^""$serviceName`"^"" could not be not found, no need to disable it."^""; Exit 0; }; <# -- 2. Stop if running #>; if ($service.Status -eq [System.ServiceProcess.ServiceControllerStatus]::Running) {; Write-Host "^""`"^""$serviceName`"^"" is running, stopping it."^""; try {; Stop-Service -Name "^""$serviceName"^"" -Force -ErrorAction Stop; Write-Host "^""Stopped `"^""$serviceName`"^"" successfully."^""; } catch {; Write-Warning "^""Could not stop `"^""$serviceName`"^"", it will be stopped after reboot: $_"^""; }; } else {; Write-Host "^""`"^""$serviceName`"^"" is not running, no need to stop."^""; }; <# -- 3. Skip if already disabled #>; $startupType = $service.StartType <# Does not work before .NET 4.6.1 #>; if(!$startupType) {; $startupType = (Get-WmiObject -Query "^""Select StartMode From Win32_Service Where Name='$serviceName'"^"" -ErrorAction Ignore).StartMode; if(!$startupType) {; $startupType = (Get-WmiObject -Class Win32_Service -Property StartMode -Filter "^""Name='$serviceName'"^"" -ErrorAction Ignore).StartMode; }; }; if($startupType -eq 'Disabled') {; Write-Host "^""$serviceName is already disabled, no further action is needed"^""; }; <# -- 4. Disable service #>; try {; Set-Service -Name "^""$serviceName"^"" -StartupType Disabled -Confirm:$False -ErrorAction Stop; Write-Host "^""Disabled `"^""$serviceName`"^"" successfully."^""; } catch {; Write-Error "^""Could not disable `"^""$serviceName`"^"": $_"^""; }" >nul 2>&1 REM Disable Windows Insider Service PowerShell -ExecutionPolicy Unrestricted -Command "$serviceName = 'wisvc'; Write-Host "^""Disabling service: `"^""$serviceName`"^""."^""; <# -- 1. Skip if service does not exist #>; $service = Get-Service -Name $serviceName -ErrorAction SilentlyContinue; if(!$service) {; Write-Host "^""Service `"^""$serviceName`"^"" could not be not found, no need to disable it."^""; Exit 0; }; <# -- 2. Stop if running #>; if ($service.Status -eq [System.ServiceProcess.ServiceControllerStatus]::Running) {; Write-Host "^""`"^""$serviceName`"^"" is running, stopping it."^""; try {; Stop-Service -Name "^""$serviceName"^"" -Force -ErrorAction Stop; Write-Host "^""Stopped `"^""$serviceName`"^"" successfully."^""; } catch {; Write-Warning "^""Could not stop `"^""$serviceName`"^"", it will be stopped after reboot: $_"^""; }; } else {; Write-Host "^""`"^""$serviceName`"^"" is not running, no need to stop."^""; }; <# -- 3. Skip if already disabled #>; $startupType = $service.StartType <# Does not work before .NET 4.6.1 #>; if(!$startupType) {; $startupType = (Get-WmiObject -Query "^""Select StartMode From Win32_Service Where Name='$serviceName'"^"" -ErrorAction Ignore).StartMode; if(!$startupType) {; $startupType = (Get-WmiObject -Class Win32_Service -Property StartMode -Filter "^""Name='$serviceName'"^"" -ErrorAction Ignore).StartMode; }; }; if($startupType -eq 'Disabled') {; Write-Host "^""$serviceName is already disabled, no further action is needed"^""; }; <# -- 4. Disable service #>; try {; Set-Service -Name "^""$serviceName"^"" -StartupType Disabled -Confirm:$False -ErrorAction Stop; Write-Host "^""Disabled `"^""$serviceName`"^"" successfully."^""; } catch {; Write-Error "^""Could not disable `"^""$serviceName`"^"": $_"^""; }" >nul 2>&1 REM Disable Windows Insider Preview Builds Experimentation reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\PreviewBuilds" /v "EnableExperimentation" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\PreviewBuilds" /v "EnableConfigFlighting" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\PolicyManager\default\System\AllowExperimentation" /v "value" /t "REG_DWORD" /d 0 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\PreviewBuilds" /v "AllowBuildPreview" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\WindowsSelfHost\UI\Visibility" /v "HideInsiderPage" /t "REG_DWORD" /d "1" /f >nul 2>&1 REM Disable Windows Sync Settings reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisableSettingSync" /t REG_DWORD /d 2 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisableSettingSyncUserOverride" /t REG_DWORD /d 1 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisableSyncOnPaidNetwork" /t REG_DWORD /d 1 /f >nul 2>&1 reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\SettingSync" /v "SyncPolicy" /t REG_DWORD /d 5 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisableApplicationSettingSync" /t REG_DWORD /d 2 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisableApplicationSettingSyncUserOverride" /t REG_DWORD /d 1 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisableAppSyncSettingSync" /t REG_DWORD /d 2 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisableAppSyncSettingSyncUserOverride" /t REG_DWORD /d 1 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisableCredentialsSettingSync" /t REG_DWORD /d 2 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisableCredentialsSettingSyncUserOverride" /t REG_DWORD /d 1 /f >nul 2>&1 reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\SettingSync\Groups\Credentials" /v "Enabled" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisableDesktopThemeSettingSync" /t REG_DWORD /d 2 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisableDesktopThemeSettingSyncUserOverride" /t REG_DWORD /d 1 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisablePersonalizationSettingSync" /t REG_DWORD /d 2 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisablePersonalizationSettingSyncUserOverride" /t REG_DWORD /d 1 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisableStartLayoutSettingSync" /t REG_DWORD /d 2 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisableStartLayoutSettingSyncUserOverride" /t REG_DWORD /d 1 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisableWebBrowserSettingSync" /t REG_DWORD /d 2 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisableWebBrowserSettingSyncUserOverride" /t REG_DWORD /d 1 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisableWindowsSettingSync" /t REG_DWORD /d 2 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisableWindowsSettingSyncUserOverride" /t REG_DWORD /d 1 /f >nul 2>&1 reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\SettingSync\Groups\Language" /t REG_DWORD /v "Enabled" /d 0 /f >nul 2>&1 REM Disable Online Speech Recognition reg add "HKCU\Software\Microsoft\Speech_OneCore\Settings\OnlineSpeechPrivacy" /v "HasAccepted" /t "REG_DWORD" /d 0 /f >nul 2>&1 REM Disable Network Connectivity Status Indicator (NCSI) Active Probing reg add "HKLM\SYSTEM\CurrentControlSet\Services\NlaSvc\Parameters\Internet" /v "EnableActiveProbing" /t REG_DWORD /d "0" /f >nul 2>&1 REM Disable System Initiated User Feedback (SIUF) reg add "HKCU\Software\Microsoft\Personalization\Settings" /v "AcceptedPrivacyPolicy" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKCU\Software\Microsoft\Siuf\Rules" /v "NumberOfSIUFInPeriod" /t REG_DWORD /d 0 /f >nul 2>&1 reg delete "HKCU\Software\Microsoft\Siuf\Rules" /v "PeriodInNanoSeconds" /f >nul 2>&1 REM Disable Windows Feedback Notifications reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection" /v "DoNotShowFeedbackNotifications" /t REG_DWORD /d 1 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v "DoNotShowFeedbackNotifications" /t REG_DWORD /d 1 /f >nul 2>&1 REM Disable Input Personalization reg add "HKCU\Software\Policies\Microsoft\InputPersonalization" /v "RestrictImplicitInkCollection" /t REG_DWORD /d 1 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\InputPersonalization" /v "RestrictImplicitInkCollection" /t REG_DWORD /d 1 /f >nul 2>&1 reg add "HKCU\Software\Policies\Microsoft\InputPersonalization" /v "RestrictImplicitTextCollection" /t REG_DWORD /d 1 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\InputPersonalization" /v "RestrictImplicitTextCollection" /t REG_DWORD /d 1 /f >nul 2>&1 REM Disable Handwriting Error Reporting reg add "HKCU\Software\Policies\Microsoft\Windows\HandwritingErrorReports" /v "PreventHandwritingErrorReports" /t REG_DWORD /d 1 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\HandwritingErrorReports" /v "PreventHandwritingErrorReports" /t REG_DWORD /d 1 /f >nul 2>&1 reg add "HKCU\Software\Policies\Microsoft\Windows\TabletPC" /v "PreventHandwritingDataSharing" /t REG_DWORD /d 1 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\TabletPC" /v "PreventHandwritingDataSharing" /t REG_DWORD /d 1 /f >nul 2>&1 REM Disable Input Personalization reg add "HKLM\SOFTWARE\Policies\Microsoft\InputPersonalization" /v "AllowInputPersonalization" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKCU\Software\Microsoft\InputPersonalization\TrainedDataStore" /v "HarvestContacts" /t REG_DWORD /d 0 /f >nul 2>&1 REM Disable Location and Sensors reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\LocationAndSensors" /v "DisableSensors" /t REG_DWORD /d "1" /f >nul 2>&1 REM Disable Recently Used Programs in Start Menu reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "Start_TrackProgs" /d 0 /t REG_DWORD /f >nul 2>&1 REM Disable Application Compatibility Telemetry reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v "DisableInventory" /t REG_DWORD /d 1 /f >nul 2>&1 REM Disable Browser Language Detection reg add "HKCU\Control Panel\International\User Profile" /v "HttpAcceptLanguageOptOut" /t REG_DWORD /d 1 /f >nul 2>&1 REM Disable Untriggered Network Traffic for Maps reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Maps" /v "AllowUntriggeredNetworkTrafficOnSettingsPage" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Maps" /v "AutoDownloadAndUpdateMapData" /t REG_DWORD /d 0 /f >nul 2>&1 REM Disable User Account Recognition (UAR) and Game DVR reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v "DisableUAR" /t REG_DWORD /d 1 /f >nul 2>&1 reg add "HKCU\System\GameConfigStore" /v "GameDVR_Enabled" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\GameDVR" /v "AllowGameDVR" /t REG_DWORD /d 0 /f >nul 2>&1 REM Disable Windows Media Digital Rights Management (WMDRM) reg add "HKLM\SOFTWARE\Policies\Microsoft\WMDRM" /v "DisableOnline" /t REG_DWORD /d 1 /f >nul 2>&1 REM Disable Text Input Processor Capitalization reg add "HKLM\SOFTWARE\Microsoft\Input\TIPC" /v "Enabled" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKCU\Software\Microsoft\Input\TIPC" /v "Enabled" /t REG_DWORD /d 0 /f >nul 2>&1 REM Disable Windows Activity Feed reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\System" /v "EnableActivityFeed" /d "0" /t REG_DWORD /f >nul 2>&1 set "file=C:\Vitality\Info\datacol" if not exist "%file%" ( echo Vitality > "%file%" set /a "ran_optimizations+=1" ) cd C:\Vitality set "formatted_optimizations=%ran_optimizations%" if %formatted_optimizations% LSS 10 set "formatted_optimizations= %formatted_optimizations%" echo set "ran_optimizations=%ran_optimizations%"> v.bat :skippingdatacol if "%SecurityImp%"=="False" goto skippingsecurityimp echo Applying Security Improvements REM Disable SMBv1 Protoco dism /online /Disable-Feature /FeatureName:"SMB1Protocol" /NoRestart >nul 2>&1 dism /Online /Disable-Feature /FeatureName:"SMB1Protocol-Client" /NoRestart >nul 2>&1 dism /Online /Disable-Feature /FeatureName:"SMB1Protocol-Server" /NoRestart >nul 2>&1 REM Disable PowerShell v2 dism /online /Disable-Feature /FeatureName:"MicrosoftWindowsPowerShellV2Root" /NoRestart >nul 2>&1 dism /online /Disable-Feature /FeatureName:"MicrosoftWindowsPowerShellV2" /NoRestart >nul 2>&1 REM Configure SCHANNEL Registry Settings reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\KeyExchangeAlgorithms\Diffie-Hellman" /f /v ServerMinKeyBitLength /t REG_DWORD /d 0x00001000 >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\KeyExchangeAlgorithms\Diffie-Hellman" /f /v ClientMinKeyBitLength /t REG_DWORD /d 0x00001000 >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\KeyExchangeAlgorithms\Diffie-Hellman" /f /v Enabled /t REG_DWORD /d 0x00000001 >nul 2>&1 REM Disable Weak Ciphers reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\RC2 40/128" /f /v Enabled /t REG_DWORD /d 0x00000000 >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\RC2 56/128" /f /v Enabled /t REG_DWORD /d 0x00000000 >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\RC2 128/128" /f /v Enabled /t REG_DWORD /d 0x00000000 >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\RC4 128/128" /f /v Enabled /t REG_DWORD /d 0x00000000 >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\RC4 64/128" /f /v Enabled /t REG_DWORD /d 0x00000000 >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\RC4 56/128" /f /v Enabled /t REG_DWORD /d 0x00000000 >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\RC4 40/128" /f /v Enabled /t REG_DWORD /d 0x00000000 >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\DES 56" /f /v Enabled /t REG_DWORD /d 0x00000000 >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\DES 56/56" /f /v Enabled /t REG_DWORD /d 0x00000000 >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\Triple DES 168" /f /v Enabled /t REG_DWORD /d 0x00000000 >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\Triple DES 168/168" /f /v Enabled /t REG_DWORD /d 0x00000000 >nul 2>&1 REM Disable Weak Hashes reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Hashes\MD5" /f /v Enabled /t REG_DWORD /d 0x00000000 >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Hashes\SHA" /f /v Enabled /t REG_DWORD /d 0x00000000 >nul 2>&1 REM Disable NULL Cipher reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\NULL" /f /v Enabled /t REG_DWORD /d 0x00000000 >nul 2>&1 REM Configure SCHANNEL Protocol Settings reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL" /f /v AllowInsecureRenegoClients /t REG_DWORD /d 0x00000000 >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL" /f /v AllowInsecureRenegoServers /t REG_DWORD /d 0x00000000 >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL" /f /v DisableRenegoOnServer /t REG_DWORD /d 0x00000001 >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL" /f /v UseScsvForTls /t REG_DWORD /d 0x00000001 >nul 2>&1 REM Disable DTLS Protocols reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\DTLS 1.0\Server" /f /v Enabled /t REG_DWORD /d 0x00000000 >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\DTLS 1.0\Server" /f /v DisabledByDefault /t REG_DWORD /d 0x00000001 >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\DTLS 1.0\Client" /f /v Enabled /t REG_DWORD /d 0x00000000 >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\DTLS 1.0\Client" /f /v DisabledByDefault /t REG_DWORD /d 0x00000001 >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\DTLS 1.1\Server" /f /v Enabled /t REG_DWORD /d 0x00000000 >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\DTLS 1.1\Server" /f /v DisabledByDefault /t REG_DWORD /d 0x00000001 >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\DTLS 1.1\Client" /f /v Enabled /t REG_DWORD /d 0x00000000 >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\DTLS 1.1\Client" /f /v DisabledByDefault /t REG_DWORD /d 0x00000001 >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\DTLS 1.3\Server" /f /v Enabled /t REG_DWORD /d 0x00000001 >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\DTLS 1.3\Server" /f /v DisabledByDefault /t REG_DWORD /d 0x00000000 >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\DTLS 1.3\Client" /f /v Enabled /t REG_DWORD /d 0x00000001 >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\DTLS 1.3\Client" /f /v DisabledByDefault /t REG_DWORD /d 0x00000000 >nul 2>&1 REM Disable TLS 1.0 and 1.1 Protocols reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.0\Server" /f /v Enabled /t REG_DWORD /d 0x00000000 >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.0\Server" /f /v DisabledByDefault /t REG_DWORD /d 0x00000001 >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.0\Client" /f /v Enabled /t REG_DWORD /d 0x00000000 >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.0\Client" /f /v DisabledByDefault /t REG_DWORD /d 0x00000001 >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.1\Server" /f /v Enabled /t REG_DWORD /d 0x00000000 >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.1\Server" /f /v DisabledByDefault /t REG_DWORD /d 0x00000001 >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.1\Client" /f /v Enabled /t REG_DWORD /d 0x00000000 >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.1\Client" /f /v DisabledByDefault /t REG_DWORD /d 0x00000001 >nul 2>&1 REM Enable Strong Crypto for .NET Framework reg add "HKLM\SOFTWARE\Microsoft\.NETFramework\v2.0.50727" /f /v SchUseStrongCrypto /t REG_DWORD /d 0x00000001 >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\.NETFramework\v2.0.50727" /f /v SystemDefaultTlsVersions /t REG_DWORD /d 0x00000001 >nul 2>&1 reg add "HKLM\SOFTWARE\WOW6432Node\Microsoft\.NETFramework\v2.0.50727" /f /v SchUseStrongCrypto /t REG_DWORD /d 0x00000001 >nul 2>&1 reg add "HKLM\SOFTWARE\WOW6432Node\Microsoft\.NETFramework\v2.0.50727" /f /v SystemDefaultTlsVersions /t REG_DWORD /d 0x00000001 >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\.NETFramework\v3.0" /f /v SchUseStrongCrypto /t REG_DWORD /d 0x00000001 >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\.NETFramework\v3.0" /f /v SystemDefaultTlsVersions /t REG_DWORD /d 0x00000001 >nul 2>&1 reg add "HKLM\SOFTWARE\WOW6432Node\Microsoft\.NETFramework\v3.0" /f /v SchUseStrongCrypto /t REG_DWORD /d 0x00000001 >nul 2>&1 reg add "HKLM\SOFTWARE\WOW6432Node\Microsoft\.NETFramework\v3.0" /f /v SystemDefaultTlsVersions /t REG_DWORD /d 0x00000001 >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\.NETFramework\v4.0.30319" /f /v SchUseStrongCrypto /t REG_DWORD /d 0x00000001 >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\.NETFramework\v4.0.30319" /f /v SystemDefaultTlsVersions /t REG_DWORD /d 0x00000001 >nul 2>&1 reg add "HKLM\SOFTWARE\WOW6432Node\Microsoft\.NETFramework\v4.0.30319" /f /v SchUseStrongCrypto /t REG_DWORD /d 0x00000001 >nul 2>&1 reg add "HKLM\SOFTWARE\WOW6432Node\Microsoft\.NETFramework\v4.0.30319" /f /v SystemDefaultTlsVersions /t REG_DWORD /d 0x00000001 >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\.NETFramework\v2.0.50727" /f /v SchUseStrongCrypto /t REG_DWORD /d 0x00000001 >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\.NETFramework\v2.0.50727" /f /v SystemDefaultTlsVersions /t REG_DWORD /d 0x00000001 >nul 2>&1 reg add "HKLM\SOFTWARE\WOW6432Node\Microsoft\.NETFramework\v2.0.50727" /f /v SchUseStrongCrypto /t REG_DWORD /d 0x00000001 >nul 2>&1 reg add "HKLM\SOFTWARE\WOW6432Node\Microsoft\.NETFramework\v2.0.50727" /f /v SystemDefaultTlsVersions /t REG_DWORD /d 0x00000001 >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\.NETFramework\v3.0" /f /v SchUseStrongCrypto /t REG_DWORD /d 0x00000001 >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\.NETFramework\v3.0" /f /v SystemDefaultTlsVersions /t REG_DWORD /d 0x00000001 >nul 2>&1 reg add "HKLM\SOFTWARE\WOW6432Node\Microsoft\.NETFramework\v3.0" /f /v SchUseStrongCrypto /t REG_DWORD /d 0x00000001 >nul 2>&1 reg add "HKLM\SOFTWARE\WOW6432Node\Microsoft\.NETFramework\v3.0" /f /v SystemDefaultTlsVersions /t REG_DWORD /d 0x00000001 >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\.NETFramework\v4.0.30319" /f /v SchUseStrongCrypto /t REG_DWORD /d 0x00000001 >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\.NETFramework\v4.0.30319" /f /v SystemDefaultTlsVersions /t REG_DWORD /d 0x00000001 >nul 2>&1 reg add "HKLM\SOFTWARE\WOW6432Node\Microsoft\.NETFramework\v4.0.30319" /f /v SchUseStrongCrypto /t REG_DWORD /d 0x00000001 >nul 2>&1 reg add "HKLM\SOFTWARE\WOW6432Node\Microsoft\.NETFramework\v4.0.30319" /f /v SystemDefaultTlsVersions /t REG_DWORD /d 0x00000001 >nul 2>&1 REM Disable SSL 2.0 Protocol reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 2.0\Server" /f /v Enabled /t REG_DWORD /d 0x00000000 >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 2.0\Server" /f /v DisabledByDefault /t REG_DWORD /d 0x00000001 >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 2.0\Client" /f /v Enabled /t REG_DWORD /d 0x00000000 >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 2.0\Client" /f /v DisabledByDefault /t REG_DWORD /d 0x00000001 >nul 2>&1 REM Disable SSL 3.0 Protocol reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 3.0\Server" /f /v Enabled /t REG_DWORD /d 0x00000000 >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 3.0\Server" /f /v DisabledByDefault /t REG_DWORD /d 0x00000001 >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 3.0\Client" /f /v Enabled /t REG_DWORD /d 0x00000000 >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 3.0\Client" /f /v DisabledByDefault /t REG_DWORD /d 0x00000001 >nul 2>&1 REM Disable LanmanServer AutoShareWks reg add "HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" /v "AutoShareWks" /t REG_DWORD /d 0 /f >nul 2>&1 REM Disable Data Execution Prevention in Explorer reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Explorer" /v "NoDataExecutionPrevention" /t REG_DWORD /d 0 /f >nul 2>&1 REM Disable Hypervisor Debugging in System reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\System" /v "DisableHHDEP" /t REG_DWORD /d 0 /f >nul 2>&1 REM Disable Remote Assistance reg add "HKLM\SYSTEM\CurrentControlSet\Control\Remote Assistance" /v "fAllowToGetHelp" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Remote Assistance" /v "fAllowFullControl" /t REG_DWORD /d 0 /f >nul 2>&1 REM Disable Lock Screen Camera reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Personalization" /v "NoLockScreenCamera" /t REG_DWORD /d 1 /f >nul 2>&1 REM Disable LM Hash Storage reg add "HKLM\SYSTEM\CurrentControlSet\Control\Lsa" /v "NoLMHash" /t REG_DWORD /d 1 /f >nul 2>&1 REM Disable AlwaysInstallElevated reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Installer" /v "AlwaysInstallElevated" /t REG_DWORD /d 0 /f >nul 2>&1 REM Disable Basic Authentication in WinRM reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WinRM\Client" /v "AllowBasic" /t REG_DWORD /d 0 /f >nul 2>&1 REM Restrict Anonymous Access reg add "HKLM\SYSTEM\CurrentControlSet\Control\LSA" /v "RestrictAnonymous" /t REG_DWORD /d 1 /f >nul 2>&1 REM Set LMCompatibilityLevel reg add "HKLM\SYSTEM\CurrentControlSet\Control\Lsa" /v "LmCompatibilityLevel" /t REG_DWORD /d 5 /f >nul 2>&1 REM Disable Exception Chain Validation reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\kernel" /v "DisableExceptionChainValidation" /t REG_DWORD /d 0 /f >nul 2>&1 REM Restrict Anonymous SAM Connections reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\kernel" /v "RestrictAnonymousSAM" /t REG_DWORD /d 1 /f >nul 2>&1 REM Restrict Null Session Access reg add "HKLM\SYSTEM\CurrentControlSet\Services\LanManServer\Parameters" /v "RestrictNullSessAccess" /t REG_DWORD /d 1 /f >nul 2>&1 REM Disable WCN UI reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WCN\UI" /v "DisableWcnUi" /t REG_DWORD /d 1 /f >nul 2>&1 REM Disable WCN Registrars reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WCN\Registrars" /v "DisableFlashConfigRegistrar" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WCN\Registrars" /v "DisableInBand802DOT11Registrar" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WCN\Registrars" /v "DisableUPnPRegistrar" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WCN\Registrars" /v "DisableWPDRegistrar" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WCN\Registrars" /v "EnableRegistrars" /t REG_DWORD /d 0 /f >nul 2>&1 set "file=C:\Vitality\Info\securityimpr" if not exist "%file%" ( echo Vitality > "%file%" set /a "ran_optimizations+=1" ) cd C:\Vitality set "formatted_optimizations=%ran_optimizations%" if %formatted_optimizations% LSS 10 set "formatted_optimizations= %formatted_optimizations%" echo set "ran_optimizations=%ran_optimizations%"> v.bat :skippingsecurityimp if "%ConfigurePro%"=="False" goto skippingconfigurepro echo Applying Programs Configuration REM Disable Visual Studio Telemetry reg add "HKCU\Software\Microsoft\VisualStudio\Telemetry" /v "TurnOffSwitch" /t REG_DWORD /d 1 /f >nul 2>&1 REM Disable Visual Studio Feedback reg add "HKLM\SOFTWARE\Policies\Microsoft\VisualStudio\Feedback" /v "DisableFeedbackDialog" /t REG_DWORD /d 1 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\VisualStudio\Feedback" /v "DisableEmailInput" /t REG_DWORD /d 1 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\VisualStudio\Feedback" /v "DisableScreenshotCapture" /t REG_DWORD /d 1 /f >nul 2>&1 REM Disable NVIDIA Telemetry PowerShell -ExecutionPolicy Unrestricted -Command "$serviceName = 'VSStandardCollectorService150'; Write-Host "^""Disabling service: `"^""$serviceName`"^""."^""; <# -- 1. Skip if service does not exist #>; $service = Get-Service -Name $serviceName -ErrorAction SilentlyContinue; if(!$service) {; Write-Host "^""Service `"^""$serviceName`"^"" could not be not found, no need to disable it."^""; Exit 0; }; <# -- 2. Stop if running #>; if ($service.Status -eq [System.ServiceProcess.ServiceControllerStatus]::Running) {; Write-Host "^""`"^""$serviceName`"^"" is running, stopping it."^""; try {; Stop-Service -Name "^""$serviceName"^"" -Force -ErrorAction Stop; Write-Host "^""Stopped `"^""$serviceName`"^"" successfully."^""; } catch {; Write-Warning "^""Could not stop `"^""$serviceName`"^"", it will be stopped after reboot: $_"^""; }; } else {; Write-Host "^""`"^""$serviceName`"^"" is not running, no need to stop."^""; }; <# -- 3. Skip if already disabled #>; $startupType = $service.StartType <# Does not work before .NET 4.6.1 #>; if(!$startupType) {; $startupType = (Get-WmiObject -Query "^""Select StartMode From Win32_Service Where Name='$serviceName'"^"" -ErrorAction Ignore).StartMode; if(!$startupType) {; $startupType = (Get-WmiObject -Class Win32_Service -Property StartMode -Filter "^""Name='$serviceName'"^"" -ErrorAction Ignore).StartMode; }; }; if($startupType -eq 'Disabled') {; Write-Host "^""$serviceName is already disabled, no further action is needed"^""; }; <# -- 4. Disable service #>; try {; Set-Service -Name "^""$serviceName"^"" -StartupType Disabled -Confirm:$False -ErrorAction Stop; Write-Host "^""Disabled `"^""$serviceName`"^"" successfully."^""; } catch {; Write-Error "^""Could not disable `"^""$serviceName`"^"": $_"^""; }" >nul 2>&1 if %PROCESSOR_ARCHITECTURE%==x86 ( reg add "HKLM\SOFTWARE\Microsoft\VSCommon\14.0\SQM" /v "OptIn" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\VSCommon\15.0\SQM" /v "OptIn" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\VSCommon\16.0\SQM" /v "OptIn" /t REG_DWORD /d 0 /f >nul 2>&1 ) else ( reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\VSCommon\14.0\SQM" /v "OptIn" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\VSCommon\15.0\SQM" /v "OptIn" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\VSCommon\16.0\SQM" /v "OptIn" /t REG_DWORD /d 0 /f >nul 2>&1 ) >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\VisualStudio\SQM" /v "OptIn" /t REG_DWORD /d 0 /f >nul 2>&1 if exist "%ProgramFiles%\NVIDIA Corporation\Installer2\InstallerCore\NVI2.DLL" ( rundll32 "%PROGRAMFILES%\NVIDIA Corporation\Installer2\InstallerCore\NVI2.DLL",UninstallPackage NvTelemetryContainer >nul 2>&1 rundll32 "%PROGRAMFILES%\NVIDIA Corporation\Installer2\InstallerCore\NVI2.DLL",UninstallPackage NvTelemetry >nul 2>&1 ) >nul 2>&1 del /s %SystemRoot%\System32\DriverStore\FileRepository\NvTelemetry*.dll >nul 2>&1 rmdir /s /q "%ProgramFiles(x86)%\NVIDIA Corporation\NvTelemetry" >nul 2>&1 rmdir /s /q "%ProgramFiles%\NVIDIA Corporation\NvTelemetry" >nul 2>&1 reg add "HKLM\SOFTWARE\NVIDIA Corporation\NvControlPanel2\Client" /v "OptInOrOutPreference" /t REG_DWORD /d 0 /f >nul 2>&1 REM Disable Office Telemetry and Logging reg add "HKLM\SOFTWARE\NVIDIA Corporation\Global\FTS" /v "EnableRID44231" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SOFTWARE\NVIDIA Corporation\Global\FTS" /v "EnableRID64640" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SOFTWARE\NVIDIA Corporation\Global\FTS" /v "EnableRID66610" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Services\nvlddmkm\Global\Startup" /v "SendTelemetryData" /t REG_DWORD /d 0 /f >nul 2>&1 PowerShell -ExecutionPolicy Unrestricted -Command "$serviceName = 'NvTelemetryContainer'; Write-Host "^""Disabling service: `"^""$serviceName`"^""."^""; <# -- 1. Skip if service does not exist #>; $service = Get-Service -Name $serviceName -ErrorAction SilentlyContinue; if(!$service) {; Write-Host "^""Service `"^""$serviceName`"^"" could not be not found, no need to disable it."^""; Exit 0; }; <# -- 2. Stop if running #>; if ($service.Status -eq [System.ServiceProcess.ServiceControllerStatus]::Running) {; Write-Host "^""`"^""$serviceName`"^"" is running, stopping it."^""; try {; Stop-Service -Name "^""$serviceName"^"" -Force -ErrorAction Stop; Write-Host "^""Stopped `"^""$serviceName`"^"" successfully."^""; } catch {; Write-Warning "^""Could not stop `"^""$serviceName`"^"", it will be stopped after reboot: $_"^""; }; } else {; Write-Host "^""`"^""$serviceName`"^"" is not running, no need to stop."^""; }; <# -- 3. Skip if already disabled #>; $startupType = $service.StartType <# Does not work before .NET 4.6.1 #>; if(!$startupType) {; $startupType = (Get-WmiObject -Query "^""Select StartMode From Win32_Service Where Name='$serviceName'"^"" -ErrorAction Ignore).StartMode; if(!$startupType) {; $startupType = (Get-WmiObject -Class Win32_Service -Property StartMode -Filter "^""Name='$serviceName'"^"" -ErrorAction Ignore).StartMode; }; }; if($startupType -eq 'Disabled') {; Write-Host "^""$serviceName is already disabled, no further action is needed"^""; }; <# -- 4. Disable service #>; try {; Set-Service -Name "^""$serviceName"^"" -StartupType Disabled -Confirm:$False -ErrorAction Stop; Write-Host "^""Disabled `"^""$serviceName`"^"" successfully."^""; } catch {; Write-Error "^""Could not disable `"^""$serviceName`"^"": $_"^""; }" >nul 2>&1 schtasks /change /TN NvTmMon_{B2FE1952-0186-46C3-BAEC-A80AA35AC5B8} /DISABLE >nul 2>&1 schtasks /change /TN NvTmRep_{B2FE1952-0186-46C3-BAEC-A80AA35AC5B8} /DISABLE >nul 2>&1 schtasks /change /TN NvTmRepOnLogon_{B2FE1952-0186-46C3-BAEC-A80AA35AC5B8} /DISABLE >nul 2>&1 reg add "HKCU\Software\Microsoft\Office\15.0\Outlook\Options\Mail" /v "EnableLogging" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKCU\Software\Microsoft\Office\16.0\Outlook\Options\Mail" /v "EnableLogging" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKCU\Software\Microsoft\Office\15.0\Outlook\Options\Calendar" /v "EnableCalendarLogging" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKCU\Software\Microsoft\Office\16.0\Outlook\Options\Calendar" /v "EnableCalendarLogging" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKCU\Software\Microsoft\Office\15.0\Word\Options" /v "EnableLogging" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKCU\Software\Microsoft\Office\16.0\Word\Options" /v "EnableLogging" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKCU\Software\Policies\Microsoft\Office\15.0\OSM" /v "EnableLogging" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKCU\Software\Policies\Microsoft\Office\16.0\OSM" /v "EnableLogging" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKCU\Software\Policies\Microsoft\Office\15.0\OSM" /v "EnableUpload" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKCU\Software\Policies\Microsoft\Office\16.0\OSM" /v "EnableUpload" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKCU\Software\Microsoft\Office\Common\ClientTelemetry" /v "DisableTelemetry" /t REG_DWORD /d 1 /f >nul 2>&1 reg add "HKCU\Software\Microsoft\Office\16.0\Common\ClientTelemetry" /v "DisableTelemetry" /t REG_DWORD /d 1 /f >nul 2>&1 reg add "HKCU\Software\Microsoft\Office\Common\ClientTelemetry" /v "VerboseLogging" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKCU\Software\Microsoft\Office\16.0\Common\ClientTelemetry" /v "VerboseLogging" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKCU\Software\Microsoft\Office\15.0\Common" /v "QMEnable" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKCU\Software\Microsoft\Office\16.0\Common" /v "QMEnable" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKCU\Software\Microsoft\Office\15.0\Common\Feedback" /v "Enabled" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKCU\Software\Microsoft\Office\16.0\Common\Feedback" /v "Enabled" /t REG_DWORD /d 0 /f >nul 2>&1 schtasks /change /TN "Microsoft\Office\OfficeTelemetryAgentFallBack" /DISABLE >nul 2>&1 schtasks /change /TN "Microsoft\Office\OfficeTelemetryAgentFallBack2016" /DISABLE >nul 2>&1 schtasks /change /TN "Microsoft\Office\OfficeTelemetryAgentLogOn" /DISABLE >nul 2>&1 schtasks /change /TN "Microsoft\Office\OfficeTelemetryAgentLogOn2016" /DISABLE >nul 2>&1 schtasks /change /TN "Microsoft\Office\Office 15 Subscription Heartbeat" /DISABLE >nul 2>&1 schtasks /change /TN "Microsoft\Office\Office 16 Subscription Heartbeat" /DISABLE >nul 2>&1 REM Configure Microsoft Edge and Internet Explorer Privacy reg add "HKCU\Software\Policies\Microsoft\MicrosoftEdge\Main" /v "PreventLiveTileDataCollection" /t REG_DWORD /d 1 /f >nul 2>&1 reg add "HKCU\Software\Policies\Microsoft\Windows\EdgeUI" /v "DisableMFUTracking" /t REG_DWORD /d 1 /f >nul 2>&1 reg add "HKCU\Software\Policies\Microsoft\Windows\EdgeUI" /v "DisableRecentApps" /t REG_DWORD /d 1 /f >nul 2>&1 reg add "HKCU\Software\Policies\Microsoft\Windows\EdgeUI" /v "TurnOffBackstack" /t REG_DWORD /d 1 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\MicrosoftEdge\SearchScopes" /v "ShowSearchSuggestionsGlobal" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "MetricsReportingEnabled" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "SendSiteInfoToImproveServices" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\EdgeUpdate" /v "DoNotUpdateToEdgeWithChromium" /t REG_DWORD /d 1 /f >nul 2>&1 reg add "HKCU\Software\Policies\Microsoft\Internet Explorer\Geolocation" /v "PolicyDisableGeolocation" /t REG_DWORD /d 1 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Internet Explorer\Safety\PrivacIE" /v "DisableLogging" /t REG_DWORD /d 1 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Internet Explorer\SQM" /v "DisableCustomerImprovementProgram" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\Internet Settings" /v "CallLegacyWCMPolicies" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\Internet Settings" /v "EnableSSL3Fallback" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\Internet Settings" /v "PreventIgnoreCertErrors" /t REG_DWORD /d 1 /f >nul 2>&1 REM Deny specific permissions to the SwReporter folder in Google Chrome user data. icacls "%localappdata%\Google\Chrome\User Data\SwReporter" /inheritance:r /deny "*S-1-1-0:(OI)(CI)(F)" "*S-1-5-7:(OI)(CI)(F)" >nul 2>&1 REM Remove access to the SwReporter folder for the current user. cacls "%localappdata%\Google\Chrome\User Data\SwReporter" /e /c /d %username% >nul 2>&1 REM Configure Windows Explorer policy to disallow running applications. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "DisallowRun" /t REG_DWORD /d 1 /f >nul 2>&1 REM Add a specific application to the disallowed list. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun" /v "1" /t REG_SZ /d "software_reporter_tool.exe" /f >nul 2>&1 REM Disable various Google Chrome metrics and reporting settings. reg add "HKLM\SOFTWARE\Policies\Google\Chrome" /v "MetricsReportingEnabled" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Google\Chrome" /v "ChromeCleanupReportingEnabled" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Google\Chrome" /v "ChromeCleanupEnabled" /t REG_DWORD /d 0 /f >nul 2>&1 REM Disable telemetry and default browser agent in Mozilla Firefox. reg add "HKLM\SOFTWARE\Policies\Mozilla\Firefox" /v "DisableTelemetry" /t REG_DWORD /d 1 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Mozilla\Firefox" /v "DisableDefaultBrowserAgent" /t REG_DWORD /d 1 /f >nul 2>&1 REM Disable scheduled tasks related to Firefox default browser agent. schtasks.exe /change /disable /tn "\Mozilla\Firefox Default Browser Agent 308046B0AF4A39CB" >nul 2>&1 schtasks.exe /change /disable /tn "\Mozilla\Firefox Default Browser Agent D2CEEC440E2074BD" >nul 2>&1 REM Disable Windows Media Player usage tracking and metadata retrieval. reg add "HKCU\Software\Microsoft\MediaPlayer\Preferences" /v "UsageTracking" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKCU\Software\Policies\Microsoft\WindowsMediaPlayer" /v "PreventCDDVDMetadataRetrieval" /t REG_DWORD /d 1 /f >nul 2>&1 reg add "HKCU\Software\Policies\Microsoft\WindowsMediaPlayer" /v "PreventMusicFileMetadataRetrieval" /t REG_DWORD /d 1 /f >nul 2>&1 reg add "HKCU\Software\Policies\Microsoft\WindowsMediaPlayer" /v "PreventRadioPresetsRetrieval" /t REG_DWORD /d 1 /f >nul 2>&1 REM Disable Windows Media DRM online features. reg add "HKLM\SOFTWARE\Policies\Microsoft\WMDRM" /v "DisableOnline" /t REG_DWORD /d 1 /f >nul 2>&1 REM Disable Windows Media Player Network Sharing Service. PowerShell -ExecutionPolicy Unrestricted -Command "$serviceName = 'WMPNetworkSvc'; Write-Host "^""Disabling service: `"^""$serviceName`"^""."^""; <# -- 1. Skip if service does not exist #>; $service = Get-Service -Name $serviceName -ErrorAction SilentlyContinue; if(!$service) {; Write-Host "^""Service `"^""$serviceName`"^"" could not be not found, no need to disable it."^""; Exit 0; }; <# -- 2. Stop if running #>; if ($service.Status -eq [System.ServiceProcess.ServiceControllerStatus]::Running) {; Write-Host "^""`"^""$serviceName`"^"" is running, stopping it."^""; try {; Stop-Service -Name "^""$serviceName"^"" -Force -ErrorAction Stop; Write-Host "^""Stopped `"^""$serviceName`"^"" successfully."^""; } catch {; Write-Warning "^""Could not stop `"^""$serviceName`"^"", it will be stopped after reboot: $_"^""; }; } else {; Write-Host "^""`"^""$serviceName`"^"" is not running, no need to stop."^""; }; <# -- 3. Skip if already disabled #>; $startupType = $service.StartType <# Does not work before .NET 4.6.1 #>; if(!$startupType) {; $startupType = (Get-WmiObject -Query "^""Select StartMode From Win32_Service Where Name='$serviceName'"^"" -ErrorAction Ignore).StartMode; if(!$startupType) {; $startupType = (Get-WmiObject -Class Win32_Service -Property StartMode -Filter "^""Name='$serviceName'"^"" -ErrorAction Ignore).StartMode; }; }; if($startupType -eq 'Disabled') {; Write-Host "^""$serviceName is already disabled, no further action is needed"^""; }; <# -- 4. Disable service #>; try {; Set-Service -Name "^""$serviceName"^"" -StartupType Disabled -Confirm:$False -ErrorAction Stop; Write-Host "^""Disabled `"^""$serviceName`"^"" successfully."^""; } catch {; Write-Error "^""Could not disable `"^""$serviceName`"^"": $_"^""; }" >nul 2>&1 REM Disable scheduled tasks related to Google Update. schtasks /change /disable /tn "GoogleUpdateTaskMachineCore" >nul 2>&1 schtasks /change /disable /tn "GoogleUpdateTaskMachineUA" >nul 2>&1 REM Disable Google Update services using PowerShell PowerShell -ExecutionPolicy Unrestricted -Command "$serviceName = 'gupdate'; Write-Host "^""Disabling service: `"^""$serviceName`"^""."^""; <# -- 1. Skip if service does not exist #>; $service = Get-Service -Name $serviceName -ErrorAction SilentlyContinue; if(!$service) {; Write-Host "^""Service `"^""$serviceName`"^"" could not be not found, no need to disable it."^""; Exit 0; }; <# -- 2. Stop if running #>; if ($service.Status -eq [System.ServiceProcess.ServiceControllerStatus]::Running) {; Write-Host "^""`"^""$serviceName`"^"" is running, stopping it."^""; try {; Stop-Service -Name "^""$serviceName"^"" -Force -ErrorAction Stop; Write-Host "^""Stopped `"^""$serviceName`"^"" successfully."^""; } catch {; Write-Warning "^""Could not stop `"^""$serviceName`"^"", it will be stopped after reboot: $_"^""; }; } else {; Write-Host "^""`"^""$serviceName`"^"" is not running, no need to stop."^""; }; <# -- 3. Skip if already disabled #>; $startupType = $service.StartType <# Does not work before .NET 4.6.1 #>; if(!$startupType) {; $startupType = (Get-WmiObject -Query "^""Select StartMode From Win32_Service Where Name='$serviceName'"^"" -ErrorAction Ignore).StartMode; if(!$startupType) {; $startupType = (Get-WmiObject -Class Win32_Service -Property StartMode -Filter "^""Name='$serviceName'"^"" -ErrorAction Ignore).StartMode; }; }; if($startupType -eq 'Disabled') {; Write-Host "^""$serviceName is already disabled, no further action is needed"^""; }; <# -- 4. Disable service #>; try {; Set-Service -Name "^""$serviceName"^"" -StartupType Disabled -Confirm:$False -ErrorAction Stop; Write-Host "^""Disabled `"^""$serviceName`"^"" successfully."^""; } catch {; Write-Error "^""Could not disable `"^""$serviceName`"^"": $_"^""; }" >nul 2>&1 PowerShell -ExecutionPolicy Unrestricted -Command "$serviceName = 'gupdatem'; Write-Host "^""Disabling service: `"^""$serviceName`"^""."^""; <# -- 1. Skip if service does not exist #>; $service = Get-Service -Name $serviceName -ErrorAction SilentlyContinue; if(!$service) {; Write-Host "^""Service `"^""$serviceName`"^"" could not be not found, no need to disable it."^""; Exit 0; }; <# -- 2. Stop if running #>; if ($service.Status -eq [System.ServiceProcess.ServiceControllerStatus]::Running) {; Write-Host "^""`"^""$serviceName`"^"" is running, stopping it."^""; try {; Stop-Service -Name "^""$serviceName"^"" -Force -ErrorAction Stop; Write-Host "^""Stopped `"^""$serviceName`"^"" successfully."^""; } catch {; Write-Warning "^""Could not stop `"^""$serviceName`"^"", it will be stopped after reboot: $_"^""; }; } else {; Write-Host "^""`"^""$serviceName`"^"" is not running, no need to stop."^""; }; <# -- 3. Skip if already disabled #>; $startupType = $service.StartType <# Does not work before .NET 4.6.1 #>; if(!$startupType) {; $startupType = (Get-WmiObject -Query "^""Select StartMode From Win32_Service Where Name='$serviceName'"^"" -ErrorAction Ignore).StartMode; if(!$startupType) {; $startupType = (Get-WmiObject -Class Win32_Service -Property StartMode -Filter "^""Name='$serviceName'"^"" -ErrorAction Ignore).StartMode; }; }; if($startupType -eq 'Disabled') {; Write-Host "^""$serviceName is already disabled, no further action is needed"^""; }; <# -- 4. Disable service #>; try {; Set-Service -Name "^""$serviceName"^"" -StartupType Disabled -Confirm:$False -ErrorAction Stop; Write-Host "^""Disabled `"^""$serviceName`"^"" successfully."^""; } catch {; Write-Error "^""Could not disable `"^""$serviceName`"^"": $_"^""; }" >nul 2>&1 REM Disable Adobe-related services using PowerShell. PowerShell -ExecutionPolicy Unrestricted -Command "$serviceName = 'AdobeARMservice'; Write-Host "^""Disabling service: `"^""$serviceName`"^""."^""; <# -- 1. Skip if service does not exist #>; $service = Get-Service -Name $serviceName -ErrorAction SilentlyContinue; if(!$service) {; Write-Host "^""Service `"^""$serviceName`"^"" could not be not found, no need to disable it."^""; Exit 0; }; <# -- 2. Stop if running #>; if ($service.Status -eq [System.ServiceProcess.ServiceControllerStatus]::Running) {; Write-Host "^""`"^""$serviceName`"^"" is running, stopping it."^""; try {; Stop-Service -Name "^""$serviceName"^"" -Force -ErrorAction Stop; Write-Host "^""Stopped `"^""$serviceName`"^"" successfully."^""; } catch {; Write-Warning "^""Could not stop `"^""$serviceName`"^"", it will be stopped after reboot: $_"^""; }; } else {; Write-Host "^""`"^""$serviceName`"^"" is not running, no need to stop."^""; }; <# -- 3. Skip if already disabled #>; $startupType = $service.StartType <# Does not work before .NET 4.6.1 #>; if(!$startupType) {; $startupType = (Get-WmiObject -Query "^""Select StartMode From Win32_Service Where Name='$serviceName'"^"" -ErrorAction Ignore).StartMode; if(!$startupType) {; $startupType = (Get-WmiObject -Class Win32_Service -Property StartMode -Filter "^""Name='$serviceName'"^"" -ErrorAction Ignore).StartMode; }; }; if($startupType -eq 'Disabled') {; Write-Host "^""$serviceName is already disabled, no further action is needed"^""; }; <# -- 4. Disable service #>; try {; Set-Service -Name "^""$serviceName"^"" -StartupType Disabled -Confirm:$False -ErrorAction Stop; Write-Host "^""Disabled `"^""$serviceName`"^"" successfully."^""; } catch {; Write-Error "^""Could not disable `"^""$serviceName`"^"": $_"^""; }" >nul 2>&1 PowerShell -ExecutionPolicy Unrestricted -Command "$serviceName = 'adobeupdateservice'; Write-Host "^""Disabling service: `"^""$serviceName`"^""."^""; <# -- 1. Skip if service does not exist #>; $service = Get-Service -Name $serviceName -ErrorAction SilentlyContinue; if(!$service) {; Write-Host "^""Service `"^""$serviceName`"^"" could not be not found, no need to disable it."^""; Exit 0; }; <# -- 2. Stop if running #>; if ($service.Status -eq [System.ServiceProcess.ServiceControllerStatus]::Running) {; Write-Host "^""`"^""$serviceName`"^"" is running, stopping it."^""; try {; Stop-Service -Name "^""$serviceName"^"" -Force -ErrorAction Stop; Write-Host "^""Stopped `"^""$serviceName`"^"" successfully."^""; } catch {; Write-Warning "^""Could not stop `"^""$serviceName`"^"", it will be stopped after reboot: $_"^""; }; } else {; Write-Host "^""`"^""$serviceName`"^"" is not running, no need to stop."^""; }; <# -- 3. Skip if already disabled #>; $startupType = $service.StartType <# Does not work before .NET 4.6.1 #>; if(!$startupType) {; $startupType = (Get-WmiObject -Query "^""Select StartMode From Win32_Service Where Name='$serviceName'"^"" -ErrorAction Ignore).StartMode; if(!$startupType) {; $startupType = (Get-WmiObject -Class Win32_Service -Property StartMode -Filter "^""Name='$serviceName'"^"" -ErrorAction Ignore).StartMode; }; }; if($startupType -eq 'Disabled') {; Write-Host "^""$serviceName is already disabled, no further action is needed"^""; }; <# -- 4. Disable service #>; try {; Set-Service -Name "^""$serviceName"^"" -StartupType Disabled -Confirm:$False -ErrorAction Stop; Write-Host "^""Disabled `"^""$serviceName`"^"" successfully."^""; } catch {; Write-Error "^""Could not disable `"^""$serviceName`"^"": $_"^""; }" >nul 2>&1 PowerShell -ExecutionPolicy Unrestricted -Command "$serviceName = 'adobeflashplayerupdatesvc'; Write-Host "^""Disabling service: `"^""$serviceName`"^""."^""; <# -- 1. Skip if service does not exist #>; $service = Get-Service -Name $serviceName -ErrorAction SilentlyContinue; if(!$service) {; Write-Host "^""Service `"^""$serviceName`"^"" could not be not found, no need to disable it."^""; Exit 0; }; <# -- 2. Stop if running #>; if ($service.Status -eq [System.ServiceProcess.ServiceControllerStatus]::Running) {; Write-Host "^""`"^""$serviceName`"^"" is running, stopping it."^""; try {; Stop-Service -Name "^""$serviceName"^"" -Force -ErrorAction Stop; Write-Host "^""Stopped `"^""$serviceName`"^"" successfully."^""; } catch {; Write-Warning "^""Could not stop `"^""$serviceName`"^"", it will be stopped after reboot: $_"^""; }; } else {; Write-Host "^""`"^""$serviceName`"^"" is not running, no need to stop."^""; }; <# -- 3. Skip if already disabled #>; $startupType = $service.StartType <# Does not work before .NET 4.6.1 #>; if(!$startupType) {; $startupType = (Get-WmiObject -Query "^""Select StartMode From Win32_Service Where Name='$serviceName'"^"" -ErrorAction Ignore).StartMode; if(!$startupType) {; $startupType = (Get-WmiObject -Class Win32_Service -Property StartMode -Filter "^""Name='$serviceName'"^"" -ErrorAction Ignore).StartMode; }; }; if($startupType -eq 'Disabled') {; Write-Host "^""$serviceName is already disabled, no further action is needed"^""; }; <# -- 4. Disable service #>; try {; Set-Service -Name "^""$serviceName"^"" -StartupType Disabled -Confirm:$False -ErrorAction Stop; Write-Host "^""Disabled `"^""$serviceName`"^"" successfully."^""; } catch {; Write-Error "^""Could not disable `"^""$serviceName`"^"": $_"^""; }" >nul 2>&1 REM Disable scheduled tasks related to Adobe updates. schtasks /change /tn "Adobe Acrobat Update Task" /disable >nul 2>&1 schtasks /change /tn "Adobe Flash Player Updater" /disable >nul 2>&1 REM Disable Razer Game Scanner Service. PowerShell -ExecutionPolicy Unrestricted -Command "$serviceName = 'Razer Game Scanner Service'; Write-Host "^""Disabling service: `"^""$serviceName`"^""."^""; <# -- 1. Skip if service does not exist #>; $service = Get-Service -Name $serviceName -ErrorAction SilentlyContinue; if(!$service) {; Write-Host "^""Service `"^""$serviceName`"^"" could not be not found, no need to disable it."^""; Exit 0; }; <# -- 2. Stop if running #>; if ($service.Status -eq [System.ServiceProcess.ServiceControllerStatus]::Running) {; Write-Host "^""`"^""$serviceName`"^"" is running, stopping it."^""; try {; Stop-Service -Name "^""$serviceName"^"" -Force -ErrorAction Stop; Write-Host "^""Stopped `"^""$serviceName`"^"" successfully."^""; } catch {; Write-Warning "^""Could not stop `"^""$serviceName`"^"", it will be stopped after reboot: $_"^""; }; } else {; Write-Host "^""`"^""$serviceName`"^"" is not running, no need to stop."^""; }; <# -- 3. Skip if already disabled #>; $startupType = $service.StartType <# Does not work before .NET 4.6.1 #>; if(!$startupType) {; $startupType = (Get-WmiObject -Query "^""Select StartMode From Win32_Service Where Name='$serviceName'"^"" -ErrorAction Ignore).StartMode; if(!$startupType) {; $startupType = (Get-WmiObject -Class Win32_Service -Property StartMode -Filter "^""Name='$serviceName'"^"" -ErrorAction Ignore).StartMode; }; }; if($startupType -eq 'Disabled') {; Write-Host "^""$serviceName is already disabled, no further action is needed"^""; }; <# -- 4. Disable service #>; try {; Set-Service -Name "^""$serviceName"^"" -StartupType Disabled -Confirm:$False -ErrorAction Stop; Write-Host "^""Disabled `"^""$serviceName`"^"" successfully."^""; } catch {; Write-Error "^""Could not disable `"^""$serviceName`"^"": $_"^""; }" >nul 2>&1 REM Disable Logitech registry service. PowerShell -ExecutionPolicy Unrestricted -Command "$serviceName = 'LogiRegistryService'; Write-Host "^""Disabling service: `"^""$serviceName`"^""."^""; <# -- 1. Skip if service does not exist #>; $service = Get-Service -Name $serviceName -ErrorAction SilentlyContinue; if(!$service) {; Write-Host "^""Service `"^""$serviceName`"^"" could not be not found, no need to disable it."^""; Exit 0; }; <# -- 2. Stop if running #>; if ($service.Status -eq [System.ServiceProcess.ServiceControllerStatus]::Running) {; Write-Host "^""`"^""$serviceName`"^"" is running, stopping it."^""; try {; Stop-Service -Name "^""$serviceName"^"" -Force -ErrorAction Stop; Write-Host "^""Stopped `"^""$serviceName`"^"" successfully."^""; } catch {; Write-Warning "^""Could not stop `"^""$serviceName`"^"", it will be stopped after reboot: $_"^""; }; } else {; Write-Host "^""`"^""$serviceName`"^"" is not running, no need to stop."^""; }; <# -- 3. Skip if already disabled #>; $startupType = $service.StartType <# Does not work before .NET 4.6.1 #>; if(!$startupType) {; $startupType = (Get-WmiObject -Query "^""Select StartMode From Win32_Service Where Name='$serviceName'"^"" -ErrorAction Ignore).StartMode; if(!$startupType) {; $startupType = (Get-WmiObject -Class Win32_Service -Property StartMode -Filter "^""Name='$serviceName'"^"" -ErrorAction Ignore).StartMode; }; }; if($startupType -eq 'Disabled') {; Write-Host "^""$serviceName is already disabled, no further action is needed"^""; }; <# -- 4. Disable service #>; try {; Set-Service -Name "^""$serviceName"^"" -StartupType Disabled -Confirm:$False -ErrorAction Stop; Write-Host "^""Disabled `"^""$serviceName`"^"" successfully."^""; } catch {; Write-Error "^""Could not disable `"^""$serviceName`"^"": $_"^""; }" >nul 2>&1 REM Disable Dropbox update tasks. schtasks /Change /DISABLE /TN "DropboxUpdateTaskMachineCore" >nul 2>&1 schtasks /Change /DISABLE /TN "DropboxUpdateTaskMachineUA" >nul 2>&1 REM Disable CCleaner monitoring and update features. reg add "HKCU\Software\Piriform\CCleaner" /v "Monitoring" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKCU\Software\Piriform\CCleaner" /v "HelpImproveCCleaner" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKCU\Software\Piriform\CCleaner" /v "SystemMonitoring" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKCU\Software\Piriform\CCleaner" /v "UpdateAuto" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKCU\Software\Piriform\CCleaner" /v "UpdateCheck" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKCU\Software\Piriform\CCleaner" /v "CheckTrialOffer" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Piriform\CCleaner" /v "(Cfg)HealthCheck" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Piriform\CCleaner" /v "(Cfg)QuickClean" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Piriform\CCleaner" /v "(Cfg)QuickCleanIpm" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Piriform\CCleaner" /v "(Cfg)GetIpmForTrial" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Piriform\CCleaner" /v "(Cfg)SoftwareUpdater" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Piriform\CCleaner" /v "(Cfg)SoftwareUpdaterIpm" /t REG_DWORD /d 0 /f >nul 2>&1 set "file=C:\Vitality\Info\configprograms" if not exist "%file%" ( echo Vitality > "%file%" set /a "ran_optimizations+=1" ) cd C:\Vitality set "formatted_optimizations=%ran_optimizations%" if %formatted_optimizations% LSS 10 set "formatted_optimizations= %formatted_optimizations%" echo set "ran_optimizations=%ran_optimizations%"> v.bat :skippingconfigurepro if "%PrivacyOverSec%"=="False" goto skippingprivacyoversec echo Applying Privacy Over Security REM Disable Windows Firewall PowerShell -ExecutionPolicy Unrestricted -Command "if(!(Get-Command 'netsh' -ErrorAction Ignore)) {; throw '"^""netsh"^"" does not exist, is system installed correctly?'; }; $message=netsh advfirewall set allprofiles state off 2>&1; if($?) {; Write-Host "^""Successfully disabled firewall."^""; } else {; if($message -like '*Firewall service*') {; Write-Warning 'Cannot use CLI because MpsSvc or MpsDrv is not running. Try to enable them (revert) -> reboot -> re-run this?'; } else {; throw "^""Cannot disable: $message"^""; }; }" >nul 2>&1 REM Disable Windows Firewall using registry settings for different profiles. reg add "HKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile" /v "EnableFirewall" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall\PublicProfile" /v "EnableFirewall" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall\PrivateProfile" /v "EnableFirewall" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile" /v "EnableFirewall" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile" /v "EnableFirewall" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\DomainProfile" /v "EnableFirewall" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\PublicProfile" /v "EnableFirewall" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\PrivateProfile" /v "EnableFirewall" /t REG_DWORD /d 0 /f >nul 2>&1 REM Disable specific Windows Defender settings using PowerShell. PowerShell -ExecutionPolicy Unrestricted -Command "$propertyName = 'PUAProtection'; $value = '0'; if((Get-MpPreference -ErrorAction Ignore).$propertyName -eq $value) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is already `"^""$value`"^"" as desired."^""; exit 0; }; $command = Get-Command 'Set-MpPreference' -ErrorAction Ignore; if (!$command) {; Write-Warning 'Skipping. Command not found: "^""Set-MpPreference"^"".'; exit 0; }; if(!$command.Parameters.Keys.Contains($propertyName)) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; }; try {; Invoke-Expression "^""$($command.Name) -Force -$propertyName `$value -ErrorAction Stop"^""; Set-MpPreference -Force -PUAProtection $value -ErrorAction Stop; Write-Host "^""Successfully set `"^""$propertyName`"^"" to `"^""$value`"^""."^""; exit 0; } catch {; if ( $_.FullyQualifiedErrorId -like '*0x800106ba*') {; Write-Warning "^""Cannot $($command.Name): Defender service (WinDefend) is not running. Try to enable it (revert) and re-run this?"^""; exit 0; } elseif (($_ | Out-String) -like '*Cannot convert*') {; Write-Host "^""Skipping. Argument `"^""$value`"^"" for property `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; } else {; Write-Error "^""Failed to set using $($command.Name): $_"^""; exit 1; }; }" >nul 2>&1 REM Disable additional Windows Defender settings using registry entries. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\MpEngine" /v "MpEnablePus" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v "PUAProtection" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\MpEngine" /v "EnableFileHashComputation" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v "ServiceKeepAlive" /t REG_DWORD /d "1" /f >nul 2>&1 REM Disable Windows Defender Exploit Guard Network Protection and Controlled Folder Access. PowerShell -ExecutionPolicy Unrestricted -Command "$propertyName = 'DisableAutoExclusions'; $value = $True; if((Get-MpPreference -ErrorAction Ignore).$propertyName -eq $value) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is already `"^""$value`"^"" as desired."^""; exit 0; }; $command = Get-Command 'Set-MpPreference' -ErrorAction Ignore; if (!$command) {; Write-Warning 'Skipping. Command not found: "^""Set-MpPreference"^"".'; exit 0; }; if(!$command.Parameters.Keys.Contains($propertyName)) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; }; try {; Invoke-Expression "^""$($command.Name) -Force -$propertyName `$value -ErrorAction Stop"^""; Set-MpPreference -Force -DisableAutoExclusions $value -ErrorAction Stop; Write-Host "^""Successfully set `"^""$propertyName`"^"" to `"^""$value`"^""."^""; exit 0; } catch {; if ( $_.FullyQualifiedErrorId -like '*0x800106ba*') {; Write-Warning "^""Cannot $($command.Name): Defender service (WinDefend) is not running. Try to enable it (revert) and re-run this?"^""; exit 0; } elseif (($_ | Out-String) -like '*Cannot convert*') {; Write-Host "^""Skipping. Argument `"^""$value`"^"" for property `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; } else {; Write-Error "^""Failed to set using $($command.Name): $_"^""; exit 1; }; }" >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Exclusions" /v "DisableAutoExclusions" /t reg_DWORD /d "1" /f >nul 2>&1 PowerShell -ExecutionPolicy Unrestricted -Command "$propertyName = 'DisableBlockAtFirstSeen'; $value = $True; if((Get-MpPreference -ErrorAction Ignore).$propertyName -eq $value) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is already `"^""$value`"^"" as desired."^""; exit 0; }; $command = Get-Command 'Set-MpPreference' -ErrorAction Ignore; if (!$command) {; Write-Warning 'Skipping. Command not found: "^""Set-MpPreference"^"".'; exit 0; }; if(!$command.Parameters.Keys.Contains($propertyName)) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; }; try {; Invoke-Expression "^""$($command.Name) -Force -$propertyName `$value -ErrorAction Stop"^""; Set-MpPreference -Force -DisableBlockAtFirstSeen $value -ErrorAction Stop; Write-Host "^""Successfully set `"^""$propertyName`"^"" to `"^""$value`"^""."^""; exit 0; } catch {; if ( $_.FullyQualifiedErrorId -like '*0x800106ba*') {; Write-Warning "^""Cannot $($command.Name): Defender service (WinDefend) is not running. Try to enable it (revert) and re-run this?"^""; exit 0; } elseif (($_ | Out-String) -like '*Cannot convert*') {; Write-Host "^""Skipping. Argument `"^""$value`"^"" for property `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; } else {; Write-Error "^""Failed to set using $($command.Name): $_"^""; exit 1; }; }" >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\SpyNet" /v "DisableBlockAtFirstSeen" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\MpEngine" /v "MpBafsExtendedTimeout" /t REG_DWORD /d 50 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\MpEngine" /v "MpCloudBlockLevel" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Signature Updates" /v "SignatureDisableNotification" /t REG_DWORD /d 0 /f >nul 2>&1 PowerShell -ExecutionPolicy Unrestricted -Command "$propertyName = 'MAPSReporting'; $value = '0'; if((Get-MpPreference -ErrorAction Ignore).$propertyName -eq $value) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is already `"^""$value`"^"" as desired."^""; exit 0; }; $command = Get-Command 'Set-MpPreference' -ErrorAction Ignore; if (!$command) {; Write-Warning 'Skipping. Command not found: "^""Set-MpPreference"^"".'; exit 0; }; if(!$command.Parameters.Keys.Contains($propertyName)) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; }; try {; Invoke-Expression "^""$($command.Name) -Force -$propertyName `$value -ErrorAction Stop"^""; Set-MpPreference -Force -MAPSReporting $value -ErrorAction Stop; Write-Host "^""Successfully set `"^""$propertyName`"^"" to `"^""$value`"^""."^""; exit 0; } catch {; if ( $_.FullyQualifiedErrorId -like '*0x800106ba*') {; Write-Warning "^""Cannot $($command.Name): Defender service (WinDefend) is not running. Try to enable it (revert) and re-run this?"^""; exit 0; } elseif (($_ | Out-String) -like '*Cannot convert*') {; Write-Host "^""Skipping. Argument `"^""$value`"^"" for property `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; } else {; Write-Error "^""Failed to set using $($command.Name): $_"^""; exit 1; }; }" >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Spynet" /v "SpynetReporting" /t REG_DWORD /d "0" /f >nul 2>&1 PowerShell -ExecutionPolicy Unrestricted -Command "$propertyName = 'SubmitSamplesConsent'; $value = '2'; if((Get-MpPreference -ErrorAction Ignore).$propertyName -eq $value) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is already `"^""$value`"^"" as desired."^""; exit 0; }; $command = Get-Command 'Set-MpPreference' -ErrorAction Ignore; if (!$command) {; Write-Warning 'Skipping. Command not found: "^""Set-MpPreference"^"".'; exit 0; }; if(!$command.Parameters.Keys.Contains($propertyName)) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; }; try {; Invoke-Expression "^""$($command.Name) -Force -$propertyName `$value -ErrorAction Stop"^""; Set-MpPreference -Force -SubmitSamplesConsent $value -ErrorAction Stop; Write-Host "^""Successfully set `"^""$propertyName`"^"" to `"^""$value`"^""."^""; exit 0; } catch {; if ( $_.FullyQualifiedErrorId -like '*0x800106ba*') {; Write-Warning "^""Cannot $($command.Name): Defender service (WinDefend) is not running. Try to enable it (revert) and re-run this?"^""; exit 0; } elseif (($_ | Out-String) -like '*Cannot convert*') {; Write-Host "^""Skipping. Argument `"^""$value`"^"" for property `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; } else {; Write-Error "^""Failed to set using $($command.Name): $_"^""; exit 1; }; }" >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Spynet" /v "SubmitSamplesConsent" /t REG_DWORD /d "2" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\MRT" /v "DontReportInfectionInformation" /t REG_DWORD /d 1 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Signature Updates" /v "RealtimeSignatureDelivery" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Windows Defender Exploit Guard\Network Protection" /v "EnableNetworkProtection" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Windows Defender Exploit Guard\Controlled Folder Access" /v "EnableControlledFolderAccess" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\NIS" /v "DisableProtocolRecognition" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\NIS\Consumers\IPS" /v "DisableSignatureRetirement" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\NIS\Consumers\IPS" /v "ThrottleDetectionEventsRate" /t REG_DWORD /d "10000000" /f >nul 2>&1 PowerShell -ExecutionPolicy Unrestricted -Command "$propertyName = 'DisableRealtimeMonitoring'; $value = $True; if((Get-MpPreference -ErrorAction Ignore).$propertyName -eq $value) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is already `"^""$value`"^"" as desired."^""; exit 0; }; $command = Get-Command 'Set-MpPreference' -ErrorAction Ignore; if (!$command) {; Write-Warning 'Skipping. Command not found: "^""Set-MpPreference"^"".'; exit 0; }; if(!$command.Parameters.Keys.Contains($propertyName)) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; }; try {; Invoke-Expression "^""$($command.Name) -Force -$propertyName `$value -ErrorAction Stop"^""; Set-MpPreference -Force -DisableRealtimeMonitoring $value -ErrorAction Stop; Write-Host "^""Successfully set `"^""$propertyName`"^"" to `"^""$value`"^""."^""; exit 0; } catch {; if ( $_.FullyQualifiedErrorId -like '*0x800106ba*') {; Write-Warning "^""Cannot $($command.Name): Defender service (WinDefend) is not running. Try to enable it (revert) and re-run this?"^""; exit 0; } elseif (($_ | Out-String) -like '*Cannot convert*') {; Write-Host "^""Skipping. Argument `"^""$value`"^"" for property `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; } else {; Write-Error "^""Failed to set using $($command.Name): $_"^""; exit 1; }; }" >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "DisableRealtimeMonitoring" /t REG_DWORD /d "1" /f >nul 2>&1 PowerShell -ExecutionPolicy Unrestricted -Command "$propertyName = 'DisableIntrusionPreventionSystem'; $value = $True; if((Get-MpPreference -ErrorAction Ignore).$propertyName -eq $value) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is already `"^""$value`"^"" as desired."^""; exit 0; }; $command = Get-Command 'Set-MpPreference' -ErrorAction Ignore; if (!$command) {; Write-Warning 'Skipping. Command not found: "^""Set-MpPreference"^"".'; exit 0; }; if(!$command.Parameters.Keys.Contains($propertyName)) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; }; try {; Invoke-Expression "^""$($command.Name) -Force -$propertyName `$value -ErrorAction Stop"^""; Set-MpPreference -Force -DisableIntrusionPreventionSystem $value -ErrorAction Stop; Write-Host "^""Successfully set `"^""$propertyName`"^"" to `"^""$value`"^""."^""; exit 0; } catch {; if ( $_.FullyQualifiedErrorId -like '*0x800106ba*') {; Write-Warning "^""Cannot $($command.Name): Defender service (WinDefend) is not running. Try to enable it (revert) and re-run this?"^""; exit 0; } elseif (($_ | Out-String) -like '*Cannot convert*') {; Write-Host "^""Skipping. Argument `"^""$value`"^"" for property `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; } else {; Write-Error "^""Failed to set using $($command.Name): $_"^""; exit 1; }; }" >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "DisableIntrusionPreventionSystem" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "DisableInformationProtectionControl" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "DisableScanOnRealtimeEnable" /t REG_DWORD /d "1" /f >nul 2>&1 PowerShell -ExecutionPolicy Unrestricted -Command "$propertyName = 'DisableBehaviorMonitoring'; $value = $True; if((Get-MpPreference -ErrorAction Ignore).$propertyName -eq $value) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is already `"^""$value`"^"" as desired."^""; exit 0; }; $command = Get-Command 'Set-MpPreference' -ErrorAction Ignore; if (!$command) {; Write-Warning 'Skipping. Command not found: "^""Set-MpPreference"^"".'; exit 0; }; if(!$command.Parameters.Keys.Contains($propertyName)) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; }; try {; Invoke-Expression "^""$($command.Name) -Force -$propertyName `$value -ErrorAction Stop"^""; Set-MpPreference -Force -DisableBehaviorMonitoring $value -ErrorAction Stop; Write-Host "^""Successfully set `"^""$propertyName`"^"" to `"^""$value`"^""."^""; exit 0; } catch {; if ( $_.FullyQualifiedErrorId -like '*0x800106ba*') {; Write-Warning "^""Cannot $($command.Name): Defender service (WinDefend) is not running. Try to enable it (revert) and re-run this?"^""; exit 0; } elseif (($_ | Out-String) -like '*Cannot convert*') {; Write-Host "^""Skipping. Argument `"^""$value`"^"" for property `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; } else {; Write-Error "^""Failed to set using $($command.Name): $_"^""; exit 1; }; }" >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "DisableBehaviorMonitoring" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "DisableRawWriteNotification" /t REG_DWORD /d "1" /f >nul 2>&1 PowerShell -ExecutionPolicy Unrestricted -Command "$propertyName = 'DisableIOAVProtection'; $value = $True; if((Get-MpPreference -ErrorAction Ignore).$propertyName -eq $value) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is already `"^""$value`"^"" as desired."^""; exit 0; }; $command = Get-Command 'Set-MpPreference' -ErrorAction Ignore; if (!$command) {; Write-Warning 'Skipping. Command not found: "^""Set-MpPreference"^"".'; exit 0; }; if(!$command.Parameters.Keys.Contains($propertyName)) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; }; try {; Invoke-Expression "^""$($command.Name) -Force -$propertyName `$value -ErrorAction Stop"^""; Set-MpPreference -Force -DisableIOAVProtection $value -ErrorAction Stop; Write-Host "^""Successfully set `"^""$propertyName`"^"" to `"^""$value`"^""."^""; exit 0; } catch {; if ( $_.FullyQualifiedErrorId -like '*0x800106ba*') {; Write-Warning "^""Cannot $($command.Name): Defender service (WinDefend) is not running. Try to enable it (revert) and re-run this?"^""; exit 0; } elseif (($_ | Out-String) -like '*Cannot convert*') {; Write-Host "^""Skipping. Argument `"^""$value`"^"" for property `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; } else {; Write-Error "^""Failed to set using $($command.Name): $_"^""; exit 1; }; }" >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "DisableIOAVProtection" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "IOAVMaxSize" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "DisableOnAccessProtection" /t REG_DWORD /d "1" /f >nul 2>&1 PowerShell -ExecutionPolicy Unrestricted -Command "$propertyName = 'RealTimeScanDirection'; $value = '1'; if((Get-MpPreference -ErrorAction Ignore).$propertyName -eq $value) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is already `"^""$value`"^"" as desired."^""; exit 0; }; $command = Get-Command 'Set-MpPreference' -ErrorAction Ignore; if (!$command) {; Write-Warning 'Skipping. Command not found: "^""Set-MpPreference"^"".'; exit 0; }; if(!$command.Parameters.Keys.Contains($propertyName)) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; }; try {; Invoke-Expression "^""$($command.Name) -Force -$propertyName `$value -ErrorAction Stop"^""; Set-MpPreference -Force -RealTimeScanDirection $value -ErrorAction Stop; Write-Host "^""Successfully set `"^""$propertyName`"^"" to `"^""$value`"^""."^""; exit 0; } catch {; if ( $_.FullyQualifiedErrorId -like '*0x800106ba*') {; Write-Warning "^""Cannot $($command.Name): Defender service (WinDefend) is not running. Try to enable it (revert) and re-run this?"^""; exit 0; } elseif (($_ | Out-String) -like '*Cannot convert*') {; Write-Host "^""Skipping. Argument `"^""$value`"^"" for property `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; } else {; Write-Error "^""Failed to set using $($command.Name): $_"^""; exit 1; }; }" >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "RealTimeScanDirection" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v "DisableRoutinelyTakingAction" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Remediation" /v "Scan_ScheduleDay" /t REG_DWORD /d "8" /f >nul 2>&1 PowerShell -ExecutionPolicy Unrestricted -Command "$propertyName = 'RemediationScheduleDay'; $value = '8'; if((Get-MpPreference -ErrorAction Ignore).$propertyName -eq $value) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is already `"^""$value`"^"" as desired."^""; exit 0; }; $command = Get-Command 'Set-MpPreference' -ErrorAction Ignore; if (!$command) {; Write-Warning 'Skipping. Command not found: "^""Set-MpPreference"^"".'; exit 0; }; if(!$command.Parameters.Keys.Contains($propertyName)) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; }; try {; Invoke-Expression "^""$($command.Name) -Force -$propertyName `$value -ErrorAction Stop"^""; Set-MpPreference -Force -RemediationScheduleDay $value -ErrorAction Stop; Write-Host "^""Successfully set `"^""$propertyName`"^"" to `"^""$value`"^""."^""; exit 0; } catch {; if ( $_.FullyQualifiedErrorId -like '*0x800106ba*') {; Write-Warning "^""Cannot $($command.Name): Defender service (WinDefend) is not running. Try to enable it (revert) and re-run this?"^""; exit 0; } elseif (($_ | Out-String) -like '*Cannot convert*') {; Write-Host "^""Skipping. Argument `"^""$value`"^"" for property `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; } else {; Write-Error "^""Failed to set using $($command.Name): $_"^""; exit 1; }; }" >nul 2>&1 PowerShell -ExecutionPolicy Unrestricted -Command "$propertyName = 'UnknownThreatDefaultAction'; $value = '9'; if((Get-MpPreference -ErrorAction Ignore).$propertyName -eq $value) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is already `"^""$value`"^"" as desired."^""; exit 0; }; $command = Get-Command 'Set-MpPreference' -ErrorAction Ignore; if (!$command) {; Write-Warning 'Skipping. Command not found: "^""Set-MpPreference"^"".'; exit 0; }; if(!$command.Parameters.Keys.Contains($propertyName)) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; }; try {; Invoke-Expression "^""$($command.Name) -Force -$propertyName `$value -ErrorAction Stop"^""; Set-MpPreference -Force -UnknownThreatDefaultAction $value -ErrorAction Stop; Write-Host "^""Successfully set `"^""$propertyName`"^"" to `"^""$value`"^""."^""; exit 0; } catch {; if ( $_.FullyQualifiedErrorId -like '*0x800106ba*') {; Write-Warning "^""Cannot $($command.Name): Defender service (WinDefend) is not running. Try to enable it (revert) and re-run this?"^""; exit 0; } elseif (($_ | Out-String) -like '*Cannot convert*') {; Write-Host "^""Skipping. Argument `"^""$value`"^"" for property `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; } else {; Write-Error "^""Failed to set using $($command.Name): $_"^""; exit 1; }; }" >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Threats" /v "Threats_ThreatSeverityDefaultAction" /t "REG_DWORD" /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Threats\ThreatSeverityDefaultAction" /v "5" /t "REG_SZ" /d "9" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Threats\ThreatSeverityDefaultAction" /v "4" /t "REG_SZ" /d "9" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Threats\ThreatSeverityDefaultAction" /v "3" /t "REG_SZ" /d "9" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Threats\ThreatSeverityDefaultAction" /v "2" /t "REG_SZ" /d "9" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Threats\ThreatSeverityDefaultAction" /v "1" /t "REG_SZ" /d "9" /f >nul 2>&1 PowerShell -ExecutionPolicy Unrestricted -Command "$propertyName = 'QuarantinePurgeItemsAfterDelay'; $value = '1'; if((Get-MpPreference -ErrorAction Ignore).$propertyName -eq $value) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is already `"^""$value`"^"" as desired."^""; exit 0; }; $command = Get-Command 'Set-MpPreference' -ErrorAction Ignore; if (!$command) {; Write-Warning 'Skipping. Command not found: "^""Set-MpPreference"^"".'; exit 0; }; if(!$command.Parameters.Keys.Contains($propertyName)) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; }; try {; Invoke-Expression "^""$($command.Name) -Force -$propertyName `$value -ErrorAction Stop"^""; Set-MpPreference -Force -QuarantinePurgeItemsAfterDelay $value -ErrorAction Stop; Write-Host "^""Successfully set `"^""$propertyName`"^"" to `"^""$value`"^""."^""; exit 0; } catch {; if ( $_.FullyQualifiedErrorId -like '*0x800106ba*') {; Write-Warning "^""Cannot $($command.Name): Defender service (WinDefend) is not running. Try to enable it (revert) and re-run this?"^""; exit 0; } elseif (($_ | Out-String) -like '*Cannot convert*') {; Write-Host "^""Skipping. Argument `"^""$value`"^"" for property `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; } else {; Write-Error "^""Failed to set using $($command.Name): $_"^""; exit 1; }; }" >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Quarantine" /v "PurgeItemsAfterDelay" /t REG_DWORD /d "1" /f >nul 2>&1 PowerShell -ExecutionPolicy Unrestricted -Command "$propertyName = 'CheckForSignaturesBeforeRunningScan'; $value = $False; if((Get-MpPreference -ErrorAction Ignore).$propertyName -eq $value) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is already `"^""$value`"^"" as desired."^""; exit 0; }; $command = Get-Command 'Set-MpPreference' -ErrorAction Ignore; if (!$command) {; Write-Warning 'Skipping. Command not found: "^""Set-MpPreference"^"".'; exit 0; }; if(!$command.Parameters.Keys.Contains($propertyName)) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; }; try {; Invoke-Expression "^""$($command.Name) -Force -$propertyName `$value -ErrorAction Stop"^""; Set-MpPreference -Force -CheckForSignaturesBeforeRunningScan $value -ErrorAction Stop; Write-Host "^""Successfully set `"^""$propertyName`"^"" to `"^""$value`"^""."^""; exit 0; } catch {; if ( $_.FullyQualifiedErrorId -like '*0x800106ba*') {; Write-Warning "^""Cannot $($command.Name): Defender service (WinDefend) is not running. Try to enable it (revert) and re-run this?"^""; exit 0; } elseif (($_ | Out-String) -like '*Cannot convert*') {; Write-Host "^""Skipping. Argument `"^""$value`"^"" for property `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; } else {; Write-Error "^""Failed to set using $($command.Name): $_"^""; exit 1; }; }" >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Scan" /v "CheckForSignaturesBeforeRunningScan" /t REG_DWORD /d "0" /f >nul 2>&1 PowerShell -ExecutionPolicy Unrestricted -Command "$propertyName = 'DisableRestorePoint'; $value = $True; if((Get-MpPreference -ErrorAction Ignore).$propertyName -eq $value) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is already `"^""$value`"^"" as desired."^""; exit 0; }; $command = Get-Command 'Set-MpPreference' -ErrorAction Ignore; if (!$command) {; Write-Warning 'Skipping. Command not found: "^""Set-MpPreference"^"".'; exit 0; }; if(!$command.Parameters.Keys.Contains($propertyName)) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; }; try {; Invoke-Expression "^""$($command.Name) -Force -$propertyName `$value -ErrorAction Stop"^""; Set-MpPreference -Force -DisableRestorePoint $value -ErrorAction Stop; Write-Host "^""Successfully set `"^""$propertyName`"^"" to `"^""$value`"^""."^""; exit 0; } catch {; if ( $_.FullyQualifiedErrorId -like '*0x800106ba*') {; Write-Warning "^""Cannot $($command.Name): Defender service (WinDefend) is not running. Try to enable it (revert) and re-run this?"^""; exit 0; } elseif (($_ | Out-String) -like '*Cannot convert*') {; Write-Host "^""Skipping. Argument `"^""$value`"^"" for property `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; } else {; Write-Error "^""Failed to set using $($command.Name): $_"^""; exit 1; }; }" >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Scan" /v "DisableRestorePoint" /t REG_DWORD /d "1" /f >nul 2>&1 PowerShell -ExecutionPolicy Unrestricted -Command "$propertyName = 'ScanPurgeItemsAfterDelay'; $value = '1'; if((Get-MpPreference -ErrorAction Ignore).$propertyName -eq $value) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is already `"^""$value`"^"" as desired."^""; exit 0; }; $command = Get-Command 'Set-MpPreference' -ErrorAction Ignore; if (!$command) {; Write-Warning 'Skipping. Command not found: "^""Set-MpPreference"^"".'; exit 0; }; if(!$command.Parameters.Keys.Contains($propertyName)) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; }; try {; Invoke-Expression "^""$($command.Name) -Force -$propertyName `$value -ErrorAction Stop"^""; Set-MpPreference -Force -ScanPurgeItemsAfterDelay $value -ErrorAction Stop; Write-Host "^""Successfully set `"^""$propertyName`"^"" to `"^""$value`"^""."^""; exit 0; } catch {; if ( $_.FullyQualifiedErrorId -like '*0x800106ba*') {; Write-Warning "^""Cannot $($command.Name): Defender service (WinDefend) is not running. Try to enable it (revert) and re-run this?"^""; exit 0; } elseif (($_ | Out-String) -like '*Cannot convert*') {; Write-Host "^""Skipping. Argument `"^""$value`"^"" for property `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; } else {; Write-Error "^""Failed to set using $($command.Name): $_"^""; exit 1; }; }" >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Scan" /v "PurgeItemsAfterDelay" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Scan" /v "MissedScheduledScanCountBeforeCatchup" /t REG_DWORD /d "20" /f >nul 2>&1 PowerShell -ExecutionPolicy Unrestricted -Command "$propertyName = 'DisableCatchupFullScan'; $value = $True; if((Get-MpPreference -ErrorAction Ignore).$propertyName -eq $value) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is already `"^""$value`"^"" as desired."^""; exit 0; }; $command = Get-Command 'Set-MpPreference' -ErrorAction Ignore; if (!$command) {; Write-Warning 'Skipping. Command not found: "^""Set-MpPreference"^"".'; exit 0; }; if(!$command.Parameters.Keys.Contains($propertyName)) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; }; try {; Invoke-Expression "^""$($command.Name) -Force -$propertyName `$value -ErrorAction Stop"^""; Set-MpPreference -Force -DisableCatchupFullScan $value -ErrorAction Stop; Write-Host "^""Successfully set `"^""$propertyName`"^"" to `"^""$value`"^""."^""; exit 0; } catch {; if ( $_.FullyQualifiedErrorId -like '*0x800106ba*') {; Write-Warning "^""Cannot $($command.Name): Defender service (WinDefend) is not running. Try to enable it (revert) and re-run this?"^""; exit 0; } elseif (($_ | Out-String) -like '*Cannot convert*') {; Write-Host "^""Skipping. Argument `"^""$value`"^"" for property `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; } else {; Write-Error "^""Failed to set using $($command.Name): $_"^""; exit 1; }; }" >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Scan" /v "DisableCatchupFullScan" /t REG_DWORD /d "1" /f >nul 2>&1 PowerShell -ExecutionPolicy Unrestricted -Command "$propertyName = 'DisableCatchupQuickScan'; $value = $True; if((Get-MpPreference -ErrorAction Ignore).$propertyName -eq $value) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is already `"^""$value`"^"" as desired."^""; exit 0; }; $command = Get-Command 'Set-MpPreference' -ErrorAction Ignore; if (!$command) {; Write-Warning 'Skipping. Command not found: "^""Set-MpPreference"^"".'; exit 0; }; if(!$command.Parameters.Keys.Contains($propertyName)) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; }; try {; Invoke-Expression "^""$($command.Name) -Force -$propertyName `$value -ErrorAction Stop"^""; Set-MpPreference -Force -DisableCatchupQuickScan $value -ErrorAction Stop; Write-Host "^""Successfully set `"^""$propertyName`"^"" to `"^""$value`"^""."^""; exit 0; } catch {; if ( $_.FullyQualifiedErrorId -like '*0x800106ba*') {; Write-Warning "^""Cannot $($command.Name): Defender service (WinDefend) is not running. Try to enable it (revert) and re-run this?"^""; exit 0; } elseif (($_ | Out-String) -like '*Cannot convert*') {; Write-Host "^""Skipping. Argument `"^""$value`"^"" for property `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; } else {; Write-Error "^""Failed to set using $($command.Name): $_"^""; exit 1; }; }" >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Scan" /v "DisableCatchupQuickScan" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Scan" /v "DisableHeuristics" /t REG_DWORD /d "1" /f >nul 2>&1 PowerShell -ExecutionPolicy Unrestricted -Command "$propertyName = 'ScanOnlyIfIdleEnabled'; $value = $True; if((Get-MpPreference -ErrorAction Ignore).$propertyName -eq $value) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is already `"^""$value`"^"" as desired."^""; exit 0; }; $command = Get-Command 'Set-MpPreference' -ErrorAction Ignore; if (!$command) {; Write-Warning 'Skipping. Command not found: "^""Set-MpPreference"^"".'; exit 0; }; if(!$command.Parameters.Keys.Contains($propertyName)) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; }; try {; Invoke-Expression "^""$($command.Name) -Force -$propertyName `$value -ErrorAction Stop"^""; Set-MpPreference -Force -ScanOnlyIfIdleEnabled $value -ErrorAction Stop; Write-Host "^""Successfully set `"^""$propertyName`"^"" to `"^""$value`"^""."^""; exit 0; } catch {; if ( $_.FullyQualifiedErrorId -like '*0x800106ba*') {; Write-Warning "^""Cannot $($command.Name): Defender service (WinDefend) is not running. Try to enable it (revert) and re-run this?"^""; exit 0; } elseif (($_ | Out-String) -like '*Cannot convert*') {; Write-Host "^""Skipping. Argument `"^""$value`"^"" for property `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; } else {; Write-Error "^""Failed to set using $($command.Name): $_"^""; exit 1; }; }" >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Scan" /v "ScanOnlyIfIdle" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\MRT" /v "DontOfferThroughWUAU" /t REG_DWORD /d 1 /f >nul 2>&1 PowerShell -ExecutionPolicy Unrestricted -Command "$propertyName = 'ScanAvgCPULoadFactor'; $value = '1'; if((Get-MpPreference -ErrorAction Ignore).$propertyName -eq $value) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is already `"^""$value`"^"" as desired."^""; exit 0; }; $command = Get-Command 'Set-MpPreference' -ErrorAction Ignore; if (!$command) {; Write-Warning 'Skipping. Command not found: "^""Set-MpPreference"^"".'; exit 0; }; if(!$command.Parameters.Keys.Contains($propertyName)) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; }; try {; Invoke-Expression "^""$($command.Name) -Force -$propertyName `$value -ErrorAction Stop"^""; Set-MpPreference -Force -ScanAvgCPULoadFactor $value -ErrorAction Stop; Write-Host "^""Successfully set `"^""$propertyName`"^"" to `"^""$value`"^""."^""; exit 0; } catch {; if ( $_.FullyQualifiedErrorId -like '*0x800106ba*') {; Write-Warning "^""Cannot $($command.Name): Defender service (WinDefend) is not running. Try to enable it (revert) and re-run this?"^""; exit 0; } elseif (($_ | Out-String) -like '*Cannot convert*') {; Write-Host "^""Skipping. Argument `"^""$value`"^"" for property `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; } else {; Write-Error "^""Failed to set using $($command.Name): $_"^""; exit 1; }; }" >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Scan" /v "AvgCPULoadFactor" /t REG_DWORD /d "1" /f >nul 2>&1 PowerShell -ExecutionPolicy Unrestricted -Command "$propertyName = 'DisableCpuThrottleOnIdleScans'; $value = $False; if((Get-MpPreference -ErrorAction Ignore).$propertyName -eq $value) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is already `"^""$value`"^"" as desired."^""; exit 0; }; $command = Get-Command 'Set-MpPreference' -ErrorAction Ignore; if (!$command) {; Write-Warning 'Skipping. Command not found: "^""Set-MpPreference"^"".'; exit 0; }; if(!$command.Parameters.Keys.Contains($propertyName)) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; }; try {; Invoke-Expression "^""$($command.Name) -Force -$propertyName `$value -ErrorAction Stop"^""; Set-MpPreference -Force -DisableCpuThrottleOnIdleScans $value -ErrorAction Stop; Write-Host "^""Successfully set `"^""$propertyName`"^"" to `"^""$value`"^""."^""; exit 0; } catch {; if ( $_.FullyQualifiedErrorId -like '*0x800106ba*') {; Write-Warning "^""Cannot $($command.Name): Defender service (WinDefend) is not running. Try to enable it (revert) and re-run this?"^""; exit 0; } elseif (($_ | Out-String) -like '*Cannot convert*') {; Write-Host "^""Skipping. Argument `"^""$value`"^"" for property `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; } else {; Write-Error "^""Failed to set using $($command.Name): $_"^""; exit 1; }; }" >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Scan" /v "DisableCpuThrottleOnIdleScans" /t REG_DWORD /d "0" /f >nul 2>&1 PowerShell -ExecutionPolicy Unrestricted -Command "$propertyName = 'DisableEmailScanning'; $value = $True; if((Get-MpPreference -ErrorAction Ignore).$propertyName -eq $value) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is already `"^""$value`"^"" as desired."^""; exit 0; }; $command = Get-Command 'Set-MpPreference' -ErrorAction Ignore; if (!$command) {; Write-Warning 'Skipping. Command not found: "^""Set-MpPreference"^"".'; exit 0; }; if(!$command.Parameters.Keys.Contains($propertyName)) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; }; try {; Invoke-Expression "^""$($command.Name) -Force -$propertyName `$value -ErrorAction Stop"^""; Set-MpPreference -Force -DisableEmailScanning $value -ErrorAction Stop; Write-Host "^""Successfully set `"^""$propertyName`"^"" to `"^""$value`"^""."^""; exit 0; } catch {; if ( $_.FullyQualifiedErrorId -like '*0x800106ba*') {; Write-Warning "^""Cannot $($command.Name): Defender service (WinDefend) is not running. Try to enable it (revert) and re-run this?"^""; exit 0; } elseif (($_ | Out-String) -like '*Cannot convert*') {; Write-Host "^""Skipping. Argument `"^""$value`"^"" for property `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; } else {; Write-Error "^""Failed to set using $($command.Name): $_"^""; exit 1; }; }" >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Scan" /v "DisableEmailScanning" /t REG_DWORD /d "1" /f >nul 2>&1 PowerShell -ExecutionPolicy Unrestricted -Command "$propertyName = 'DisableScriptScanning'; $value = $True; if((Get-MpPreference -ErrorAction Ignore).$propertyName -eq $value) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is already `"^""$value`"^"" as desired."^""; exit 0; }; $command = Get-Command 'Set-MpPreference' -ErrorAction Ignore; if (!$command) {; Write-Warning 'Skipping. Command not found: "^""Set-MpPreference"^"".'; exit 0; }; if(!$command.Parameters.Keys.Contains($propertyName)) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; }; try {; Invoke-Expression "^""$($command.Name) -Force -$propertyName `$value -ErrorAction Stop"^""; Set-MpPreference -Force -DisableScriptScanning $value -ErrorAction Stop; Write-Host "^""Successfully set `"^""$propertyName`"^"" to `"^""$value`"^""."^""; exit 0; } catch {; if ( $_.FullyQualifiedErrorId -like '*0x800106ba*') {; Write-Warning "^""Cannot $($command.Name): Defender service (WinDefend) is not running. Try to enable it (revert) and re-run this?"^""; exit 0; } elseif (($_ | Out-String) -like '*Cannot convert*') {; Write-Host "^""Skipping. Argument `"^""$value`"^"" for property `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; } else {; Write-Error "^""Failed to set using $($command.Name): $_"^""; exit 1; }; }" >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Scan" /v "DisableReparsePointScanning" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Scan" /v "DisableScanningMappedNetworkDrivesForFullScan" /t REG_DWORD /d "1" /f >nul 2>&1 PowerShell -ExecutionPolicy Unrestricted -Command "$propertyName = 'DisableScanningMappedNetworkDrivesForFullScan'; $value = $True; if((Get-MpPreference -ErrorAction Ignore).$propertyName -eq $value) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is already `"^""$value`"^"" as desired."^""; exit 0; }; $command = Get-Command 'Set-MpPreference' -ErrorAction Ignore; if (!$command) {; Write-Warning 'Skipping. Command not found: "^""Set-MpPreference"^"".'; exit 0; }; if(!$command.Parameters.Keys.Contains($propertyName)) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; }; try {; Invoke-Expression "^""$($command.Name) -Force -$propertyName `$value -ErrorAction Stop"^""; Set-MpPreference -Force -DisableScanningMappedNetworkDrivesForFullScan $value -ErrorAction Stop; Write-Host "^""Successfully set `"^""$propertyName`"^"" to `"^""$value`"^""."^""; exit 0; } catch {; if ( $_.FullyQualifiedErrorId -like '*0x800106ba*') {; Write-Warning "^""Cannot $($command.Name): Defender service (WinDefend) is not running. Try to enable it (revert) and re-run this?"^""; exit 0; } elseif (($_ | Out-String) -like '*Cannot convert*') {; Write-Host "^""Skipping. Argument `"^""$value`"^"" for property `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; } else {; Write-Error "^""Failed to set using $($command.Name): $_"^""; exit 1; }; }" >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Scan" /v "DisableScanningNetworkFiles" /t REG_DWORD /d "1" /f >nul 2>&1 PowerShell -ExecutionPolicy Unrestricted -Command "$propertyName = 'DisableScanningNetworkFiles'; $value = $True; if((Get-MpPreference -ErrorAction Ignore).$propertyName -eq $value) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is already `"^""$value`"^"" as desired."^""; exit 0; }; $command = Get-Command 'Set-MpPreference' -ErrorAction Ignore; if (!$command) {; Write-Warning 'Skipping. Command not found: "^""Set-MpPreference"^"".'; exit 0; }; if(!$command.Parameters.Keys.Contains($propertyName)) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; }; try {; Invoke-Expression "^""$($command.Name) -Force -$propertyName `$value -ErrorAction Stop"^""; Set-MpPreference -Force -DisableScanningNetworkFiles $value -ErrorAction Stop; Write-Host "^""Successfully set `"^""$propertyName`"^"" to `"^""$value`"^""."^""; exit 0; } catch {; if ( $_.FullyQualifiedErrorId -like '*0x800106ba*') {; Write-Warning "^""Cannot $($command.Name): Defender service (WinDefend) is not running. Try to enable it (revert) and re-run this?"^""; exit 0; } elseif (($_ | Out-String) -like '*Cannot convert*') {; Write-Host "^""Skipping. Argument `"^""$value`"^"" for property `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; } else {; Write-Error "^""Failed to set using $($command.Name): $_"^""; exit 1; }; }" >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Scan" /v "DisablePackedExeScanning" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Scan" /v "DisableRemovableDriveScanning" /t REG_DWORD /d "1" /f >nul 2>&1 PowerShell -ExecutionPolicy Unrestricted -Command "$propertyName = 'DisableRemovableDriveScanning'; $value = $True; if((Get-MpPreference -ErrorAction Ignore).$propertyName -eq $value) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is already `"^""$value`"^"" as desired."^""; exit 0; }; $command = Get-Command 'Set-MpPreference' -ErrorAction Ignore; if (!$command) {; Write-Warning 'Skipping. Command not found: "^""Set-MpPreference"^"".'; exit 0; }; if(!$command.Parameters.Keys.Contains($propertyName)) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; }; try {; Invoke-Expression "^""$($command.Name) -Force -$propertyName `$value -ErrorAction Stop"^""; Set-MpPreference -Force -DisableRemovableDriveScanning $value -ErrorAction Stop; Write-Host "^""Successfully set `"^""$propertyName`"^"" to `"^""$value`"^""."^""; exit 0; } catch {; if ( $_.FullyQualifiedErrorId -like '*0x800106ba*') {; Write-Warning "^""Cannot $($command.Name): Defender service (WinDefend) is not running. Try to enable it (revert) and re-run this?"^""; exit 0; } elseif (($_ | Out-String) -like '*Cannot convert*') {; Write-Host "^""Skipping. Argument `"^""$value`"^"" for property `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; } else {; Write-Error "^""Failed to set using $($command.Name): $_"^""; exit 1; }; }" >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Scan" /v "DisableArchiveScanning" /t REG_DWORD /d "1" /f >nul 2>&1 PowerShell -ExecutionPolicy Unrestricted -Command "$propertyName = 'DisableArchiveScanning'; $value = $True; if((Get-MpPreference -ErrorAction Ignore).$propertyName -eq $value) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is already `"^""$value`"^"" as desired."^""; exit 0; }; $command = Get-Command 'Set-MpPreference' -ErrorAction Ignore; if (!$command) {; Write-Warning 'Skipping. Command not found: "^""Set-MpPreference"^"".'; exit 0; }; if(!$command.Parameters.Keys.Contains($propertyName)) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; }; try {; Invoke-Expression "^""$($command.Name) -Force -$propertyName `$value -ErrorAction Stop"^""; Set-MpPreference -Force -DisableArchiveScanning $value -ErrorAction Stop; Write-Host "^""Successfully set `"^""$propertyName`"^"" to `"^""$value`"^""."^""; exit 0; } catch {; if ( $_.FullyQualifiedErrorId -like '*0x800106ba*') {; Write-Warning "^""Cannot $($command.Name): Defender service (WinDefend) is not running. Try to enable it (revert) and re-run this?"^""; exit 0; } elseif (($_ | Out-String) -like '*Cannot convert*') {; Write-Host "^""Skipping. Argument `"^""$value`"^"" for property `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; } else {; Write-Error "^""Failed to set using $($command.Name): $_"^""; exit 1; }; }" >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Scan" /v "ArchiveMaxDepth" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Scan" /v "ArchiveMaxSize" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Scan" /v "ScheduleDay" /t REG_DWORD /d "8" /f >nul 2>&1 PowerShell -ExecutionPolicy Unrestricted -Command "$propertyName = 'ScanScheduleDay'; $value = '8'; if((Get-MpPreference -ErrorAction Ignore).$propertyName -eq $value) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is already `"^""$value`"^"" as desired."^""; exit 0; }; $command = Get-Command 'Set-MpPreference' -ErrorAction Ignore; if (!$command) {; Write-Warning 'Skipping. Command not found: "^""Set-MpPreference"^"".'; exit 0; }; if(!$command.Parameters.Keys.Contains($propertyName)) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; }; try {; Invoke-Expression "^""$($command.Name) -Force -$propertyName `$value -ErrorAction Stop"^""; Set-MpPreference -Force -ScanScheduleDay $value -ErrorAction Stop; Write-Host "^""Successfully set `"^""$propertyName`"^"" to `"^""$value`"^""."^""; exit 0; } catch {; if ( $_.FullyQualifiedErrorId -like '*0x800106ba*') {; Write-Warning "^""Cannot $($command.Name): Defender service (WinDefend) is not running. Try to enable it (revert) and re-run this?"^""; exit 0; } elseif (($_ | Out-String) -like '*Cannot convert*') {; Write-Host "^""Skipping. Argument `"^""$value`"^"" for property `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; } else {; Write-Error "^""Failed to set using $($command.Name): $_"^""; exit 1; }; }" >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v "RandomizeScheduleTaskTimes" /t REG_DWORD /d "0" /f >nul 2>&1 PowerShell -ExecutionPolicy Unrestricted -Command "$propertyName = 'RandomizeScheduleTaskTimes'; $value = $False; if((Get-MpPreference -ErrorAction Ignore).$propertyName -eq $value) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is already `"^""$value`"^"" as desired."^""; exit 0; }; $command = Get-Command 'Set-MpPreference' -ErrorAction Ignore; if (!$command) {; Write-Warning 'Skipping. Command not found: "^""Set-MpPreference"^"".'; exit 0; }; if(!$command.Parameters.Keys.Contains($propertyName)) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; }; try {; Invoke-Expression "^""$($command.Name) -Force -$propertyName `$value -ErrorAction Stop"^""; Set-MpPreference -Force -RandomizeScheduleTaskTimes $value -ErrorAction Stop; Write-Host "^""Successfully set `"^""$propertyName`"^"" to `"^""$value`"^""."^""; exit 0; } catch {; if ( $_.FullyQualifiedErrorId -like '*0x800106ba*') {; Write-Warning "^""Cannot $($command.Name): Defender service (WinDefend) is not running. Try to enable it (revert) and re-run this?"^""; exit 0; } elseif (($_ | Out-String) -like '*Cannot convert*') {; Write-Host "^""Skipping. Argument `"^""$value`"^"" for property `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; } else {; Write-Error "^""Failed to set using $($command.Name): $_"^""; exit 1; }; }" >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Scan" /v "ScanParameters" /t REG_DWORD /d "1" /f >nul 2>&1 PowerShell -ExecutionPolicy Unrestricted -Command "$propertyName = 'ScanParameters'; $value = '1'; if((Get-MpPreference -ErrorAction Ignore).$propertyName -eq $value) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is already `"^""$value`"^"" as desired."^""; exit 0; }; $command = Get-Command 'Set-MpPreference' -ErrorAction Ignore; if (!$command) {; Write-Warning 'Skipping. Command not found: "^""Set-MpPreference"^"".'; exit 0; }; if(!$command.Parameters.Keys.Contains($propertyName)) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; }; try {; Invoke-Expression "^""$($command.Name) -Force -$propertyName `$value -ErrorAction Stop"^""; Set-MpPreference -Force -ScanParameters $value -ErrorAction Stop; Write-Host "^""Successfully set `"^""$propertyName`"^"" to `"^""$value`"^""."^""; exit 0; } catch {; if ( $_.FullyQualifiedErrorId -like '*0x800106ba*') {; Write-Warning "^""Cannot $($command.Name): Defender service (WinDefend) is not running. Try to enable it (revert) and re-run this?"^""; exit 0; } elseif (($_ | Out-String) -like '*Cannot convert*') {; Write-Host "^""Skipping. Argument `"^""$value`"^"" for property `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; } else {; Write-Error "^""Failed to set using $($command.Name): $_"^""; exit 1; }; }" >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Scan" /v "QuickScanInterval" /t REG_DWORD /d "24" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Signature Updates" /v "DisableScanOnUpdate" /t REG_DWORD /d "1" /f >nul 2>&1 PowerShell -ExecutionPolicy Unrestricted -Command "$propertyName = 'DisableGradualRelease'; $value = $True; if((Get-MpPreference -ErrorAction Ignore).$propertyName -eq $value) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is already `"^""$value`"^"" as desired."^""; exit 0; }; $command = Get-Command 'Set-MpPreference' -ErrorAction Ignore; if (!$command) {; Write-Warning 'Skipping. Command not found: "^""Set-MpPreference"^"".'; exit 0; }; if(!$command.Parameters.Keys.Contains($propertyName)) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; }; try {; Invoke-Expression "^""$($command.Name) -Force -$propertyName `$value -ErrorAction Stop"^""; Set-MpPreference -Force -DisableGradualRelease $value -ErrorAction Stop; Write-Host "^""Successfully set `"^""$propertyName`"^"" to `"^""$value`"^""."^""; exit 0; } catch {; if ( $_.FullyQualifiedErrorId -like '*0x800106ba*') {; Write-Warning "^""Cannot $($command.Name): Defender service (WinDefend) is not running. Try to enable it (revert) and re-run this?"^""; exit 0; } elseif (($_ | Out-String) -like '*Cannot convert*') {; Write-Host "^""Skipping. Argument `"^""$value`"^"" for property `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; } else {; Write-Error "^""Failed to set using $($command.Name): $_"^""; exit 1; }; }" >nul 2>&1 PowerShell -ExecutionPolicy Unrestricted -Command "$propertyName = 'EngineUpdatesChannel'; $value = 'Broad'; if((Get-MpPreference -ErrorAction Ignore).$propertyName -eq $value) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is already `"^""$value`"^"" as desired."^""; exit 0; }; $command = Get-Command 'Set-MpPreference' -ErrorAction Ignore; if (!$command) {; Write-Warning 'Skipping. Command not found: "^""Set-MpPreference"^"".'; exit 0; }; if(!$command.Parameters.Keys.Contains($propertyName)) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; }; try {; Invoke-Expression "^""$($command.Name) -Force -$propertyName `$value -ErrorAction Stop"^""; Set-MpPreference -Force -EngineUpdatesChannel $value -ErrorAction Stop; Write-Host "^""Successfully set `"^""$propertyName`"^"" to `"^""$value`"^""."^""; exit 0; } catch {; if ( $_.FullyQualifiedErrorId -like '*0x800106ba*') {; Write-Warning "^""Cannot $($command.Name): Defender service (WinDefend) is not running. Try to enable it (revert) and re-run this?"^""; exit 0; } elseif (($_ | Out-String) -like '*Cannot convert*') {; Write-Host "^""Skipping. Argument `"^""$value`"^"" for property `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; } else {; Write-Error "^""Failed to set using $($command.Name): $_"^""; exit 1; }; }" >nul 2>&1 PowerShell -ExecutionPolicy Unrestricted -Command "$propertyName = 'PlatformUpdatesChannel'; $value = 'Broad'; if((Get-MpPreference -ErrorAction Ignore).$propertyName -eq $value) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is already `"^""$value`"^"" as desired."^""; exit 0; }; $command = Get-Command 'Set-MpPreference' -ErrorAction Ignore; if (!$command) {; Write-Warning 'Skipping. Command not found: "^""Set-MpPreference"^"".'; exit 0; }; if(!$command.Parameters.Keys.Contains($propertyName)) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; }; try {; Invoke-Expression "^""$($command.Name) -Force -$propertyName `$value -ErrorAction Stop"^""; Set-MpPreference -Force -PlatformUpdatesChannel $value -ErrorAction Stop; Write-Host "^""Successfully set `"^""$propertyName`"^"" to `"^""$value`"^""."^""; exit 0; } catch {; if ( $_.FullyQualifiedErrorId -like '*0x800106ba*') {; Write-Warning "^""Cannot $($command.Name): Defender service (WinDefend) is not running. Try to enable it (revert) and re-run this?"^""; exit 0; } elseif (($_ | Out-String) -like '*Cannot convert*') {; Write-Host "^""Skipping. Argument `"^""$value`"^"" for property `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; } else {; Write-Error "^""Failed to set using $($command.Name): $_"^""; exit 1; }; }" >nul 2>&1 PowerShell -ExecutionPolicy Unrestricted -Command "$propertyName = 'DefinitionUpdatesChannel'; $value = 'Broad'; if((Get-MpPreference -ErrorAction Ignore).$propertyName -eq $value) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is already `"^""$value`"^"" as desired."^""; exit 0; }; $command = Get-Command 'Set-MpPreference' -ErrorAction Ignore; if (!$command) {; Write-Warning 'Skipping. Command not found: "^""Set-MpPreference"^"".'; exit 0; }; if(!$command.Parameters.Keys.Contains($propertyName)) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; }; try {; Invoke-Expression "^""$($command.Name) -Force -$propertyName `$value -ErrorAction Stop"^""; Set-MpPreference -Force -DefinitionUpdatesChannel $value -ErrorAction Stop; Write-Host "^""Successfully set `"^""$propertyName`"^"" to `"^""$value`"^""."^""; exit 0; } catch {; if ( $_.FullyQualifiedErrorId -like '*0x800106ba*') {; Write-Warning "^""Cannot $($command.Name): Defender service (WinDefend) is not running. Try to enable it (revert) and re-run this?"^""; exit 0; } elseif (($_ | Out-String) -like '*Cannot convert*') {; Write-Host "^""Skipping. Argument `"^""$value`"^"" for property `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; } else {; Write-Error "^""Failed to set using $($command.Name): $_"^""; exit 1; }; }" >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Signature Updates" /v "ForceUpdateFromMU" /t REG_DWORD /d 1 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Signature Updates" /v "DisableScheduledSignatureUpdateOnBattery" /t REG_DWORD /d 1 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Signature Updates" /v "UpdateOnStartUp" /t REG_DWORD /d 1 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Signature Updates" /v "SignatureUpdateCatchupInterval" /t REG_DWORD /d "0" /f >nul 2>&1 PowerShell -ExecutionPolicy Unrestricted -Command "$propertyName = 'SignatureUpdateCatchupInterval'; $value = '0'; if((Get-MpPreference -ErrorAction Ignore).$propertyName -eq $value) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is already `"^""$value`"^"" as desired."^""; exit 0; }; $command = Get-Command 'Set-MpPreference' -ErrorAction Ignore; if (!$command) {; Write-Warning 'Skipping. Command not found: "^""Set-MpPreference"^"".'; exit 0; }; if(!$command.Parameters.Keys.Contains($propertyName)) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; }; try {; Invoke-Expression "^""$($command.Name) -Force -$propertyName `$value -ErrorAction Stop"^""; Set-MpPreference -Force -SignatureUpdateCatchupInterval $value -ErrorAction Stop; Write-Host "^""Successfully set `"^""$propertyName`"^"" to `"^""$value`"^""."^""; exit 0; } catch {; if ( $_.FullyQualifiedErrorId -like '*0x800106ba*') {; Write-Warning "^""Cannot $($command.Name): Defender service (WinDefend) is not running. Try to enable it (revert) and re-run this?"^""; exit 0; } elseif (($_ | Out-String) -like '*Cannot convert*') {; Write-Host "^""Skipping. Argument `"^""$value`"^"" for property `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; } else {; Write-Error "^""Failed to set using $($command.Name): $_"^""; exit 1; }; }" >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Signature Updates" /v "ASSignatureDue" /t REG_DWORD /d 4294967295 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Signature Updates" /v "AVSignatureDue" /t REG_DWORD /d 4294967295 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Signature Updates" /v "DisableUpdateOnStartupWithoutEngine" /t REG_DWORD /d 1 /f >nul 2>&1 PowerShell -ExecutionPolicy Unrestricted -Command "$propertyName = 'SignatureDisableUpdateOnStartupWithoutEngine'; $value = $True; if((Get-MpPreference -ErrorAction Ignore).$propertyName -eq $value) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is already `"^""$value`"^"" as desired."^""; exit 0; }; $command = Get-Command 'Set-MpPreference' -ErrorAction Ignore; if (!$command) {; Write-Warning 'Skipping. Command not found: "^""Set-MpPreference"^"".'; exit 0; }; if(!$command.Parameters.Keys.Contains($propertyName)) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; }; try {; Invoke-Expression "^""$($command.Name) -Force -$propertyName `$value -ErrorAction Stop"^""; Set-MpPreference -Force -SignatureDisableUpdateOnStartupWithoutEngine $value -ErrorAction Stop; Write-Host "^""Successfully set `"^""$propertyName`"^"" to `"^""$value`"^""."^""; exit 0; } catch {; if ( $_.FullyQualifiedErrorId -like '*0x800106ba*') {; Write-Warning "^""Cannot $($command.Name): Defender service (WinDefend) is not running. Try to enable it (revert) and re-run this?"^""; exit 0; } elseif (($_ | Out-String) -like '*Cannot convert*') {; Write-Host "^""Skipping. Argument `"^""$value`"^"" for property `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; } else {; Write-Error "^""Failed to set using $($command.Name): $_"^""; exit 1; }; }" >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Signature Updates" /v "ScheduleDay" /t REG_DWORD /d "8" /f >nul 2>&1 PowerShell -ExecutionPolicy Unrestricted -Command "$propertyName = 'SignatureScheduleDay'; $value = '8'; if((Get-MpPreference -ErrorAction Ignore).$propertyName -eq $value) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is already `"^""$value`"^"" as desired."^""; exit 0; }; $command = Get-Command 'Set-MpPreference' -ErrorAction Ignore; if (!$command) {; Write-Warning 'Skipping. Command not found: "^""Set-MpPreference"^"".'; exit 0; }; if(!$command.Parameters.Keys.Contains($propertyName)) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; }; try {; Invoke-Expression "^""$($command.Name) -Force -$propertyName `$value -ErrorAction Stop"^""; Set-MpPreference -Force -SignatureScheduleDay $value -ErrorAction Stop; Write-Host "^""Successfully set `"^""$propertyName`"^"" to `"^""$value`"^""."^""; exit 0; } catch {; if ( $_.FullyQualifiedErrorId -like '*0x800106ba*') {; Write-Warning "^""Cannot $($command.Name): Defender service (WinDefend) is not running. Try to enable it (revert) and re-run this?"^""; exit 0; } elseif (($_ | Out-String) -like '*Cannot convert*') {; Write-Host "^""Skipping. Argument `"^""$value`"^"" for property `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; } else {; Write-Error "^""Failed to set using $($command.Name): $_"^""; exit 1; }; }" >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Signature Updates" /v "SignatureUpdateInterval" /t REG_DWORD /d 24 /f >nul 2>&1 PowerShell -ExecutionPolicy Unrestricted -Command "$propertyName = 'SignatureUpdateInterval'; $value = '24'; if((Get-MpPreference -ErrorAction Ignore).$propertyName -eq $value) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is already `"^""$value`"^"" as desired."^""; exit 0; }; $command = Get-Command 'Set-MpPreference' -ErrorAction Ignore; if (!$command) {; Write-Warning 'Skipping. Command not found: "^""Set-MpPreference"^"".'; exit 0; }; if(!$command.Parameters.Keys.Contains($propertyName)) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; }; try {; Invoke-Expression "^""$($command.Name) -Force -$propertyName `$value -ErrorAction Stop"^""; Set-MpPreference -Force -SignatureUpdateInterval $value -ErrorAction Stop; Write-Host "^""Successfully set `"^""$propertyName`"^"" to `"^""$value`"^""."^""; exit 0; } catch {; if ( $_.FullyQualifiedErrorId -like '*0x800106ba*') {; Write-Warning "^""Cannot $($command.Name): Defender service (WinDefend) is not running. Try to enable it (revert) and re-run this?"^""; exit 0; } elseif (($_ | Out-String) -like '*Cannot convert*') {; Write-Host "^""Skipping. Argument `"^""$value`"^"" for property `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; } else {; Write-Error "^""Failed to set using $($command.Name): $_"^""; exit 1; }; }" >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Signature Updates" /v "CheckAlternateHttpLocation" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Signature Updates" /v "CheckAlternateDownloadLocation" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\System\CurrentControlSet\Control\WMI\Autologger\DefenderApiLogger" /v "Start" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\System\CurrentControlSet\Control\WMI\Autologger\DefenderAuditLogger" /v "Start" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Channels\Microsoft-Windows-Windows Defender/Operational" /v "Enabled" /t Reg_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Channels\Microsoft-Windows-Windows Defender/WHC" /v "Enabled" /t Reg_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Reporting" /v "DisableGenericRePorts" /t REG_DWORD /d 1 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Reporting" /v "WppTracingLevel" /t REG_DWORD /d 1 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\AppHVSI" /v "AuditApplicationGuard" /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender Security Center\Systray" /v "HideSystray" /t REG_DWORD /d "1" /f >nul 2>&1 reg delete "HKLM\SOFTWARE\Classes\CLSID\{09A47860-11B0-4DA5-AFA5-26D86198A780}\InprocServer32" /va /f >nul 2>&1 reg delete "HKCR\CLSID\{09A47860-11B0-4DA5-AFA5-26D86198A780}" /v "InprocServer32" /f >nul 2>&1 reg delete "HKCR\*\shellex\ContextMenuHandlers" /v "EPP" /f >nul 2>&1 reg delete "HKCR\Directory\shellex\ContextMenuHandlers" /v "EPP" /f >nul 2>&1 reg delete "HKCR\Drive\shellex\ContextMenuHandlers" /v "EPP" /f >nul 2>&1 reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "SecurityHealth" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\UX Configuration" /v "UILockdown" /t REG_DWORD /d "1" /f >nul 2>&1 PowerShell -ExecutionPolicy Unrestricted -Command "$propertyName = 'DisablePrivacyMode'; $value = $True; if((Get-MpPreference -ErrorAction Ignore).$propertyName -eq $value) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is already `"^""$value`"^"" as desired."^""; exit 0; }; $command = Get-Command 'Set-MpPreference' -ErrorAction Ignore; if (!$command) {; Write-Warning 'Skipping. Command not found: "^""Set-MpPreference"^"".'; exit 0; }; if(!$command.Parameters.Keys.Contains($propertyName)) {; Write-Host "^""Skipping. `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; }; try {; Invoke-Expression "^""$($command.Name) -Force -$propertyName `$value -ErrorAction Stop"^""; Set-MpPreference -Force -DisablePrivacyMode $value -ErrorAction Stop; Write-Host "^""Successfully set `"^""$propertyName`"^"" to `"^""$value`"^""."^""; exit 0; } catch {; if ( $_.FullyQualifiedErrorId -like '*0x800106ba*') {; Write-Warning "^""Cannot $($command.Name): Defender service (WinDefend) is not running. Try to enable it (revert) and re-run this?"^""; exit 0; } elseif (($_ | Out-String) -like '*Cannot convert*') {; Write-Host "^""Skipping. Argument `"^""$value`"^"" for property `"^""$propertyName`"^"" is not supported for `"^""$($command.Name)`"^""."^""; exit 0; } else {; Write-Error "^""Failed to set using $($command.Name): $_"^""; exit 1; }; }" >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender Security Center\Virus and threat protection" /v "UILockdown" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender Security Center\Virus and threat protection" /v "HideRansomwareRecovery" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender Security Center\Family options" /v "UILockdown" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender Security Center\Device performance and health" /v "UILockdown" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender Security Center\Account protection" /v "UILockdown" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender Security Center\App and Browser protection" /v "UILockdown" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender Security Center\Firewall and network protection" /v "UILockdown" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender Security Center\Device security" /v "UILockdown" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender Security Center\Device security" /v "DisableClearTpmButton" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender Security Center\Device security" /v "HideSecureBoot" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender Security Center\Device security" /v "HideTPMTroubleshooting" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender Security Center\Device security" /v "DisableTpmFirmwareUpdateWarning" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Windows.SystemToast.SecurityAndMaintenance" /v "Enabled" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKCU\Software\Policies\Microsoft\Windows Defender\UX Configuration" /v "Notification_Suppress" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKCU\Software\Microsoft\Windows Defender\UX Configuration" /v "Notification_Suppress" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\UX Configuration" /v "SuppressRebootNotification" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender Security Center\Notifications" /v "DisableNotifications" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\Windows Defender Security Center\Notifications" /v "DisableNotifications" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender Security Center\Notifications" /v "DisableEnhancedNotifications" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\Windows Defender Security Center\Notifications" /v "DisableEnhancedNotifications" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Reporting" /v "DisableEnhancedNotifications" /t REG_DWORD /d "1" /f >nul 2>&1 schtasks /Change /TN "Microsoft\Windows\ExploitGuard\ExploitGuard MDM policy Refresh" /Disable >nul 2>&1 schtasks /Change /TN "Microsoft\Windows\Windows Defender\Windows Defender Cache Maintenance" /Disable >nul 2>&1 schtasks /Change /TN "Microsoft\Windows\Windows Defender\Windows Defender Cleanup" /Disable >nul 2>&1 schtasks /Change /TN "Microsoft\Windows\Windows Defender\Windows Defender Scheduled Scan" /Disable >nul 2>&1 schtasks /Change /TN "Microsoft\Windows\Windows Defender\Windows Defender Verification" /Disable >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\System" /v "EnableSmartScreen" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" /v "SmartScreenEnabled" /t REG_SZ /d "Off" /f >nul 2>&1 reg add "HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Explorer" /v "SmartScreenEnabled" /t REG_SZ /d "Off" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\System" /v "ShellSmartScreenLevel" /t REG_SZ /d "Warn" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "SmartScreenPuaEnabled" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\MicrosoftEdge\PhishingFilter" /v "EnabledV9" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\MicrosoftEdge\PhishingFilter" /v "PreventOverride" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\PhishingFilter" /v "EnabledV9" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\PhishingFilter" /v "PreventOverride" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "SmartScreenEnabled" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "PreventSmartScreenPromptOverride" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0" /v "2301" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\SmartScreen" /v "ConfigureAppInstallControl" /t REG_SZ /d "Anywhere" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\SmartScreen" /v "ConfigureAppInstallControlEnabled" /t "REG_DWORD" /d "0" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost" /v "EnableWebContentEvaluation" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\AppHost" /v "EnableWebContentEvaluation" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v "NoAutoUpdate" /t "REG_DWORD" /d "0" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v "AUOptions" /t "REG_DWORD" /d "0" /f >nul 2>&1 PowerShell -ExecutionPolicy Unrestricted -Command "$serviceName = 'UsoSvc'; Write-Host "^""Disabling service: `"^""$serviceName`"^""."^""; <# -- 1. Skip if service does not exist #>; $service = Get-Service -Name $serviceName -ErrorAction SilentlyContinue; if(!$service) {; Write-Host "^""Service `"^""$serviceName`"^"" could not be not found, no need to disable it."^""; Exit 0; }; <# -- 2. Stop if running #>; if ($service.Status -eq [System.ServiceProcess.ServiceControllerStatus]::Running) {; Write-Host "^""`"^""$serviceName`"^"" is running, stopping it."^""; try {; Stop-Service -Name "^""$serviceName"^"" -Force -ErrorAction Stop; Write-Host "^""Stopped `"^""$serviceName`"^"" successfully."^""; } catch {; Write-Warning "^""Could not stop `"^""$serviceName`"^"", it will be stopped after reboot: $_"^""; }; } else {; Write-Host "^""`"^""$serviceName`"^"" is not running, no need to stop."^""; }; <# -- 3. Skip if already disabled #>; $startupType = $service.StartType <# Does not work before .NET 4.6.1 #>; if(!$startupType) {; $startupType = (Get-WmiObject -Query "^""Select StartMode From Win32_Service Where Name='$serviceName'"^"" -ErrorAction Ignore).StartMode; if(!$startupType) {; $startupType = (Get-WmiObject -Class Win32_Service -Property StartMode -Filter "^""Name='$serviceName'"^"" -ErrorAction Ignore).StartMode; }; }; if($startupType -eq 'Disabled') {; Write-Host "^""$serviceName is already disabled, no further action is needed"^""; }; <# -- 4. Disable service #>; try {; Set-Service -Name "^""$serviceName"^"" -StartupType Disabled -Confirm:$False -ErrorAction Stop; Write-Host "^""Disabled `"^""$serviceName`"^"" successfully."^""; } catch {; Write-Error "^""Could not disable `"^""$serviceName`"^"": $_"^""; }" >nul 2>&1 set "file=C:\Vitality\Info\privacyoversec" if not exist "%file%" ( echo Vitality > "%file%" set /a "ran_optimizations+=1" ) cd C:\Vitality set "formatted_optimizations=%ran_optimizations%" if %formatted_optimizations% LSS 10 set "formatted_optimizations= %formatted_optimizations%" echo set "ran_optimizations=%ran_optimizations%"> v.bat :skippingprivacyoversec if "%UIForPrivacy%"=="False" goto skippinguiforprivacy echo Applying UI For Privacy REM Disable Online Tips reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "AllowOnlineTips" /t REG_DWORD /d 0 /f >nul 2>&1 REM Disable Internet-based file associations reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoInternetOpenWith" /t REG_DWORD /d 1 /f >nul 2>&1 REM Disable online printing wizard reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoOnlinePrintsWizard" /t REG_DWORD /d 1 /f >nul 2>&1 REM Disable publishing wizard reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoPublishingWizard" /t REG_DWORD /d 1 /f >nul 2>&1 REM Disable Windows web services reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoWebServices" /t REG_DWORD /d 1 /f >nul 2>&1 REM Disable recent documents history reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoRecentDocsHistory" /t REG_DWORD /d 1 /f >nul 2>&1 REM Clear recent documents on user logout reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "ClearRecentDocsOnExit" /t REG_DWORD /d 1 /f >nul 2>&1 REM Disable tile application notifications reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\System" /v "DisableLockScreenAppNotifications" /t REG_DWORD /d 1 /f >nul 2>&1 REM Disable "Open with" from Microsoft Store reg add "HKCU\Software\Policies\Microsoft\Windows\CurrentVersion\PushNotifications" /v "NoTileApplicationNotification" /t REG_DWORD /d 1 /f >nul 2>&1 REM Hide recent files in Explorer reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Explorer" /v "NoUseStoreOpenWith" /t REG_DWORD /d 1 /f >nul 2>&1 REM Delete specific folder delegate for HomeFolderDesktop reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer" /v "ShowRecent" /d 0 /t "REG_DWORD" /f >nul 2>&1 REM Delete specific folder delegate for HomeFolderDesktop (64-bit only) if not %PROCESSOR_ARCHITECTURE%==x86 ( REM is 64 bit? reg delete "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\HomeFolderDesktop\NameSpace\DelegateFolders\{3134ef9c-6b18-4996-ad04-ed5912e00eb5}" /f >nul 2>&1 ) REM Disable sync provider notifications reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ShowSyncProviderNotifications" /d 0 /t REG_DWORD /f >nul 2>&1 REM Disable physical camera LED reg add "HKLM\SOFTWARE\Microsoft\OEM\Device\Capture" /v "NoPhysicalCameraLED" /d 1 /t REG_DWORD /f >nul 2>&1 set "file=C:\Vitality\Info\uiforprivacy" if not exist "%file%" ( echo Vitality > "%file%" set /a "ran_optimizations+=1" ) cd C:\Vitality set "formatted_optimizations=%ran_optimizations%" if %formatted_optimizations% LSS 10 set "formatted_optimizations= %formatted_optimizations%" echo set "ran_optimizations=%ran_optimizations%"> v.bat :skippinguiforprivacy if "%Minecraft%"=="False" goto skippingminecraft echo Applying Minecraft 1.8.9 Settings if exist "%appdata%\.minecraft\optionsof.txt-old" del "%appdata%\.minecraft\optionsof.txt-old" if exist "%appdata%\.minecraft\optionsof.txt" ( ren "%appdata%\.minecraft\optionsof.txt" "optionsof.txt-old" ) echo ofFogType:3 > "%appdata%\.minecraft\optionsof.txt" echo ofFogStart:0.8 >> "%appdata%\.minecraft\optionsof.txt" echo ofMipmapType:0 >> "%appdata%\.minecraft\optionsof.txt" echo ofOcclusionFancy:False >> "%appdata%\.minecraft\optionsof.txt" echo ofSmoothFps:False >> "%appdata%\.minecraft\optionsof.txt" echo ofSmoothWorld:true >> "%appdata%\.minecraft\optionsof.txt" echo ofAoLevel:1.0 >> "%appdata%\.minecraft\optionsof.txt" echo ofClouds:3 >> "%appdata%\.minecraft\optionsof.txt" echo ofCloudsHeight:0.0 >> "%appdata%\.minecraft\optionsof.txt" echo ofTrees:1 >> "%appdata%\.minecraft\optionsof.txt" echo ofDroppedItems:1 >> "%appdata%\.minecraft\optionsof.txt" echo ofRain:0 >> "%appdata%\.minecraft\optionsof.txt" echo ofAnimatedWater:0 >> "%appdata%\.minecraft\optionsof.txt" echo ofAnimatedLava:0 >> "%appdata%\.minecraft\optionsof.txt" echo ofAnimatedFire:true >> "%appdata%\.minecraft\optionsof.txt" echo ofAnimatedPortal:true >> "%appdata%\.minecraft\optionsof.txt" echo ofAnimatedRedstone:true >> "%appdata%\.minecraft\optionsof.txt" echo ofAnimatedExplosion:true >> "%appdata%\.minecraft\optionsof.txt" echo ofAnimatedFlame:true >> "%appdata%\.minecraft\optionsof.txt" echo ofAnimatedSmoke:true >> "%appdata%\.minecraft\optionsof.txt" echo ofVoidParticles:true >> "%appdata%\.minecraft\optionsof.txt" echo ofWaterParticles:true >> "%appdata%\.minecraft\optionsof.txt" echo ofPortalParticles:true >> "%appdata%\.minecraft\optionsof.txt" echo ofPotionParticles:true >> "%appdata%\.minecraft\optionsof.txt" echo ofFireworkParticles:true >> "%appdata%\.minecraft\optionsof.txt" echo ofDrippingWaterLava:true >> "%appdata%\.minecraft\optionsof.txt" echo ofAnimatedTerrain:true >> "%appdata%\.minecraft\optionsof.txt" echo ofAnimatedTextures:true >> "%appdata%\.minecraft\optionsof.txt" echo ofRainSplash:true >> "%appdata%\.minecraft\optionsof.txt" echo ofLagometer:False >> "%appdata%\.minecraft\optionsof.txt" echo ofShowFps:False >> "%appdata%\.minecraft\optionsof.txt" echo ofAutoSaveTicks:4000 >> "%appdata%\.minecraft\optionsof.txt" echo ofBetterGrass:3 >> "%appdata%\.minecraft\optionsof.txt" echo ofConnectedTextures:2 >> "%appdata%\.minecraft\optionsof.txt" echo ofWeather:true >> "%appdata%\.minecraft\optionsof.txt" echo ofSky:False >> "%appdata%\.minecraft\optionsof.txt" echo ofStars:False >> "%appdata%\.minecraft\optionsof.txt" echo ofSunMoon:False >> "%appdata%\.minecraft\optionsof.txt" echo ofVignette:1 >> "%appdata%\.minecraft\optionsof.txt" echo ofChunkUpdates:1 >> "%appdata%\.minecraft\optionsof.txt" echo ofChunkUpdatesDynamic:False >> "%appdata%\.minecraft\optionsof.txt" echo ofTime:0 >> "%appdata%\.minecraft\optionsof.txt" echo ofClearWater:False >> "%appdata%\.minecraft\optionsof.txt" echo ofAaLevel:0 >> "%appdata%\.minecraft\optionsof.txt" echo ofAfLevel:1 >> "%appdata%\.minecraft\optionsof.txt" echo ofProfiler:False >> "%appdata%\.minecraft\optionsof.txt" echo ofBetterSnow:False >> "%appdata%\.minecraft\optionsof.txt" echo ofSwampColors:true >> "%appdata%\.minecraft\optionsof.txt" echo ofRandomEntities:true >> "%appdata%\.minecraft\optionsof.txt" echo ofSmoothBiomes:true >> "%appdata%\.minecraft\optionsof.txt" echo ofCustomFonts:true >> "%appdata%\.minecraft\optionsof.txt" echo ofCustomColors:true >> "%appdata%\.minecraft\optionsof.txt" echo ofCustomItems:true >> "%appdata%\.minecraft\optionsof.txt" echo ofCustomSky:true >> "%appdata%\.minecraft\optionsof.txt" echo ofShowCapes:true >> "%appdata%\.minecraft\optionsof.txt" echo ofNaturalTextures:False >> "%appdata%\.minecraft\optionsof.txt" echo ofEmissiveTextures:true >> "%appdata%\.minecraft\optionsof.txt" echo ofLazyChunkLoading:true >> "%appdata%\.minecraft\optionsof.txt" echo ofRenderRegions:False >> "%appdata%\.minecraft\optionsof.txt" echo ofSmartAnimations:False >> "%appdata%\.minecraft\optionsof.txt" echo ofDynamicFov:true >> "%appdata%\.minecraft\optionsof.txt" echo ofAlternateBlocks:true >> "%appdata%\.minecraft\optionsof.txt" echo ofDynamicLights:3 >> "%appdata%\.minecraft\optionsof.txt" echo ofScreenshotSize:1 >> "%appdata%\.minecraft\optionsof.txt" echo ofCustomEntityModels:true >> "%appdata%\.minecraft\optionsof.txt" echo ofCustomGuis:true >> "%appdata%\.minecraft\optionsof.txt" echo ofShowGlErrors:true >> "%appdata%\.minecraft\optionsof.txt" echo ofFullscreenMode:Default >> "%appdata%\.minecraft\optionsof.txt" echo ofFastMath:False >> "%appdata%\.minecraft\optionsof.txt" echo ofFastRender:False >> "%appdata%\.minecraft\optionsof.txt" echo ofTranslucentBlocks:1 >> "%appdata%\.minecraft\optionsof.txt" echo key_of.key.zoom:46 >> "%appdata%\.minecraft\optionsof.txt" :skippingminecraft if "%Valorant%"=="False" goto skippingvalorant echo Applying Valorant Tweaks reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\VALORANT-Win64-Shipping.exe\PerfOptions" /v "CpuPriorityClass" /t REG_DWORD /d "3" /f :skippingvalorant if "%Fortnite%"=="False" goto skippingfortnite echo Applying Fortnite Tweaks reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\FortniteClient-Win64-Shipping.exe\PerfOptions" /v "CpuPriorityClass" /t REG_DWORD /d "3" /f :skippingfortnite :End cls echo. echo. echo. echo. echo. echo. echo. echo. echo. echo. echo. echo. echo. echo. echo %r% _ _ _____ __ _ _ _____ _%l% echo %r% \ \ / ^| ^| ^| ^| / /\ ^| ^| ^| ^| ^| ^| \ \_/%l% echo %r%\_\/ ^|_^| ^|_^| /_/--\ ^|_^|__ ^|_^| ^|_^| ^|_^|%l% echo. echo Everything was applied succesfuly timeout /nobreak /t 3 >nul 2>&1 set "batch_file=%~f0" goto :Restart goto %LastPage% :Restart start "" "%batch_file%" exit :Revert cls echo. echo. echo. echo. echo. echo. echo. echo. echo. echo. echo. echo. echo. echo. echo %r% _ _ _____ __ _ _ _____ _%l% echo %r% \ \ / ^| ^| ^| ^| / /\ ^| ^| ^| ^| ^| ^| \ \_/%l% echo %r%\_\/ ^|_^| ^|_^| /_/--\ ^|_^|__ ^|_^| ^|_^| ^|_^|%l% echo. if "%FPS%"=="False" goto skippingfps echo Reverting FPS and Input Delay Tweaks if "%Visuals%" equ "True" ( REM Revert Windows Visuals reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects" /v "VisualFXSetting" /f > nul 2>&1 reg delete "HKCU\Control Panel\Desktop" /v "UserPreferencesMask" /f > nul 2>&1 reg delete "HKCU\Control Panel\Desktop" /v "DragFullWindows" /f > nul 2>&1 reg delete "HKCU\Control Panel\Desktop" /v "FontSmoothing" /f > nul 2>&1 reg delete "HKCU\Control Panel\Desktop\WindowMetrics" /v "MinAnimate" /f > nul 2>&1 reg delete "HKCU\Software\Microsoft\Windows\DWM" /v "EnableAeroPeek" /f > nul 2>&1 reg delete "HKCU\Software\Microsoft\Windows\DWM" /v "AlwaysHibernateThumbnails" /f > nul 2>&1 reg delete "HKCU\Software\Microsoft\Windows\DWM" /v "ListviewShadow" /f > nul 2>&1 reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "IconsOnly" /f > nul 2>&1 reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ListviewAlphaSelect" /f > nul 2>&1 reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "TaskbarAnimations" /f > nul 2>&1 reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ListviewShadow" /f > nul 2>&1 ) if "%WindowsUpdate%" equ "True" ( REM Reverting Windows Update reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /f > nul 2>&1 reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /f > nul 2>&1 reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\DriverSearching" /f > nul 2>&1 reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Device Metadata" /f > nul 2>&1 reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" /f > nul 2>&1 reg delete "HKLM\SYSTEM\CurrentControlSet\Services\wuauserv" /f > nul 2>&1 reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /f > nul 2>&1 reg delete "HKLM\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" /f > nul 2>&1 ) REM Can't be reverted since i didn't save original state :: if "%WindowsServices%" equ "True" ( :: REM Configure Windows Services :: net pause DiagTrack >nul 2>&1 :: net pause DialogBlockingService >nul 2>&1 :: net pause MsKeyboardFilter >nul 2>&1 :: net pause NetMsmqActivator >nul 2>&1 :: net pause PcaSvc >nul 2>&1 :: net pause SEMgrSvc >nul 2>&1 :: net pause ShellHWDetection >nul 2>&1 :: net pause shpamsvc >nul 2>&1 :: net pause SysMain >nul 2>&1 :: net pause Themes >nul 2>&1 :: net pause TrkWks >nul 2>&1 :: net pause tzautoupdate >nul 2>&1 :: net pause uhssvc >nul 2>&1 :: net pause W3SVC >nul 2>&1 :: net pause OneSyncSvc >nul 2>&1 :: net pause WdiSystemHost >nul 2>&1 :: net pause WdiServiceHost >nul 2>&1 :: net pause SCardSvr >nul 2>&1 :: net pause ScDeviceEnum >nul 2>&1 :: net pause SCPolicySvc >nul 2>&1 :: net pause SensorDataService >nul 2>&1 :: net pause SensrSvc >nul 2>&1 :: net pause Beep >nul 2>&1 :: net pause cdfs >nul 2>&1 :: net pause cdrom >nul 2>&1 :: net pause cnghwassist >nul 2>&1 :: net pause GpuEnergyDrv >nul 2>&1 :: net pause GpuEnergyDr >nul 2>&1 :: net pause Telemetry >nul 2>&1 :: net pause VerifierExt >nul 2>&1 :: sc config "DiagTrack" start= disabled >nul 2>&1 :: sc config "DialogBlockingService" start= disabled >nul 2>&1 :: sc config "MsKeyboardFilter" start= disabled >nul 2>&1 :: sc config "NetMsmqActivator" start= disabled >nul 2>&1 :: sc config "PcaSvc" start= disabled >nul 2>&1 :: sc config "SEMgrSvc" start= disabled >nul 2>&1 :: sc config "ShellHWDetection" start= disabled >nul 2>&1 :: sc config "shpamsvc" start= disabled >nul 2>&1 :: sc config "SysMain" start= disabled >nul 2>&1 :: sc config "Themes" start= disabled >nul 2>&1 :: sc config "TrkWks" start= disabled >nul 2>&1 :: sc config "tzautoupdate" start= disabled >nul 2>&1 :: sc config "uhssvc" start= disabled >nul 2>&1 :: sc config "W3SVC" start= disabled >nul 2>&1 :: sc config "OneSyncSvc" start= disabled >nul 2>&1 :: sc config "WdiSystemHost" start= disabled >nul 2>&1 :: sc config "WdiServiceHost" start= disabled >nul 2>&1 :: sc config "SCardSvr" start= disabled >nul 2>&1 :: sc config "ScDeviceEnum" start= disabled >nul 2>&1 :: sc config "SensorDataService" start= disabled >nul 2>&1 :: sc config "SensrSvc" start= disabled >nul 2>&1 :: sc config "Beep" start= disabled >nul 2>&1 :: sc config "cdfs" start= disabled >nul 2>&1 :: sc config "cdrom" start= disabled >nul 2>&1 :: sc config "cnghwassist" start= disabled >nul 2>&1 :: sc config "GpuEnergyDrv" start= disabled >nul 2>&1 :: sc config "GpuEnergyDr" start= disabled >nul 2>&1 :: sc config "Telemetry" start= disabled >nul 2>&1 :: sc config "VerifierExt" start= disabled >nul 2>&1 :: ) if "%Win32PrioritySeparation%" equ "True" ( REM Revert Win32 Priority Separation (26hex) reg delete "HKLM\SYSTEM\CurrentControlSet\Control\PriorityControl" /v "Win32PrioritySeparation" /f > nul 2>&1 ) if "%DisableSearchIndexing%" equ "True" ( REM Enable Search Indexing reg add "HKLM\SYSTEM\CurrentControlSet\Services\WSearch" /v "Start" /t REG_DWORD /d "2" /f > nul 2>&1 ) If "%WindowsDefender%" equ "True" ( REM Enable Windows Defender reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /f > nul 2>&1 reg delete "HKLM\SOFTWARE\Policies\Microsoft\Microsoft Antimalware\Real-Time Protection" /f > nul 2>&1 reg delete "HKLM\SYSTEM\CurrentControlSet\Services\WinDefend" /f > nul 2>&1 reg delete "HKLM\SYSTEM\CurrentControlSet\Services\wscsvc" /f > nul 2>&1 reg delete "HKLM\SYSTEM\CurrentControlSet\Services\SecurityHealthService" /f > nul 2>&1 reg delete "HKLM\SYSTEM\CurrentControlSet\Services\Sense" /f > nul 2>&1 ) If "%DisableFastStartup%" equ "True" ( REM Enable Fast Startup reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Power" /v "HiberbootEnabled" /t REG_DWORD /d "1" /f > nul 2>&1 ) If "%ReserveCPUResources%" equ "True" ( REM Remove reserving 10% of CPU Resources For Low-Priority Tasks reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" /v "SystemResponsiveness" /f > nul 2>&1 ) If "%DisableGamebarpresencewriter%" equ "True" ( REM Revert Gamebarpresencewriter reg delete "HKLM\SOFTWARE\Microsoft\WindowsRuntime\ActivatableClassId\Windows.Gaming.GameBar.PresenceServer.Internal.PresenceWriter" /f > nul 2>&1 ) :: If "%ProcessMitigations%"=="Enabled" ( :: REM Disable Process Mitigations :: Rem Initialize Mask To Get Mask Length :: PowerShell Set-ProcessMitigation -System -Disable CFG >nul 2>&1 :: :: REM Get Current Mask :: for /f "tokens=3 skip=2" %%a in ('reg query "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\kernel" /v "MitigationAuditOptions"') do ( :: set "mitigation_mask=%%a" :: ) :: :: REM Set All Values In Current Mask To 2 :: for /L %%a in (0,1,9) do ( :: set "mitigation_mask=!mitigation_mask:%%a=2!" :: ) :: :: REM Apply Mask To Kernel :: reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\kernel" /v "MitigationOptions" /t REG_BINARY /d "%mitigation_mask%" /f > nul 2>&1 :: reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\kernel" /v "MitigationAuditOptions" /t REG_BINARY /d "%mitigation_mask%" /f > nul 2>&1 :: :: ) If "%FSE%" equ "True" ( REM Revert FSO reg delete "HKCU\System\GameConfigStore" /v "GameDVR_DSEBehavior" /f > nul 2>&1 reg delete "HKCU\System\GameConfigStore" /v "GameDVR_DXGIHonorFSEWindowsCompatible" /f > nul 2>&1 reg delete "HKCU\System\GameConfigStore" /v "GameDVR_EFSEFeatureFlags" /f > nul 2>&1 reg delete "HKCU\System\GameConfigStore" /v "GameDVR_Enabled" /f > nul 2>&1 reg delete "HKCU\System\GameConfigStore" /v "GameDVR_FSEBehavior" /f > nul 2>&1 reg delete "HKCU\System\GameConfigStore" /v "GameDVR_FSEBehaviorMode" /f > nul 2>&1 reg delete "HKCU\System\GameConfigStore" /v "GameDVR_HonorUserFSEBehaviorMode" /f > nul 2>&1 reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\GameDVR" /f > nul 2>&1 ) If "%DisableSystemEnergySaving%" equ "True" ( REM Revert System Energy-Saving Techniques reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Power" /v "CoalescingTimerInterval" /f > nul 2>&1 ) If "%SVCSplitThreshold%" equ "True" ( REM Set SVCSplitThreshold To User Memory Size reg delete "HKLM\System\CurrentControlSet\Control" /v "SvcHostSplitThresholdInKB" /f > nul 2>&1 ) If "%DisableUSBPowerSavings%" equ "True" ( REM Disable USB Power Savings for %%a in ( EnhancedPowerManagementEnabled AllowIdleIrpInD3 EnableSelectiveSuspend DeviceSelectiveSuspended SelectiveSuspendEnabled SelectiveSuspendOn EnumerationRetryCount ExtPropDescSemaphore WaitWakeEnabled D3ColdSupported WdfDirectedPowerTransitionEnable EnableIdlePowerManagement IdleInWorkingState ) do for /f "delims=" %%b in ('reg query "HKLM\SYSTEM\CurrentControlSet\Enum" /s /f "%%a" ^| findstr "HKEY"') do reg add "%%b" /v "%%a" /t REG_DWORD /d "1" /f > NUL 2>&1 ) If "%EnableMSIMode%" equ "True" ( REM Enabling MSI Mode For All Suported Devices for /f "tokens=*" %%i in ('reg query "HKLM\SYSTEM\CurrentControlSet\Enum\PCI"^| findstr "HKEY"') do ( for /f "tokens=*" %%a in ('reg query "%%i"^| findstr "HKEY"') do reg add "%%a\Device Parameters\Interrupt Management\MessageSignaledInterruptProperties" /v "MSISupported" /t REG_DWORD /d "0" /f > NUL 2>&1 ) ) If "%DevicePriorityUndefined%" equ "True" ( REM Setting All Device's Priority To Undefined for /f "tokens=*" %%i in ('reg query "HKLM\SYSTEM\CurrentControlSet\Enum\PCI"^| findstr "HKEY"') do ( for /f "tokens=*" %%a in ('reg query "%%i"^| findstr "HKEY"') do reg delete "%%a\Device Parameters\Interrupt Management\Affinity Policy" /v "DevicePriority" /f > NUL 2>&1 ) ) If "%DisableBackgroundApps%" equ "True" ( REM Revert Background Apps reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications" /v "GlobalUserDisabled" /f > nul 2>&1 reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsRunInBackground" /f > nul 2>&1 reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Search" /v "BackgroundAppGlobalToggle" /f > nul 2>&1 ) If "%Winlogon%" equ "True" ( REM Set Winlogon to Normal Priority reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\winlogon.exe\PerfOptions" /f > nul 2>&1 ) If "%EnableGPUSheduling%" equ "True" ( REM Revert Hardware Accelerated GPU Scheduling reg delete "HKLM\SYSTEM\CurrentControlSet\Control\GraphicsDrivers" /v "HwSchMode" /f > nul 2>&1 ) If "%DisableSettingsSynchronization%" equ "True" ( REM Revert Settings Synchronization reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /f > nul 2>&1 ) If "%DisableRemoteAssistance%" equ "True" ( REM Disable Remote Assistance reg add "HKLM\System\CurrentControlSet\Control\Remote Assistance" /v "fAllowFullControl" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\System\CurrentControlSet\Control\Remote Assistance" /v "fAllowToGetHelp" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\System\CurrentControlSet\Control\Remote Assistance" /v "fEnableChatControl" /t REG_DWORD /d "1" /f >nul 2>&1 ) If "%PowerPlan%" equ "True" ( REM Revert Power Plan powercfg /setactive 381b4222-f694-41f0-9685-ff5bb260df2e > nul 2>&1 ) set "file=C:\Vitality\Info\fpsandinput" if not exist "%file%" ( echo Vitality > "%file%" set /a "ran_optimizations+=1" ) cd C:\Vitality set "formatted_optimizations=%ran_optimizations%" if %formatted_optimizations% LSS 10 set "formatted_optimizations= %formatted_optimizations%" echo set "ran_optimizations=%ran_optimizations%"> v.bat :skippingfps if "%Latency%"=="False" goto skippinglatency echo Reverting Latency Tweaks REM Remove Downloaded Stuff del "%SYSTEMDRIVE%\SetTimerResolution.exe" >nul 2>&1 del "%SYSTEMDRIVE%\Vitality\Resources\VisualCppRedist_AIO_x86_x64.exe" >nul 2>&1 del "%appdata%\Microsoft\Windows\Start Menu\Programs\Startup\low_audio_latency_no_console.exe" >nul 2>&1 if "%SpectreMeltdown%" equ "True" ( REM Spectre and Meltdown reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "FeatureSettings" /f > nul 2>&1 reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "FeatureSettingsOverride" /f > nul 2>&1 reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "FeatureSettingsOverrideMask" /f > nul 2>&1 ) REM Revert BCD Settings bcdedit /set disabledynamictick no > nul 2>&1 bcdedit /set useplatformclock true > nul 2>&1 bcdedit /deletevalue useplatformtick > nul 2>&1 if "%DisableIDLE%" equ "True" ( REM Enable Idle powercfg -setacvalueindex scheme_current sub_processor 5d76a2ca-e8c0-402f-a133-2158492d58ad 0 >nul 2>&1 REM Apply The Changes powercfg -setactive scheme_current >nul 2>&1 ) REM Revert Network Throttling reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" /v "NetworkThrottlingIndex" /f > nul 2>&1 if "%MMCSS%" equ "True" ( REM Revert MMCSS Configuration reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" /v "NoLazyMode" /f > nul 2>&1 reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" /v "AlwaysOn" /f > nul 2>&1 reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" /f > nul 2>&1 ) if "%CSRSS%" equ "True" ( REM Revert CSRSS reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\csrss.exe\PerfOptions" /f > nul 2>&1 ) If "%TimerResolution%" equ "True" ( del "%appdata%\Microsoft\Windows\Start Menu\Programs\Startup\TimerResolutionShortcut.lnk" >nul 2>&1 reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\kernel" /v "GlobalTimerResolutionRequests" /f > nul 2>&1 ) set "file=C:\Vitality\Info\latency" if not exist "%file%" ( echo Vitality > "%file%" set /a "ran_optimizations+=1" ) cd C:\Vitality set "formatted_optimizations=%ran_optimizations%" if %formatted_optimizations% LSS 10 set "formatted_optimizations= %formatted_optimizations%" echo set "ran_optimizations=%ran_optimizations%"> v.bat :skippinglatency if "%Network%"=="False" goto skippingnetwork echo Reverting Network Tweaks if "%DisableNaglesAlgorithm%" equ "True" ( REM Revert Nagle's Algorithm reg delete "HKLM\SOFTWARE\Microsoft\MSMQ\Parameters" /v "TCPNoDelay" /f > nul 2>&1 for /f "tokens=3*" %%i in ('reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkCards" /f "ServiceName" /s ^|findstr /i /l "ServiceName"') do ( reg delete "HKLM\System\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\%%i" /v "TCPNoDelay" /f reg delete "HKLM\System\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\%%i" /v "TcpAckFrequency" /f reg delete "HKLM\System\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\%%i" /v "TcpDelAckTicks" /f ) >nul 2>&1 ) if "%DNS%" equ "True" ( REM Revert DNS netsh interface ip set dns name="Ethernet" source=dhcp > nul 2>&1 ) if "%WindowsNetworkSettigns%" equ "True" ( REM Revert Network Task Offloading Netsh int ip set global taskoffload=enabled > nul 2>&1 reg delete HKLM\SYSTEM\CurrentControlSet\Services\TCPIP\Parameters /v DisableTaskOffload /f > nul 2>&1 REM Disable source routing netsh int ip set global sourceroutingbehavior=drop >nul 2>&1 REM Disable DHCP Media Sense netsh int ip set global dhcpmediasense=disabled >nul 2>&1 REM Disable Media Sense event logging netsh int ip set global mediasenseeventlog=disabled >nul 2>&1 REM Disable MLD for IPv6 netsh int ip set global mldlevel=none >nul 2>&1 REM Set global TCP settings netsh int tcp set global chimney=enabled congestionprovider=ctcp dca=enabled netdma=disabled >nul 2>&1 REM Disable Teredo tunneling netsh interface teredo set state disabled >nul 2>&1 REM Disable ISATAP state netsh int isatap set state disable >nul 2>&1 REM Find network interface number for /f "tokens=1" %%i in ('netsh int ip show interfaces ^| findstr [0-9]') do set INTERFACE=%%i >nul 2>&1 REM Set interface parameters netsh int ip set interface %INTERFACE% basereachable=3600000 dadtransmits=0 otherstateful=disabled routerdiscovery=disabled store=persistent >nul 2>&1 REM Disable RSC (Receive Segment Coalescing) netsh int tcp set global rsc=disabled >nul 2>&1 REM Setting Initial Retransmission Timeout netsh int tcp set global initialRto=2000 >nul 2>&1 REM Disable TCP heuristics netsh int tcp set heuristics disabled >nul 2>&1 REM Disable window scaling heuristics netsh int tcp set heuristics wsh=disabled >nul 2>&1 REM Disable Multipath TCP netsh int tcp set security mpp=disabled >nul 2>&1 REM Disable TCP security profiles netsh int tcp set security profiles=disabled >nul 2>&1 REM Setting TCP dynamic port range netsh int ipv4 set dynamicport tcp start=1025 num=64511 >nul 2>&1 REM Setting UDP dynamic port range netsh int ipv4 set dynamicport udp start=1025 num=64511 >nul 2>&1 REM Disable Windows Scaling heuristics in PowerShell powershell Set-NetTCPSetting -SettingName "*" -ForceWS Disabled >nul 2>&1 ) if "%Autotunning%" equ "True" ( REM Enable Autotunning netsh int tcp set global autotuninglevel=normal > nul 2>&1 ) set "file=C:\Vitality\Info\network" if not exist "%file%" ( echo Vitality > "%file%" set /a "ran_optimizations+=1" ) cd C:\Vitality set "formatted_optimizations=%ran_optimizations%" if %formatted_optimizations% LSS 10 set "formatted_optimizations= %formatted_optimizations%" echo set "ran_optimizations=%ran_optimizations%"> v.bat :skippingnetwork if "%KBM%"=="False" goto skippingkbm echo Reverting KBM Tweaks if "%KeyboardDataSize%" equ "True" ( REM Revert KeyboardDataQueueSize To 100 Dec reg add "HKLM\SYSTEM\CurrentControlSet\services\kbdclass\Parameters" /v "KeyboardDataQueueSize" /t REG_DWORD /d "100" /f >nul 2>&1 ) if "%AdjustKeyboardParameters%" equ "True" ( REM Revert keyboard parameters reg add "HKCU\Control Panel\Keyboard" /v "KeyboardSpeed" /t REG_SZ /d "31" /f >nul 2>&1 reg add "HKCU\Control Panel\Keyboard" /v "KeyboardDelay" /t REG_SZ /d "1" /f >nul 2>&1 ) if "%KeyboardAccessibilitySettings%" equ "True" ( REM Revert keyboard accessibility settings reg delete "HKCU\Control Panel\Accessibility\Keyboard Response" /va /f >nul 2>&1 ) if "%MouseDataSize%" equ "True" ( REM Revert MouseDataQueueSize To 100 Dec reg add "HKLM\SYSTEM\CurrentControlSet\services\mouclass\Parameters" /v "MouseDataQueueSize" /t REG_DWORD /d "100" /f >nul 2>&1 ) if "%DisablePointerAcceleration%" equ "True" ( REM Revert Pointer Acceleration reg add "HKCU\Control Panel\Mouse" /v "MouseSpeed" /t REG_SZ /d "1" /f >nul 2>&1 reg add "HKCU\Control Panel\Mouse" /v "MouseThreshold1" /t REG_SZ /d "6" /f >nul 2>&1 reg add "HKCU\Control Panel\Mouse" /v "MouseThreshold2" /t REG_SZ /d "10" /f >nul 2>&1 ) if "%MouseAccessibilitySettings%" equ "True" ( REM Configures mouse accessibility settings reg delete "HKCU\Control Panel\Accessibility\MouseKeys" /va /f >nul 2>&1 ) set "file=C:\Vitality\Info\kbm" if not exist "%file%" ( echo Vitality > "%file%" set /a "ran_optimizations+=1" ) cd C:\Vitality set "formatted_optimizations=%ran_optimizations%" if %formatted_optimizations% LSS 10 set "formatted_optimizations= %formatted_optimizations%" echo set "ran_optimizations=%ran_optimizations%"> v.bat :skippingkbm if "%Task%"=="False" goto skippingtask echo Reverting Task Scheduler Tweaks REM Revert most Scheduler Tasks for %%x in ( "\Microsoft\Windows\Customer Experience Improvement Program\Consolidator" "\Microsoft\Windows\Customer Experience Improvement Program\UsbCeip" "\Microsoft\Windows\Diagnosis\Scheduled" "\Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticDataCollector" "\Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticResolver" "\Microsoft\Windows\Location\Notifications" "\Microsoft\Windows\Location\WindowsActionDialog" "\Microsoft\Windows\Offline Files\Background Synchronization" "\Microsoft\Windows\Offline Files\Logon Synchronization" "\Microsoft\Windows\Time Synchronization\ForceSynchronizeTime" "\Microsoft\Windows\Time Synchronization\SynchronizeTime" "\Microsoft\Windows\Time Zone\SynchronizeTimeZone" "\Microsoft\Windows\UpdateOrchestrator\Schedule Scan" "\Microsoft\Windows\UpdateOrchestrator\Schedule Scan Static Task" "\Microsoft\Windows\UpdateOrchestrator\Reboot" "\Microsoft\Windows\USB\Usb-Notifications" "\Microsoft\Windows\WDI\ResolutionHost" "\Microsoft\Windows\WindowsUpdate\Scheduled Start" "\Microsoft\Windows\Workplace Join\Automatic-Device-Join" "\Microsoft\Windows\Workplace Join\Recovery-Check" )Do ( schtasks /Change /TN %%x /Enable >nul 2>&1 ) set "file=C:\Vitality\Info\task" if not exist "%file%" ( echo Vitality > "%file%" set /a "ran_optimizations+=1" ) cd C:\Vitality set "formatted_optimizations=%ran_optimizations%" if %formatted_optimizations% LSS 10 set "formatted_optimizations= %formatted_optimizations%" echo set "ran_optimizations=%ran_optimizations%"> v.bat :skippingtask if "%GPU%"=="False" goto skippinggpu If %gpu1%==Nvidia ( goto nvidia ) else ( goto checkforradeon ) :checkforradeon If %gpu1%==AMD ( goto radeon ) else ( goto nullgpu ) :nullgpu echo Your GPU is not supported by Vitality. goto skippinggpu :nvidia if "%GameMode%" equ "True" ( echo Reverting Nvidia Tweaks REM Enable Game Mode reg delete "HKCU\Software\Microsoft\GameBar" /v "AllowAutoGameMode" /f >nul 2>&1 reg delete "HKCU\Software\Microsoft\GameBar" /v "AutoGameModeEnabled" /f >nul 2>&1 ) if "%NvidiaTelemetry%" equ "True" ( REM Enable Nvidia Telemetry reg delete "HKLM\SOFTWARE\NVIDIA Corporation\NvControlPanel2\Client" /v "OptInOrOutPreference" /f >nul 2>&1 reg delete "HKLM\SOFTWARE\NVIDIA Corporation\Global\FTS" /v "EnableRID44231" /f >nul 2>&1 reg delete "HKLM\SOFTWARE\NVIDIA Corporation\Global\FTS" /v "EnableRID64640" /f >nul 2>&1 reg delete "HKLM\SOFTWARE\NVIDIA Corporation\Global\FTS" /v "EnableRID66610" /f >nul 2>&1 ) REM Registry Key For NVIDIA Card for /f %%a in ('reg query "HKLM\System\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}" /t REG_SZ /s /e /f "NVIDIA" ^| findstr "HKEY"') do ( if "%DisableTiledDisplay%" equ "True" ( REM Revert Tiled Display reg add "%%a" /v "EnableTiledDisplay" /t REG_DWORD /d "1" /f > nul 2>&1 ) if "%DisableTCC%" equ "True" ( REM Revert TCC reg add "%%a" /v "TCCSupported" /t REG_DWORD /d "1" /f > nul 2>&1 ) if "%ForceContiguousMemoryAllocation%" equ "True" ( REM Force contiguous memory allocation reg add "%%a" /v "PreferSystemMemoryContiguous" /t REG_DWORD /d "0" /f > nul 2>&1 ) if "%DisableScaling%" equ "True" ( REM Enable Scaling for /f %%i in ('reg query "HKLM\SYSTEM\CurrentControlSet\Control\GraphicsDrivers" /s /f "Scaling"^| findstr "HKEY"') do reg add "%%i" /v "Scaling" /t REG_DWORD /d "0" /f >nul 2>&1 ) ) if "%P0States%" equ "True" ( REM Revert P0-State for /f %%i in ('wmic path Win32_VideoController get PNPDeviceID^| findstr /L "PCI\VEN_"') do ( for /f "tokens=3" %%a in ('reg query "HKLM\SYSTEM\CurrentControlSet\Enum\%%i" /v "Driver"') do ( for /f %%i in ('echo %%a ^| findstr "{"') do ( reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\%%i" /v "DisableDynamicPstate" /t REG_DWORD /d "0" /f > nul 2>&1 ) ) ) ) if "%HDCP%" equ "True" ( REM Enable HDCP for /f %%i in ('wmic path Win32_VideoController get PNPDeviceID^| findstr /L "PCI\VEN_"') do ( for /f "tokens=3" %%a in ('reg query "HKLM\SYSTEM\CurrentControlSet\Enum\%%i" /v "Driver"') do ( for /f %%i in ('echo %%a ^| findstr "{"') do ( reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\%%i" /v "RMHdcpKeyglobZero" /t REG_DWORD /d "0" /f > nul 2>&1 ) ) ) ) if "%NoECC%" equ "True" ( REM No ECC cd C:\Program Files\NVIDIA Corporation\NVSMI > nul 2>&1 nvidia-smi.exe -e 1 > nul 2>&1 ) if "%UnrestrictedClockPolicy%" equ "True" ( REM Unrestricted Clock Policy cd C:\Program Files\NVIDIA Corporation\NVSMI > nul 2>&1 nvidia-smi.exe -acp 1 > nul 2>&1 ) if "%Preemption%" equ "True" ( REM Enable Preemption reg add "HKLM\SYSTEM\CurrentControlSet\Services\nvlddmkm" /v "DisablePreemption" /t REG_DWORD /d "0" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Services\nvlddmkm" /v "DisableCudaContextPreemption" /t REG_DWORD /d "0" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Services\nvlddmkm" /v "EnableCEPreemption" /t REG_DWORD /d "1" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Services\nvlddmkm" /v "DisablePreemptionOnS3S4" /t REG_DWORD /d "0" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Services\nvlddmkm" /v "ComputePreemption" /t REG_DWORD /d "1" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Services\nvlddmkm" /v "EnableMidGfxPreemption" /t REG_DWORD /d "1" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Services\nvlddmkm" /v "EnableMidGfxPreemptionVGPU" /t REG_DWORD /d "1" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Services\nvlddmkm" /v "EnableMidBufferPreemptionForHighTdrTimeout" /t REG_DWORD /d "1" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Services\nvlddmkm" /v "EnableMidBufferPreemption" /t REG_DWORD /d "1" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Services\nvlddmkm" /v "EnableAsyncMidBufferPreemption" /t REG_DWORD /d "1" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Services\nvlddmkm" /v "DisableCudaContextPreemption" /t REG_DWORD /d "0" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Services\nvlddmkm\Global\NVTweak" /v "DisplayPowerSaving" /t REG_DWORD /d "1" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\GraphicsDrivers\Scheduler" /v "EnablePreemption" /t REG_DWORD /d "1" /f > nul 2>&1 ) if "%Logging%" equ "True" ( REM Enable Logging reg add "HKLM\SYSTEM\CurrentControlSet\Services\nvlddmkm" /v "LogWarningEntries" /t REG_DWORD /d "1" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Services\nvlddmkm" /v "LogPagingEntries" /t REG_DWORD /d "1" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Services\nvlddmkm" /v "LogEventEntries" /t REG_DWORD /d "1" /f > nul 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Services\nvlddmkm" /v "LogErrorEntries" /t REG_DWORD /d "1" /f > nul 2>&1 ) set "file=C:\Vitality\Info\gpu" if not exist "%file%" ( echo Vitality > "%file%" set /a "ran_optimizations+=1" ) cd C:\Vitality set "formatted_optimizations=%ran_optimizations%" if %formatted_optimizations% LSS 10 set "formatted_optimizations= %formatted_optimizations%" echo set "ran_optimizations=%ran_optimizations%"> v.bat goto skippinggpu :radeon echo Reverting Radeon Tweaks if "%GameModeAMD%" equ "True" ( REM Disable Gamemode reg add "HKCU\Software\Microsoft\GameBar" /v "AllowAutoGameMode" /t REG_DWORD /d "0" /f > nul 2>&1 reg add "HKCU\Software\Microsoft\GameBar" /v "AutoGameModeEnabled" /t REG_DWORD /d "0" /f > nul 2>&1 ) if "%AMDOptimizedSettings%" equ "True" ( REM Revert AMD Settings reg delete "HKCU\Software\AMD\CN" /f >nul 2>&1 reg delete "HKCU\Software\AMD\DVR" /f >nul 2>&1 reg delete "HKCU\Software\AMD\SCENE" /f >nul 2>&1 reg delete "HKCU\Software\ATI\ACE\Settings\ADL\AppProfiles" /f >nul 2>&1 reg delete "HKLM\SOFTWARE\AMD\Install" /f >nul 2>&1 reg delete "HKLM\SOFTWARE\AUEP" /f >nul 2>&1 ) set "file=C:\Vitality\Info\gpu" if not exist "%file%" ( echo Vitality > "%file%" set /a "ran_optimizations+=1" ) cd C:\Vitality set "formatted_optimizations=%ran_optimizations%" if %formatted_optimizations% LSS 10 set "formatted_optimizations= %formatted_optimizations%" echo set "ran_optimizations=%ran_optimizations%"> v.bat goto skippinggpu :skippinggpu if "%RAM%"=="False" goto skippingram echo Reverting RAM Tweaks if "%MemoryManagment%" equ "True" ( REM Configure Memory Managment reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "ClearPageFileAtShutdown" /t REG_DWORD /d "0" /f >nul 2>&1 reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "DisablePagingExecutive" /f >nul 2>&1 reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "DisablePageCombining" /f >nul 2>&1 reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "LargeSystemCache" /f >nul 2>&1 reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "NonPagedPoolQuota" /f >nul 2>&1 reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "NonPagedPoolSize" /f >nul 2>&1 reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "PagedPoolQuota" /f >nul 2>&1 reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "PagedPoolSize" /f >nul 2>&1 reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "SecondLevelDataCache" /f >nul 2>&1 reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "SessionPoolSize" /f >nul 2>&1 reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "SessionViewSize" /f >nul 2>&1 reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "SystemPages" /f >nul 2>&1 reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "PhysicalAddressExtension" /f >nul 2>&1 reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "FeatureSettings" /f >nul 2>&1 reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "FeatureSettingsOverride" /f >nul 2>&1 reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "FeatureSettingsOverrideMask" /f >nul 2>&1 reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "IoPageLockLimit" /f >nul 2>&1 reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "PoolUsageMaximum" /f >nul 2>&1 reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "EnablePrefetcher" /f >nul 2>&1 reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "EnableSuperfetch" /f >nul 2>&1 reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" /v "EnablePrefetcher" /f >nul 2>&1 reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" /v "EnableSuperfetch" /f >nul 2>&1 ) if "%LargePageDrivers%" equ "True" ( REM Revert LargePageDrivers reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "LargePageDrivers" /f >nul 2>&1 ) :skippingram set "file=C:\Vitality\Info\ram" if not exist "%file%" ( echo Vitality > "%file%" set /a "ran_optimizations+=1" ) cd C:\Vitality set "formatted_optimizations=%ran_optimizations%" if %formatted_optimizations% LSS 10 set "formatted_optimizations= %formatted_optimizations%" echo set "ran_optimizations=%ran_optimizations%"> v.bat :skippingram if "%DISK%"=="False" goto skippingdisk echo Reverting DISK Tweaks if "%FileSystemOptimization%" equ "True" ( REM Revert File System Optimization fsutil behavior set allowextchar 1 > NUL 2>&1 fsutil behavior set Bugcheckoncorrupt 1 > NUL 2>&1 fsutil repair set C: 1 > NUL 2>&1 fsutil behavior set disable8dot3 0 > NUL 2>&1 fsutil behavior set disablecompression 0 > NUL 2>&1 fsutil behavior set disableencryption 0 > NUL 2>&1 fsutil behavior set disablelastaccess 0 > NUL 2>&1 fsutil behavior set disablespotcorruptionhandling 0 > NUL 2>&1 fsutil behavior set encryptpagingfile 1 > NUL 2>&1 fsutil behavior set quotanotify 7200 > NUL 2>&1 fsutil behavior set symlinkevaluation L2L:0 L2R:1 R2L:1 R2R:1 > NUL 2>&1 fsutil behavior set disabledeletenotify 0 > NUL 2>&1 ) if "%Startupcleaner%" equ "True" ( REM Startup Cleaner (shell:startup) if exist "%appdata%\Microsoft\Windows\Start Menu\Programs\Startup\Vitality-Cleaner.bat" del "%appdata%\Microsoft\Windows\Start Menu\Programs\Startup\Vitality-Cleaner.bat" ) set "file=C:\Vitality\Info\disk" if not exist "%file%" ( echo Vitality > "%file%" set /a "ran_optimizations+=1" ) cd C:\Vitality set "formatted_optimizations=%ran_optimizations%" if %formatted_optimizations% LSS 10 set "formatted_optimizations= %formatted_optimizations%" echo set "ran_optimizations=%ran_optimizations%"> v.bat :skippingdisk if "%Windows%"=="False" goto skippingwindows echo Reverting Windows Tweaks if "%DisablePushNotifications%" equ "True" ( REM Enable push notifications for applications reg delete "HKCU\Software\Policies\Microsoft\Windows\CurrentVersion\PushNotifications" /f >nul 2>&1 ) if "%DisableDriverSearching%" equ "True" ( REM Enable driver searching for Windows Update reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" /f >nul 2>&1 ) If "%DisableHibernation%" equ "True" ( REM Enable Hibernation powercfg /h on >nul 2>&1 ) If "%DisableWindowsNotifications%" equ "True" ( REM Enable Windows Notifications Center reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\Explorer" /f >nul 2>&1 ) If "%DisableTransparency%" equ "True" ( REM Enable transparency in themes reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize" /v "EnableTransparency" /f >nul 2>&1 ) If "%DisableAutomaticMaintenance%" equ "True" ( REM Enable automatic maintenance reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize" /v "EnableTransparency" /f >nul 2>&1 ) If "%PauseMapsUpdates%" equ "True" ( REM Resume Maps Updates/Downloads reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\Maps" /f >nul 2>&1 ) If "%DisableSettingsSync%" equ "True" ( REM Enable Settings Sync reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\Maps" /f >nul 2>&1 ) If "%DisableAdvertisingID%" equ "True" ( REM Enable Advertising ID reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\AdvertisingInfo" /f >nul 2>&1 reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\AdvertisingInfo" /f >nul 2>&1 ) If "%DisableLocationTracking%" equ "True" ( REM Enable Location Tracking reg delete "HKLM\SOFTWARE\Policies\Microsoft\FindMyDevice" /f >nul 2>&1 ) If "%DisableWebInSearch%" equ "True" ( REM Disable Web in Search reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /f >nul 2>&1 reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" /v "BingSearchEnabled" /f >nul 2>&1 ) If "%DisableRemoteAssistance%" equ "True" ( REM Enable Remote Assistance reg delete "HKLM\System\CurrentControlSet\Control\Remote Assistance" /f >nul 2>&1 ) If "%DisableInventoryCollector%" equ "True" ( REM Enable Turn off Inventory Collector reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /f >nul 2>&1 ) If "%DisableWindowsErrorReporting%" equ "True" ( REM Turn off Windows Error Reporting reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting" /v "Disabled" /t REG_DWORD /d "1" /f >nul 2>&1 ) If "%DisableTelemetry%" equ "True" ( reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /f >nul 2>&1 reg delete "HKLM\SOFTWARE\Policies\Microsoft\MSDeploy\3" /f >nul 2>&1 reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /f >nul 2>&1 REM Enable Text/Ink/Handwriting Telemetry reg add "HKCU\Software\Microsoft\Input\TIPC" /v Enabled /t REG_DWORD /d 1 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\InputPersonalization" /v "RestrictImplicitTextCollection" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\InputPersonalization" /v "RestrictImplicitInkCollection" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\TabletPC" /v "PreventHandwritingDataSharing" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\HandwritingErrorReports" /v "PreventHandwritingErrorReports" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKCU\Software\Microsoft\Personalization\Settings" /v AcceptedPrivacyPolicy /t REG_DWORD /d 1 /f >nul 2>&1 ) If "%DisableCustomerExperienceProgram%" equ "True" ( REM Enable the Customer Experience Improvement program reg delete "HKLM\SOFTWARE\Policies\Microsoft\Internet Explorer\SQM" /f >nul 2>&1 reg delete "HKLM\SOFTWARE\Policies\Microsoft\SQMClient\Windows" /f >nul 2>&1 reg delete "HKLM\SOFTWARE\Policies\Microsoft\AppV\CEIP" /f >nul 2>&1 reg delete "HKLM\SOFTWARE\Policies\Microsoft\Messenger\Client" /f >nul 2>&1 ) If "%DisableOneDriveSync%" equ "True" ( REM Enable OneDrive Sync reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\OneDrive" /f >nul 2>&1 ) If "%DisableBiometrics%" equ "True" ( REM Enable Biometrics reg delete "HKLM\SOFTWARE\Policies\Microsoft\Biometrics" /f >nul 2>&1 ) If "%DenyCapabilityForApps%" equ "True" ( REM Allow capability access for specific apps. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\appDiagnostics" /F /V "Value" /T REG_SZ /d "Allow" >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\appointments" /F /V "Value" /T REG_SZ /d "Allow" >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\email" /F /V "Value" /T REG_SZ /d "Allow" >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\phoneCall" /F /V "Value" /T REG_SZ /d "Allow" >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\userDataTasks" /F /V "Value" /T REG_SZ /d "Allow" >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\chat" /F /V "Value" /T REG_SZ /d "Allow" >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\contacts" /F /V "Value" /T REG_SZ /d "Allow" >nul 2>&1 ) If "%DisableLocationServices%" equ "True" ( REM Disable location services reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\LocationAndSensors" /f >nul 2>&1 ) If "%BootOptions%" equ "True" ( REM Configure Boot Options bcdedit /deletevalue bootux >nul 2>&1 bcdedit /deletevalue bootmenupolicy >nul 2>&1 bcdedit /deletevalue hypervisorlaunchtype >nul 2>&1 bcdedit /deletevalue tpmbootentropy >nul 2>&1 bcdedit /deletevalue quietboot >nul 2>&1 bcdedit /deletevalue {globalsettings} custom:16000067 >nul 2>&1 bcdedit /deletevalue {globalsettings} custom:16000069 >nul 2>&1 bcdedit /deletevalue {globalsettings} custom:16000068 >nul 2>&1 bcdedit /set {current} recoveryenabled Yes >nul 2>&1 bcdedit /deletevalue firstmegabytepolicy >nul 2>&1 bcdedit /deletevalue avoidlowmemory >nul 2>&1 bcdedit /deletevalue nolowmem >nul 2>&1 bcdedit /deletevalue allowedinmemorysettings >nul 2>&1 bcdedit /deletevalue isolatedcontext >nul 2>&1 bcdedit /deletevalue vsmlaunchtype >nul 2>&1 bcdedit /deletevalue vm >nul 2>&1 bcdedit /deletevalue x2apicpolicy >nul 2>&1 bcdedit /deletevalue configaccesspolicy >nul 2>&1 bcdedit /deletevalue MSI >nul 2>&1 bcdedit /deletevalue usephysicaldestination >nul 2>&1 bcdedit /deletevalue usefirmwarepcisettings >nul 2>&1 ) If "%PasswordOnWakeUp%" equ "True" ( REM Require a password on wakeup: ON powercfg -setacvalueindex scheme_current sub_none CONSOLELOCK 1 >nul ) If "%PreventWindowsMarkingFiles%" equ "True" ( REM Revert Windows Marking File Attachments With Informations About Their Zone Of Origin reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments" /f >nul 2>&1 ) If "%DisableLanguageBar%" equ "True" ( REM Enable Language Bar reg delete "HKCU\Keyboard Layout\Toggle" /f >nul 2>&1 ) If "%DisableStickyKeys%" equ "True" ( REM Enable Sticky Keys reg delete "HKCU\Control Panel\Accessibility\StickyKeys" /f >nul 2>&1 ) If "%DisableProgramCompatibilityAssistant%" equ "True" ( REM Enable Program Compatibility Assistant reg delete "HKCU\Software\Policies\Microsoft\Windows\AppCompat" /f >nul 2>&1 ) If "%DisableFaultTolerantHeap%" equ "True" ( REM Enable Fault Tolerant Heap reg delete "HKLM\SOFTWARE\Microsoft\FTH" /f >nul 2>&1 ) If "%DisablePowerShellTelemtry%" equ "True" ( REM Enable PowerShell Telemetry reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v "POWERSHELL_TELEMETRY_OPTOUT" /f >nul 2>&1 ) If "%DisableWindowsErrorReporting%" equ "True" ( REM Enable Windows Error Reporting reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting" /f >nul 2>&1 ) If "%DisableRemoteAssistance%" equ "True" ( REM Disable Remote Assistance reg add "HKLM\SYSTEM\CurrentControlSet\Control\Remote Assistance" /v "fAllowToGetHelp" /t REG_DWORD /d "1" /f >nul 2>&1 ) If "%ShowFileExtension%" equ "True" ( REM Show File Extensions reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "HideFileExt" /t REG_DWORD /d "1" /f >nul 2>&1 ) If "%Remove3DObjectsFromExplorer%" equ "True" ( REM Remove 3D Objects From Explorer Pane reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}" /f >nul 2>&1 reg delete "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}" /f >nul 2>&1 ) If "%DisableSignInAndLockLastUser%" equ "True" ( REM Disable Sing-In And Lock Last Interactive User reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "DisableAutomaticRestartSignOn" /t REG_DWORD /d "0" /f >nul 2>&1 ) If "%DisableOnlineTips%" equ "True" ( REM Disable Disable Online Tips reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "AllowOnlineTips" /t REG_DWORD /d "1" /f >nul 2>&1 ) If "%DisableTypingInsights%" equ "True" ( REM Disable Typing Insights reg add "HKCU\Software\Microsoft\input\Settings" /v "InsightsEnabled" /t REG_DWORD /d "1" /f >nul 2>&1 ) If "%DisableSuggestionsInTheSearchBox%" equ "True" ( REM Disable Suggestions In The Search Box And In Search Home reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\SearchSettings" /v "IsDynamicSearchBoxEnabled" /t REG_DWORD /d "1" /f >nul 2>&1 ) If "%RestoreOldContextMenu%" equ "True" ( REM Resotre Old Context Menu reg add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}" /ve /t REG_SZ /d "" /f >nul 2>&1 reg add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /ve /t REG_SZ /d "" /f >nul 2>&1 ) If "%RemovePinToQuickAccess%" equ "True" ( REM Remove Pin TO Quick Access In Context Menu reg delete "HKCR\Folder\shell\pintohome" /f >nul 2>&1 reg delete "HKLM\SOFTWARE\Classes\Folder\shell\pintohome" /f >nul 2>&1 ) If "%HideFoldersInQuickAccess%" equ "True" ( REM Hide Folders In Quick Access reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer" /v "ShowFrequent" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer" /v "ShowRecent" /t REG_DWORD /d "1" /f >nul 2>&1 ) If "%HideQuickAccessFromFileExplorer%" equ "True" ( REM Hide Quick Access From File Explorer reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" /v "HubMode" /t REG_DWORD /d "0" /f >nul 2>&1 ) If "%LaunchFileExplorerToThisPC%" equ "True" ( REM Launch File Explorer To This PC reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "LaunchTo" /t REG_DWORD /d "0" /f >nul 2>&1 ) If "%TurnOffDisplayOfRecentSearch%" equ "True" ( REM Turn Off Display Of Recent Search Entries In The File Explorer Search Box reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "DisableSearchBoxSuggestions" /t REG_DWORD /d "0" /f >nul 2>&1 ) If "%ClearHistoryOfRecentlyOpenedDocumentsOnExit%" equ "True" ( REM Clear History Of Recently Opened Documents On Exit reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "ClearRecentDocsOnExit" /t REG_DWORD /d "0" /f >nul 2>&1 ) set "file=C:\Vitality\Info\windows" if not exist "%file%" ( echo Vitality > "%file%" set /a "ran_optimizations+=1" ) cd C:\Vitality set "formatted_optimizations=%ran_optimizations%" if %formatted_optimizations% LSS 10 set "formatted_optimizations= %formatted_optimizations%" echo set "ran_optimizations=%ran_optimizations%"> v.bat :skippingwindows if "%CPU%"=="False" goto skippingcpu if %cpu1%==Intel ( goto intel ) else ( goto amd ) :intel echo Reverting Intel CPU Tweaks If "%DisableCPUVirtualizationIntel%" equ "True" ( REM Disable CPU Virtualization reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DeviceGuard" /v "EnableVirtualizationBasedSecurity" /t REG_DWORD /d "1" /f > NUL 2>&1 ) If "%DisableCoreIsolationIntel%" equ "True" ( REM Disable Core Isolation reg add "HKLM\SYSTEM\CurrentControlSet\Control\DeviceGuard\Scenarios\HypervisorEnforcedCodeIntegrity" /v "Enabled" /t REG_DWORD /d "1" /f > NUL 2>&1 ) If "%ConfigureCStatesIntel%" equ "True" ( REM Configure C-States powercfg -setacvalueindex scheme_current sub_processor IDLEPROMOTE 0 > NUL 2>&1 powercfg -setacvalueindex scheme_current sub_processor IDLEDEMOTE 0 > NUL 2>&1 powercfg -setacvalueindex scheme_current sub_processor IDLECHECK 0 > NUL 2>&1 powercfg -setacvalueindex scheme_current sub_processor IDLESCALING 1 > NUL 2>&1 ) If "%DisableThrottlingIntel%" equ "True" ( REM Disable Throttling reg add "HKLM\SYSTEM\CurrentControlSet\Control\Power\PowerThrottling" /v "PowerThrottlingOff" /t REG_DWORD /d "0" /f > NUL 2>&1 ) If "%DisableAMDServices%" equ "True" ( REM Disable AMD Services reg add "HKLM\System\CurrentControlSet\Services\AmdK8" /v "Start" /t REG_DWORD /d "2" /f > NUL 2>&1 reg add "HKLM\System\CurrentControlSet\Services\amdsata" /v "Start" /t REG_DWORD /d "2" /f > NUL 2>&1 reg add "HKLM\System\CurrentControlSet\Services\amdsbs" /v "Start" /t REG_DWORD /d "2" /f > NUL 2>&1 reg add "HKLM\System\CurrentControlSet\Services\amdxata" /v "Start" /t REG_DWORD /d "2" /f > NUL 2>&1 ) If "%DisableTSXIntel%" equ "True" ( REM Disable TSX reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\kernel" /v "DisableTsx" /t REG_DWORD /d "1" /f > NUL 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\kernel" /v "EnableTsx" /t REG_DWORD /d "0" /f > NUL 2>&1 ) set "file=C:\Vitality\Info\cpu" if not exist "%file%" ( echo Vitality > "%file%" set /a "ran_optimizations+=1" ) cd C:\Vitality set "formatted_optimizations=%ran_optimizations%" if %formatted_optimizations% LSS 10 set "formatted_optimizations= %formatted_optimizations%" echo set "ran_optimizations=%ran_optimizations%"> v.bat goto skippingcpu :amd echo Reverting AMD CPU Tweaks If "%DisableCPUVirtualizationAMD%" equ "True" ( REM Disable CPU Virtualization reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DeviceGuard" /v "EnableVirtualizationBasedSecurity" /t REG_DWORD /d "1" /f > NUL 2>&1 ) If "%DisableCoreIsolationAMD%" equ "True" ( REM Disable Core Isolation reg add "HKLM\SYSTEM\CurrentControlSet\Control\DeviceGuard\Scenarios\HypervisorEnforcedCodeIntegrity" /v "Enabled" /t REG_DWORD /d "1" /f > NUL 2>&1 ) If "%ConfigureCStatesAMD%" equ "True" ( REM Configure C-States powercfg -setacvalueindex scheme_current sub_processor IDLEPROMOTE 0 > NUL 2>&1 powercfg -setacvalueindex scheme_current sub_processor IDLEDEMOTE 0 > NUL 2>&1 powercfg -setacvalueindex scheme_current sub_processor IDLECHECK 0 > NUL 2>&1 powercfg -setacvalueindex scheme_current sub_processor IDLESCALING 1 > NUL 2>&1 ) If "%DisableThrottlingAMD%" equ "True" ( REM Disable Throttling reg add "HKLM\SYSTEM\CurrentControlSet\Control\Power\PowerThrottling" /v "PowerThrottlingOff" /t REG_DWORD /d "0" /f ) If "%DisableIntelServices%" equ "True" ( REM Disable Intel Services reg add "HKLM\System\CurrentControlSet\Services\iagpio" /v "Start" /t REG_DWORD /d "2" /f > NUL 2>&1 reg add "HKLM\System\CurrentControlSet\Services\iai2c" /v "Start" /t REG_DWORD /d "2" /f > NUL 2>&1 reg add "HKLM\System\CurrentControlSet\Services\iaLPSS2i_GPIO2" /v "Start" /t REG_DWORD /d "2" /f > NUL 2>&1 reg add "HKLM\System\CurrentControlSet\Services\iaLPSS2i_GPIO2_BXT_P" /v "Start" /t REG_DWORD /d "2" /f > NUL 2>&1 reg add "HKLM\System\CurrentControlSet\Services\iaLPSS2i_I2C" /v "Start" /t REG_DWORD /d "2" /f > NUL 2>&1 reg add "HKLM\System\CurrentControlSet\Services\iaLPSSi_GPIO" /v "Start" /t REG_DWORD /d "2" /f > NUL 2>&1 reg add "HKLM\System\CurrentControlSet\Services\iaStorAVC" /v "Start" /t REG_DWORD /d "2" /f > NUL 2>&1 reg add "HKLM\System\CurrentControlSet\Services\iaStorV" /v "Start" /t REG_DWORD /d "2" /f > NUL 2>&1 reg add "HKLM\System\CurrentControlSet\Services\intelide" /v "Start" /t REG_DWORD /d "2" /f > NUL 2>&1 reg add "HKLM\System\CurrentControlSet\Services\intelpep" /v "Start" /t REG_DWORD /d "2" /f > NUL 2>&1 ) If "%DisableTSXAMD%" equ "True" ( REM Disable TSX reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\kernel" /v "DisableTsx" /t REG_DWORD /d "0" /f > NUL 2>&1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\kernel" /v "EnableTsx" /t REG_DWORD /d "1" /f > NUL 2>&1 ) :End cls echo. echo. echo. echo. echo. echo. echo. echo. echo. echo. echo. echo. echo. echo. echo %r% _ _ _____ __ _ _ _____ _%l% echo %r% \ \ / ^| ^| ^| ^| / /\ ^| ^| ^| ^| ^| ^| \ \_/%l% echo %r%\_\/ ^|_^| ^|_^| /_/--\ ^|_^|__ ^|_^| ^|_^| ^|_^|%l% echo. echo Everything was reverted succesfuly timeout /nobreak /t 3 >nul 2>&1 set "batch_file=%~f0" goto :Restart goto %LastPage% :Restart start "" "%batch_file%" exit :ShowMsgBox set "msgboxTitle=%~1" set "msgboxBody=%~2" set "tmpmsgbox=%temp%\~tmpmsgbox.vbs" if exist "%tmpmsgbox%" del /f /q "%tmpmsgbox%" echo msgbox "%msgboxBody%",0,"%msgboxTitle%" > "%tmpmsgbox%" wscript "%tmpmsgbox%" del /f /q "%tmpmsgbox%" goto :eof