From 9485be126b29c2e13d0bef1817f2787e4283f990 Mon Sep 17 00:00:00 2001 From: Sean Rhone Date: Fri, 12 Aug 2022 09:11:49 -0400 Subject: [PATCH] Add files via upload --- Disable CPU Mitigations.bat | 2 ++ Disable Clipboard History.bat | 1 + Disable DEP.bat | 1 + Disable Dynamic Ticks.bat | 2 +- Disable Game DVR.bat | 1 + Disable HPET.bat | 2 ++ Disable Lock Screen.bat | 1 + Disable Memory Compression.ps1 | 1 + Disable Online Speech Recognition.bat | 1 + Disable Page Combining.ps1 | 1 + Disable Remote Desktop.bat | 1 + Disable Shared Experiences.bat | 1 + Disable SmartScreen.bat | 8 +++++++- Disable System Restore.bat | 5 +---- Disable and Remove Windows Search.bat | 3 +++ Intel MKL on AMD.bat | 2 ++ Maintenance.bat | 22 ++++++++++++++------- NVIDIA Disable HDCP.bat | 1 + NVIDIA OCL NVVM 7.0.bat | 1 + Old Alt + Tab Style.bat | 1 + Remove Non-Ultimate Plans.bat | 4 ++++ Remove Quick Access.bat | 1 + ScriptTiger Hosts (fakenews + gambling).ps1 | 5 +++++ Show Power Plans.bat | 2 ++ Update Store Apps.ps1 | 2 ++ WinSAT.bat | 1 + 26 files changed, 60 insertions(+), 13 deletions(-) create mode 100644 Disable CPU Mitigations.bat create mode 100644 Disable Clipboard History.bat create mode 100644 Disable DEP.bat create mode 100644 Disable Game DVR.bat create mode 100644 Disable HPET.bat create mode 100644 Disable Lock Screen.bat create mode 100644 Disable Memory Compression.ps1 create mode 100644 Disable Online Speech Recognition.bat create mode 100644 Disable Page Combining.ps1 create mode 100644 Disable Remote Desktop.bat create mode 100644 Disable Shared Experiences.bat create mode 100644 Disable and Remove Windows Search.bat create mode 100644 Intel MKL on AMD.bat create mode 100644 NVIDIA Disable HDCP.bat create mode 100644 NVIDIA OCL NVVM 7.0.bat create mode 100644 Old Alt + Tab Style.bat create mode 100644 Remove Non-Ultimate Plans.bat create mode 100644 Remove Quick Access.bat create mode 100644 ScriptTiger Hosts (fakenews + gambling).ps1 create mode 100644 Show Power Plans.bat create mode 100644 Update Store Apps.ps1 create mode 100644 WinSAT.bat diff --git a/Disable CPU Mitigations.bat b/Disable CPU Mitigations.bat new file mode 100644 index 0000000..e9d86c9 --- /dev/null +++ b/Disable CPU Mitigations.bat @@ -0,0 +1,2 @@ +reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "FeatureSettingsOverride" /t "REG_DWORD" /d "3" /f +reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "FeatureSettingsOverrideMask" /t "REG_DWORD" /d "3" /f \ No newline at end of file diff --git a/Disable Clipboard History.bat b/Disable Clipboard History.bat new file mode 100644 index 0000000..8c10e58 --- /dev/null +++ b/Disable Clipboard History.bat @@ -0,0 +1 @@ +reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\System" /v "AllowClipboardHistory" /t REG_DWORD /d "0" /f \ No newline at end of file diff --git a/Disable DEP.bat b/Disable DEP.bat new file mode 100644 index 0000000..9505072 --- /dev/null +++ b/Disable DEP.bat @@ -0,0 +1 @@ +bcdedit /set "nx" "AlwaysOff" \ No newline at end of file diff --git a/Disable Dynamic Ticks.bat b/Disable Dynamic Ticks.bat index 120a958..1cc1db6 100644 --- a/Disable Dynamic Ticks.bat +++ b/Disable Dynamic Ticks.bat @@ -1 +1 @@ -bcdedit /set "disabledynamictick" "Yes" \ No newline at end of file +bcdedit /set disabledynamictick yes \ No newline at end of file diff --git a/Disable Game DVR.bat b/Disable Game DVR.bat new file mode 100644 index 0000000..0fef16d --- /dev/null +++ b/Disable Game DVR.bat @@ -0,0 +1 @@ +reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\GameDVR" /v "AllowgameDVR" /t "REG_DWORD" /d "0" /f \ No newline at end of file diff --git a/Disable HPET.bat b/Disable HPET.bat new file mode 100644 index 0000000..e7a6c27 --- /dev/null +++ b/Disable HPET.bat @@ -0,0 +1,2 @@ +bcdedit /set useplatformtick no +bcdedit /set useplatformclock no \ No newline at end of file diff --git a/Disable Lock Screen.bat b/Disable Lock Screen.bat new file mode 100644 index 0000000..7441312 --- /dev/null +++ b/Disable Lock Screen.bat @@ -0,0 +1 @@ +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Personalization" /v "NoLockScreen" /t REG_DWORD /d "1" /f \ No newline at end of file diff --git a/Disable Memory Compression.ps1 b/Disable Memory Compression.ps1 new file mode 100644 index 0000000..4d4616b --- /dev/null +++ b/Disable Memory Compression.ps1 @@ -0,0 +1 @@ +Disable-MMAgent -MemoryCompression \ No newline at end of file diff --git a/Disable Online Speech Recognition.bat b/Disable Online Speech Recognition.bat new file mode 100644 index 0000000..4ba821e --- /dev/null +++ b/Disable Online Speech Recognition.bat @@ -0,0 +1 @@ +reg add "HKLM\SOFTWARE\Policies\Microsoft\InputPersonalization" /v "AllowInputPersonalization" /t REG_DWORD /d "0" /f \ No newline at end of file diff --git a/Disable Page Combining.ps1 b/Disable Page Combining.ps1 new file mode 100644 index 0000000..25c1fe8 --- /dev/null +++ b/Disable Page Combining.ps1 @@ -0,0 +1 @@ +Disable-MMAgent -PageCombining \ No newline at end of file diff --git a/Disable Remote Desktop.bat b/Disable Remote Desktop.bat new file mode 100644 index 0000000..630f529 --- /dev/null +++ b/Disable Remote Desktop.bat @@ -0,0 +1 @@ +reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "fDenyTSConnections" /t REG_DWORD /d "1" /f \ No newline at end of file diff --git a/Disable Shared Experiences.bat b/Disable Shared Experiences.bat new file mode 100644 index 0000000..9b63b1b --- /dev/null +++ b/Disable Shared Experiences.bat @@ -0,0 +1 @@ +reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\System" /v "EnableCdp" /t REG_DWORD /d "0" /f \ No newline at end of file diff --git a/Disable SmartScreen.bat b/Disable SmartScreen.bat index c4bc2ee..db881be 100644 --- a/Disable SmartScreen.bat +++ b/Disable SmartScreen.bat @@ -1,2 +1,8 @@ +:: General reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" /v "SmartScreenEnabled" /t "REG_SZ" /d "Off" /f -reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost" /v "SmartScreenEnabled" /t "REG_SZ" /d "Off" /f \ No newline at end of file + +:: Windows Store Apps +reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost" /v "EnableWebContentEvaluation" /t "REG_DWORD" /d "0" /f + +:: Microsoft EDGE +reg add "HKLM\SOFTWARE\Policies\Microsoft\MicrosoftEdge\PhishingFilter" /v "EnabledV9" /t "REG_DWORD" /d "0" /f \ No newline at end of file diff --git a/Disable System Restore.bat b/Disable System Restore.bat index e6f041a..66a843d 100644 --- a/Disable System Restore.bat +++ b/Disable System Restore.bat @@ -1,4 +1 @@ -reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\SystemRestore" /v "DisableConfig" /t "REG_DWORD" /d "1" /f -reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\SystemRestore" /v "DisableSR " /t "REG_DWORD" /d "1" /f -reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore" /v "DisableConfig" /t "REG_DWORD" /d "1" /f -reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore" /v "DisableSR " /t "REG_DWORD" /d "1" /f \ No newline at end of file +reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\SystemRestore" /v "DisableSR " /t "REG_DWORD" /d "1" /f \ No newline at end of file diff --git a/Disable and Remove Windows Search.bat b/Disable and Remove Windows Search.bat new file mode 100644 index 0000000..f62be77 --- /dev/null +++ b/Disable and Remove Windows Search.bat @@ -0,0 +1,3 @@ +sc stop "WSearch" +sc config "WSearch" start="disabled" +Dism /online /Disable-Feature /FeatureName:"SearchEngine-Client-Package" /Remove \ No newline at end of file diff --git a/Intel MKL on AMD.bat b/Intel MKL on AMD.bat new file mode 100644 index 0000000..7829a0e --- /dev/null +++ b/Intel MKL on AMD.bat @@ -0,0 +1,2 @@ +setx "MKL_ENABLE_INSTRUCTIONS" "AVX2" /M +setx "MKL_DEBUG_CPU_TYPE" "5" /M \ No newline at end of file diff --git a/Maintenance.bat b/Maintenance.bat index b4da97b..4769464 100644 --- a/Maintenance.bat +++ b/Maintenance.bat @@ -1,12 +1,20 @@ -"%windir%\microsoft.net\Framework\v4.0.30319\ngen.exe" update /force /queue -"%windir%\microsoft.net\Framework64\v4.0.30319\ngen.exe" update /force /queue -"%windir%\microsoft.net\Framework\v4.0.30319\ngen.exe" executequeueditems -"%windir%\microsoft.net\Framework64\v4.0.30319\ngen.exe" executequeueditems +:: .NET Framework 4 +:: Option 1 from "Easy Ngen (.NET Framework) Runner v5.cmd" by Burf +"%windir%\Microsoft.NET\Framework\v4.0.30319\ngen.exe" update /force +"%windir%\Microsoft.NET\Framework\v4.0.30319\ngentask.exe" /runtimewide +"%windir%\Microsoft.NET\Framework64\v4.0.30319\ngen.exe" update /force +"%windir%\Microsoft.NET\Framework64\v4.0.30319\ngentask.exe" /runtimewide -"%windir%\system32\Dism.exe" /online /Cleanup-Image /StartComponentCleanup /ResetBase /RestoreHealth -"%windir%\system32\sfc.exe" /scannow +:: System File Check, Cleanup, and Repair +"%windir%\system32\Dism.exe" /Online /Cleanup-Image /StartComponentCleanup /ResetBase /RestoreHealth +"%windir%\system32\sfc.exe" /SCANNOW +:: Classic Disk Cleanup "%windir%\system32\cleanmgr.exe" /sageset:65535 "%windir%\system32\cleanmgr.exe" /sagerun:65535 -"%windir%\system32\dfrgui.exe" +:: VSS +vssadmin Delete Shadows /All + +:: Defrag/Trim +"%windir%\system32\dfrgui.exe" \ No newline at end of file diff --git a/NVIDIA Disable HDCP.bat b/NVIDIA Disable HDCP.bat new file mode 100644 index 0000000..223e91a --- /dev/null +++ b/NVIDIA Disable HDCP.bat @@ -0,0 +1 @@ +reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000" /v "RMHdcpKeyglobZero" /t "REG_DWORD" /d "1" /f \ No newline at end of file diff --git a/NVIDIA OCL NVVM 7.0.bat b/NVIDIA OCL NVVM 7.0.bat new file mode 100644 index 0000000..8cc2b55 --- /dev/null +++ b/NVIDIA OCL NVVM 7.0.bat @@ -0,0 +1 @@ +setx "NVCL_USE_NVVM70_COMPILER" "1" /M \ No newline at end of file diff --git a/Old Alt + Tab Style.bat b/Old Alt + Tab Style.bat new file mode 100644 index 0000000..bb4f6a8 --- /dev/null +++ b/Old Alt + Tab Style.bat @@ -0,0 +1 @@ +reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" /v "AltTabSettings" /t REG_DWORD /d "1" /f \ No newline at end of file diff --git a/Remove Non-Ultimate Plans.bat b/Remove Non-Ultimate Plans.bat new file mode 100644 index 0000000..814d142 --- /dev/null +++ b/Remove Non-Ultimate Plans.bat @@ -0,0 +1,4 @@ +powercfg -delete "381b4222-f694-41f0-9685-ff5bb260df2e" +powercfg -delete "8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c" +powercfg -delete "a1841308-3541-4fab-bc81-f71556f20b4a" +powercfg -delete "9897998c-92de-4669-853f-b7cd3ecb2790" \ No newline at end of file diff --git a/Remove Quick Access.bat b/Remove Quick Access.bat new file mode 100644 index 0000000..d64812a --- /dev/null +++ b/Remove Quick Access.bat @@ -0,0 +1 @@ +reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" /v "HubMode" /t "REG_DWORD" /d "1" /f \ No newline at end of file diff --git a/ScriptTiger Hosts (fakenews + gambling).ps1 b/ScriptTiger Hosts (fakenews + gambling).ps1 new file mode 100644 index 0000000..0f06ea6 --- /dev/null +++ b/ScriptTiger Hosts (fakenews + gambling).ps1 @@ -0,0 +1,5 @@ +if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { Start-Process powershell.exe "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs; exit } + +[Net.ServicePointManager]::SecurityProtocol = "tls12, tls11, tls" +Invoke-WebRequest "https://scripttiger.github.io/alts/compressed/blacklist-fg.txt" -OutFile "C:\Windows\System32\drivers\etc\hosts" +ipconfig /flushdns diff --git a/Show Power Plans.bat b/Show Power Plans.bat new file mode 100644 index 0000000..d43ef51 --- /dev/null +++ b/Show Power Plans.bat @@ -0,0 +1,2 @@ +powercfg /list +pause \ No newline at end of file diff --git a/Update Store Apps.ps1 b/Update Store Apps.ps1 new file mode 100644 index 0000000..9b6c9a6 --- /dev/null +++ b/Update Store Apps.ps1 @@ -0,0 +1,2 @@ +Get-CimInstance -Namespace "Root\cimv2\mdm\dmmap" -ClassName "MDM_EnterpriseModernAppManagement_AppManagement01" | Invoke-CimMethod -MethodName UpdateScanMethod +winget upgrade --all \ No newline at end of file diff --git a/WinSAT.bat b/WinSAT.bat new file mode 100644 index 0000000..0d8720b --- /dev/null +++ b/WinSAT.bat @@ -0,0 +1 @@ +winsat.exe formal -restart clean \ No newline at end of file