@@ -223,9 +223,36 @@ reg add "HKCU\System\GameConfigStore" /v GameDVR_HonorUserFSEBehaviorMode /t REG
223
223
reg add " HKCU\System\GameConfigStore" /v GameDVR_EFSEFeatureFlags /t REG_DWORD /d 0 /f
224
224
reg add " HKLM\SOFTWARE\Policies\Microsoft\Windows\GameDVR" /v AllowGameDVR /t REG_DWORD /d 0 /f
225
225
226
+ cls
227
+ echo Are you sure you want to disable mitigations? This action can have both positive and negative impacts.
228
+ echo !BRIGHT_GREEN! Positive: It might improve system performance.
229
+ echo !BRIGHT_RED! Negative: It could potentially make your system more vulnerable to certain types of security threats.!BRIGHT_WHITE!
230
+ echo Please type !BRIGHT_MAGENTA! YES !BRIGHT_WHITE! to continue or any other key to abort.
231
+ set /p UserInput = " Enter your choice: "
232
+ if /I " %UserInput% " == " YES" (
233
+ echo !BRIGHT_WHITE! Disabling Mitigations
234
+ powershell " ForEach($v in (Get-Command -Name \" Set-ProcessMitigation\" ).Parameters[\" Disable\" ].Attributes.ValidValues){Set-ProcessMitigation -System -Disable $v.ToString() -ErrorAction SilentlyContinue}"
235
+ echo !BRIGHT_WHITE! Removing Image File Execution Options
236
+ powershell " Remove-Item -Path \" HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\*\" -Recurse -ErrorAction SilentlyContinue"
237
+ echo !BRIGHT_WHITE! Updating Registry Settings
238
+ reg add " HKLM\SOFTWARE\Policies\Microsoft\FVE" /v " DisableExternalDMAUnderLock" /t REG_DWORD /d " 0" /f
239
+ reg add " HKLM\SOFTWARE\Policies\Microsoft\Windows\DeviceGuard" /v " EnableVirtualizationBasedSecurity" /t REG_DWORD /d " 0" /f
240
+ reg add " HKLM\SOFTWARE\Policies\Microsoft\Windows\DeviceGuard" /v " HVCIMATRequired" /t REG_DWORD /d " 0" /f
241
+ reg add " HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\kernel" /v " DisableExceptionChainValidation" /t REG_DWORD /d " 1" /f
242
+ reg add " HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\kernel" /v " KernelSEHOPEnabled" /t REG_DWORD /d " 0" /f
243
+ reg add " HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v " EnableCfg" /t REG_DWORD /d " 0" /f
244
+ reg add " HKLM\SYSTEM\CurrentControlSet\Control\Session Manager" /v " ProtectionMode" /t REG_DWORD /d " 0" /f
245
+ reg add " HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v " FeatureSettings" /t REG_DWORD /d " 1" /f
246
+ reg add " HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v " FeatureSettingsOverride" /t REG_DWORD /d " 3" /f
247
+ reg add " HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v " FeatureSettingsOverrideMask" /t REG_DWORD /d " 3" /f
248
+ ) else (
249
+ echo !BRIGHT_WHITE! Aborted
250
+ )
251
+ pause
252
+
226
253
cls
227
254
echo !BRIGHT_WHITE! All tweaks have been successfully applied! For the changes to take effect, please restart your computer.
228
- echo Press !DARK_MAGENTA ! ENTER !BRIGHT_WHITE! to return to the main menu.
255
+ echo Press !BRIGHT_MAGENTA ! ENTER !BRIGHT_WHITE! to return to the main menu.
229
256
pause > nul
230
257
cls
231
258
goto :Main-Menu
0 commit comments