User Tools

Site Tools


windows:notes:misc

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
windows:notes:misc [2025/03/19 00:59] – created Sean Rhonewindows:notes:misc [2026/04/16 17:03] (current) Sean Rhone
Line 6: Line 6:
  
   RUNAS /showtrustlevels   RUNAS /showtrustlevels
 +
 +====== Disable Windows Defender ======
 +
 +****
 +
 +  reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v "DisableAntiSpyware" /t "REG_DWORD" /d "1" /f
 +
 +====== Disable Startup Delay ======
 +
 +****
 +
 +  reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Serialize" /v "StartupDelayInMSec" /t "REG_DWORD" /d "0" /f
 +
 +====== Disable SmartScreen ======
 +
 +  * General
 +  * Windows Store Apps
 +  * Microsoft Edge
 +
 +  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 "EnableWebContentEvaluation" /t "REG_DWORD" /d "0" /f
 +
 +  reg add "HKLM\SOFTWARE\Policies\Microsoft\MicrosoftEdge\PhishingFilter" /v "EnabledV9" /t "REG_DWORD" /d "0" /f
 +
 +====== Remove Most Modern UI Apps ======
 +
 +  * Not necessary with Local Account log-ins and Pro/Enterprise/LTSC editions
 +  * Tested fine on 20H2, 21H2, and 23H2
 +  * :!: This broke the start menu on 1809
 +  * :!: 2024/08: May cause Explorer windows to act broken at times on 11 23H2
 +
 +  * Powershell Script ''*.ps1''
 +
 +  Get-AppxPackage -allusers | Remove-AppxPackage
 +
 +====== Remove OneDrive ======
 +
 +  taskkill /IM "OneDrive.exe" /F
 +
 +  %windir%\SysWOW64\OneDriveSetup.exe /uninstall
 +
 +  rmdir "%UserProfile%\OneDrive" "%ProgramData%\Microsoft OneDrive" "%LocalAppData%\Microsoft\OneDrive" "C:\OneDriveTemp" /S /Q
 +
 +  reg delete "HKCR\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f
 +
 +  reg delete "HKCR\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f
 +
 +====== Remove Defender ======
 +
 +  * :?: Requires Enterprise/Server
 +
 +  Uninstall-WindowsFeature -Name Windows-Defender
 +
 +====== GPU Shader Cache Wipe ======
 +
 +===== Intel =====
 +
 +****
 +
 +  DEL /F /Q "%UserProfile%\AppData\LocalLow\Intel\ShaderCache\"*
 +
 +====== MEM_TOP_DOWN ======
 +
 +  * https://learn.microsoft.com/en-us/windows/win32/memory/4-gigabyte-tuning
 +  * :!: 2025/10/13: 2009Scape [[games;windows;rt4_client_runescape_530|RT4-Client]] failed to load on [[windows;10|10 21H2]] ((client closes after loading Sound resources))
 +  * :?: 2026/04/09: Likely caused GTA V to freeze on-start and Counter-Strike Source to crash before main menu
 +
 +  "%SystemRoot%\System32\reg.exe" ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "AllocationPreference" /t "REG_DWORD" /d "0x100000" /f
 +
 +===== Etc =====
 +
 +  "%SystemRoot%\System32\reg.exe" ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "DisablePagingExecutive" /t "REG_DWORD" /d "1" /f
 +
 +  "%SystemRoot%\System32\reg.exe" ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "LargeSystemCache" /t "REG_DWORD" /d "1" /f
 +
 +  "%SystemRoot%\System32\reg.exe" ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "SystemPages" /t "REG_DWORD" /d "0XFFFFFFFF" /f
 +
 +====== ICMP Echo Allow ======
 +
 +****
 +
 +  "netsh.exe" advfirewall firewall set rule name="Core Networking Diagnostics - ICMP Echo Request (ICMPv4-In)" profile="private,public" new enable="yes" && "netsh.exe" advfirewall firewall set rule name="Core Networking Diagnostics - ICMP Echo Request (ICMPv4-Out)" profile="private,public" new enable="yes" && "netsh.exe" advfirewall firewall set rule name="Core Networking Diagnostics - ICMP Echo Request (ICMPv6-In)" profile="private,public" new enable="yes" && "netsh.exe" advfirewall firewall set rule name="Core Networking Diagnostics - ICMP Echo Request (ICMPv6-Out)" profile="private,public" new enable="yes"
 +
 +===== Disable =====
 +
 +  * Default
 +
 +  "netsh.exe" advfirewall firewall set rule name="Core Networking Diagnostics - ICMP Echo Request (ICMPv4-In)" profile="private,public" new enable="no" && "netsh.exe" advfirewall firewall set rule name="Core Networking Diagnostics - ICMP Echo Request (ICMPv4-Out)" profile="private,public" new enable="no" && "netsh.exe" advfirewall firewall set rule name="Core Networking Diagnostics - ICMP Echo Request (ICMPv6-In)" profile="private,public" new enable="no" && "netsh.exe" advfirewall firewall set rule name="Core Networking Diagnostics - ICMP Echo Request (ICMPv6-Out)" profile="private,public" new enable="no"
 +
 +====== Compats ======
 +
 +===== Firefox =====
 +
 +  * :!: 2026/04/08: ''UseLargePages'' caused random tab crashes
 +
 +  "%SystemRoot%\System32\reg.exe" ADD "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "%ProgramFiles%\Mozilla Firefox\firefox.exe" /t "REG_SZ" /d "~ DISABLEDXMAXIMIZEDWINDOWEDMODE HIGHDPIAWARE DISABLEDWM DISABLETHEMES NoDTToDITMouseBatch" /f
 +
 +  "%SystemRoot%\System32\reg.exe" ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\firefox.exe" /v "UseLargePages" /t "REG_DWORD" /d "1" /f
 +
 +===== Explorer =====
 +
 +  "%SystemRoot%\System32\reg.exe" ADD "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "%SystemRoot%\explorer.exe" /t "REG_SZ" /d "~ DISABLEDXMAXIMIZEDWINDOWEDMODE HIGHDPIAWARE DISABLEDWM DISABLETHEMES NoDTToDITMouseBatch" /f
 +
 +  "%SystemRoot%\System32\reg.exe" ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\explorer.exe" /v "UseLargePages" /t "REG_DWORD" /d "1" /f
 +
 +===== DWM =====
 +
 +  "%SystemRoot%\System32\reg.exe" ADD "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "%SystemRoot%\System32\dwm.exe" /t "REG_SZ" /d "~ DISABLEDXMAXIMIZEDWINDOWEDMODE HIGHDPIAWARE DISABLEDWM DISABLETHEMES NoDTToDITMouseBatch" /f
 +
 +  "%SystemRoot%\System32\reg.exe" ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\dwm.exe" /v "UseLargePages" /t "REG_DWORD" /d "1" /f
 +
 +====== Version Notes ======
 +
 +===== LTSC 1809 =====
 +
 +  * 2026/04
 +
 +  * Has both ''curl.exe'' and ''tar.exe''
 +  * Defrag command in Maintenance bat needs different flags than 21H2
 +  * No known benefit over 21H2
 +
 +===== LTSB 1607 =====
 +
 +  * 2026/04
 +
 +  * No ''curl.exe'' nor ''tar.exe''
 +  * Runs GTA V Online (BattlEye no problem 1607, GTA V DX10 fine 2018 GPU driver)
 +  * Intel UHD 630 driver from 2018 (''.2141'' nor latest 6th-gen install/require newer Windows than 1607)
 +  * OneDrive is integrated and doesn't uninstall as-easily like it's installed with Office
 +  * No Edge (business ''msi'' installs fine and works with ''msedge_proxy'')
 +  * Alps touchpad driver doesn't install (benefit)
  
/srv/www/wiki/data/attic/windows/notes/misc.1742360363.txt.gz · Last modified: by Sean Rhone

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki