| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| windows:notes:misc [2026/07/01 11:41] – [Etc] Sean Rhone | windows:notes:misc [2026/07/30 19:50] (current) – eject iso Sean Rhone |
|---|
| | ====== TODO ====== |
| | |
| | * https://learn.microsoft.com/en-us/troubleshoot/windows-server/remote/frame-rate-limited-to-30-fps (60 FPS RDP) |
| | * https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/deployment/compatibility/compatibility-fixes-for-windows-8-windows-7-and-windows-vista |
| | * https://learn.microsoft.com/en-us/troubleshoot/windows-server/networking/registry-entry-control-tcp-acknowledgment-behavior + [[https://support.purestorage.com/bundle/m_microsoft_platform_guide/page/Solutions/Microsoft_Platform_Guide/Multipath-IO_and_Storage_Settings/topics/concept/c_disabling_delayed_ack_and_nagle.html|this]] (TCP ACK) |
| | * http://redeem.microsoft.com/ (TODO: Put somewhere else) |
| | |
| ====== Run as Basic User ====== | ====== Run as Basic User ====== |
| |
| RUNAS /showtrustlevels | RUNAS /showtrustlevels |
| |
| ====== Disable Windows Defender ====== | ====== Reboot Timer ====== |
| |
| **** | * ''/r'' to ''/s'' for shutdown |
| | |
| | shutdown /r /f /t 60 |
| | |
| | shutdown /a |
| | |
| | ====== Windows Defender ====== |
| | |
| | ===== Disable ===== |
| |
| reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v "DisableAntiSpyware" /t "REG_DWORD" /d "1" /f | reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v "DisableAntiSpyware" /t "REG_DWORD" /d "1" /f |
| |
| ====== Disable Startup Delay ====== | ===== Remove ===== |
| |
| **** | * :?: Requires Enterprise/Server |
| | |
| | Uninstall-WindowsFeature -Name Windows-Defender |
| | |
| | ====== Disable Startup Delay ====== |
| |
| reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Serialize" /v "StartupDelayInMSec" /t "REG_DWORD" /d "0" /f | reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Serialize" /v "StartupDelayInMSec" /t "REG_DWORD" /d "0" /f |
| |
| ===== Old ===== | ===== Old ===== |
| | |
| | * LTSB 1607 has OneDrive pre-installed |
| | * Not applicable for Office-installed OneDrive |
| |
| taskkill /IM "OneDrive.exe" /F | taskkill /IM "OneDrive.exe" /F |
| reg delete "HKCR\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f | reg delete "HKCR\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f |
| |
| ====== Remove Defender ====== | ====== GPU Shader Cache Wipe ====== |
| |
| * :?: Requires Enterprise/Server | ===== Intel ===== |
| |
| Uninstall-WindowsFeature -Name Windows-Defender | DEL /F /Q "%UserProfile%\AppData\LocalLow\Intel\ShaderCache\"* |
| |
| ====== GPU Shader Cache Wipe ====== | ====== DX Refresh Rate ====== |
| |
| ===== Intel ===== | * https://steamcommunity.com/app/227600/discussions/0/864979008327344181/ |
| | * [[https://www.pcgamingwiki.com/wiki/Glossary:Frame_rate_(FPS)#Force_games_to_use_a_custom_refresh_rate|https://www.pcgamingwiki.com/wiki/Glossary:Frame_rate_(FPS)#Force_games_to_use_a_custom_refresh_rate]] |
| |
| **** | REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DirectDraw" /v "ForceRefreshRate" /t "REG_DWORD" /d "760" /reg:64 /f |
| |
| DEL /F /Q "%UserProfile%\AppData\LocalLow\Intel\ShaderCache\"* | REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DirectDraw" /v "ForceRefreshRate" /t "REG_DWORD" /d "760" /reg:32 /f |
| | |
| | ====== Test FIPS Mode ====== |
| | |
| | "%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -Command "$md5 = New-Object -TypeName 'System.Security.Cryptography.MD5CryptoServiceProvider'" |
| |
| ====== MEM_TOP_DOWN ====== | ====== MEM_TOP_DOWN ====== |
| |
| * https://learn.microsoft.com/en-us/windows/win32/memory/4-gigabyte-tuning | * 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/07/22: 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 | * :?: 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 | "%SystemRoot%\System32\reg.exe" ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "AllocationPreference" /t "REG_DWORD" /d "0x100000" /f |
| |
| ===== Etc ===== | ====== RST to AHCI ====== |
| | |
| | - ''safeboot minimal'' |
| | - Reboot to BIOS settings |
| | - RST -> AHCI |
| | - Boot to Safe Mode |
| | - ''/deletevalue safeboot'' |
| | - Reboot to Windows |
| | |
| | "%SystemRoot%\System32\bcdedit.exe" /set "SAFEBOOT" "Minimal" |
| | |
| | "%SystemRoot%\System32\bcdedit.exe" /deletevalue "SAFEBOOT" |
| | |
| | ====== Eject ISO ====== |
| | |
| | * Eject disk at ''D:\'' ([[https://superuser.com/questions/972447/how-can-i-eject-a-cd-via-the-cmd/972502#972502|source]]) |
| | |
| | "%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -Command "(New-Object -COM 'Shell.Application').NameSpace(17).ParseName('D:').InvokeVerb('Eject')" |
| | |
| | ====== Tweaks ====== |
| | |
| | ===== Memory Management ===== |
| |
| "%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 "DisablePagingExecutive" /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 | "%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 ====== | ===== UseLargePages ===== |
| |
| **** | "%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 |
| |
| "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" | "%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 |
| |
| ===== Disable ===== | "%SystemRoot%\System32\reg.exe" ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\ntoskrnl.exe" /v "UseLargePages" /t "REG_DWORD" /d "1" /f |
| |
| * Default | "%SystemRoot%\System32\reg.exe" ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\svchost.exe" /v "UseLargePages" /t "REG_DWORD" /d "1" /f |
| |
| "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" | "%SystemRoot%\System32\reg.exe" ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\csrss.exe" /v "UseLargePages" /t "REG_DWORD" /d "1" /f |
| |
| ====== Compats ====== | ==== Firefox ==== |
| | |
| ===== Firefox ===== | |
| |
| * :!: 2026/04/08: ''UseLargePages'' caused random tab crashes | * :!: 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 "0" /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 "0" /f |
| |
| ===== Explorer ===== | ====== Start Menu ====== |
| |
| "%SystemRoot%\System32\reg.exe" ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "%SystemRoot%\explorer.exe" /t "REG_SZ" /d "~ DISABLEDXMAXIMIZEDWINDOWEDMODE HIGHDPIAWARE DISABLEDWM DISABLETHEMES NoDTToDITMouseBatch" /f | ===== RDP ===== |
| |
| "%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 | * https://learn.microsoft.com/en-us/azure/virtual-desktop/rdp-properties |
| | * [[https://learn.microsoft.com/en-us/previous-versions/windows/apps/hh994953(v=win.10)|https://learn.microsoft.com/en-us/previous-versions/windows/apps/hh994953(v=win.10)]] |
| |
| ===== DWM ===== | "%SystemRoot%\System32\notepad.exe" "%UserProfile%\Documents\Alira (LAN).rdp" |
| |
| "%SystemRoot%\System32\reg.exe" ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "%SystemRoot%\System32\dwm.exe" /t "REG_SZ" /d "~ DISABLEDXMAXIMIZEDWINDOWEDMODE HIGHDPIAWARE DISABLEDWM DISABLETHEMES NoDTToDITMouseBatch" /f | <code> |
| | full address:s:192.168.1.152 |
| | networkautodetect:i:0 |
| | connection type:i:6 |
| | gatewayusagemethod:i:4 |
| | use redirection server name:i:0 |
| | prompt for credentials:i:0 |
| | allow font smoothing:i:1 |
| | redirectprinters:i:0 |
| | redirectcomports:i:0 |
| | redirectsmartcards:i:0 |
| | redirectwebauthn:i:0 |
| | redirectclipboard:i:1 |
| | redirectposdevices:i:0</code> |
| |
| "%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 | === Start Menu === |
| |
| ===== Etc ===== | "%SystemRoot%\explorer.exe" "%AppData%\Microsoft\Windows\Start Menu\Programs\Accessories" |
| |
| "%SystemRoot%\System32\reg.exe" ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\ntoskrnl.exe" /v "UseLargePages" /t "REG_DWORD" /d "1" /f | "%UserProfile%\Documents\Alira (LAN).rdp" |
| |
| "%SystemRoot%\System32\reg.exe" ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\svchost.exe" /v "UseLargePages" /t "REG_DWORD" /d "1" /f | Alira |
| | |
| "%SystemRoot%\System32\reg.exe" ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\csrss.exe" /v "UseLargePages" /t "REG_DWORD" /d "1" /f | |
| |
| ====== Version Notes ====== | ====== Version Notes ====== |