windows:10
This is an old revision of the document!
Table of Contents
Information
- Microsoft Windows 10
- 21H1
Notes
- Enabling Secure Boot prevents non-WHQL drivers from working 1)
Download
- To show ISO downloads on Windows 10 from Firefox: Tools → Browser Tools → Responsive Design Mode
LTSB
Updates
Slipstream
Information
- SSU is to be installed before the CU
Link
Settings
Disable Clipboard History
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\System" /v "AllowClipboardHistory" /t REG_DWORD /d "0" /f
Disable Cortana and Web Search
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v "AllowCortana" /t REG_DWORD /d "0" /f
Disable CPU Mitigations
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
Disable Game DVR
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\GameDVR" /v "AllowgameDVR" /t "REG_DWORD" /d "0" /f
Disable Hibernation and Fast Start
powercfg /H off
Disable Last Access Time File Updates
fsutil behavior set disablelastaccess 1
Disable Online Speech Recognition
reg add "HKLM\SOFTWARE\Policies\Microsoft\InputPersonalization" /v "AllowInputPersonalization" /t REG_DWORD /d "0" /f
Open Pictures With Windows Photo Viewer
reg add "HKCU\Software\Classes\.jpg" /ve /t "REG_SZ" /d "PhotoViewer.FileAssoc.Tiff" /f
reg add "HKCU\Software\Classes\.jpeg" /ve /t "REG_SZ" /d "PhotoViewer.FileAssoc.Tiff" /f
reg add "HKCU\Software\Classes\.gif" /ve /t "REG_SZ" /d "PhotoViewer.FileAssoc.Tiff" /f
reg add "HKCU\Software\Classes\.png" /ve /t "REG_SZ" /d "PhotoViewer.FileAssoc.Tiff" /f
reg add "HKCU\Software\Classes\.bmp" /ve /t "REG_SZ" /d "PhotoViewer.FileAssoc.Tiff" /f
reg add "HKCU\Software\Classes\.tiff" /ve /t "REG_SZ" /d "PhotoViewer.FileAssoc.Tiff" /f
reg add "HKCU\Software\Classes\.ico" /ve /t "REG_SZ" /d "PhotoViewer.FileAssoc.Tiff" /f
Disable Remote Desktop
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "fDenyTSConnections" /t REG_DWORD /d "1" /f
Disable Shared Experiences
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\System" /v "EnableCdp" /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
Disable Startup Delay
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Serialize" /v "StartupDelayInMSec" /t "REG_DWORD" /d "0" /f
Disable System Restore
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\SystemRestore" /v "DisableSR " /t "REG_DWORD" /d "1" /f
Disable Telemetry Features
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v "AllowTelemetry" /t "REG_DWORD" /d "0" /f
Disable User Account Control
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "EnableLUA" /t "REG_DWORD" /d "0" /f
Disable Windows Defender
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v "DisableAntiSpyware" /t "REG_DWORD" /d "1" /f
Remove Quick Access
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" /v "HubMode" /t "REG_DWORD" /d "1" /f
Remove Windows Search
Dism /online /Disable-Feature /FeatureName:"SearchEngine-Client-Package" /Remove
Show All Folders in File Explorer Pane
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "NavPaneShowAllFolders" /t "REG_DWORD" /d "1" /f
Verbose Shutdown
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "VerboseStatus" /t REG_DWORD /d "1" /f
Other
ScriptTiger Hosts File
- Unified hosts + fakenews + gambling (Compressed)
- Powershell Script
*.ps1
[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
NetFX3 From Install Media
- Change
D:\
to install media drive if necessary
Dism /online /enable-feature /featurename:"NetFX3" /All /Source:"D:\sources\sxs" /LimitAccess
Remove Most Modern UI Apps
- Tested fine on 20H2
- This broke the start menu on 1809
- 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
Maintenance
- Last updated: 2020/10/02
:: .NET Framework 4 "%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 :: 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 :: Defrag/Trim "%windir%\system32\dfrgui.exe"
CPU Priority
3
= High1
= Low- This doesn't work for
OVRServer_x64.exe
- Last updated: 2021/08/29
:: Oculus and SteamVR reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\OculusClient.exe\PerfOptions" /v "CpuPriorityClass" /t REG_DWORD /d "3" /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\OculusDash.exe\PerfOptions" /v "CpuPriorityClass" /t REG_DWORD /d "3" /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\OVRRedir.exe\PerfOptions" /v "CpuPriorityClass" /t REG_DWORD /d "3" /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\OVRServer_x64.exe\PerfOptions" /v "CpuPriorityClass" /t REG_DWORD /d "3" /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\ovrservicelauncher.exe\PerfOptions" /v "CpuPriorityClass" /t REG_DWORD /d "3" /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\vrserver.exe\PerfOptions" /v "CpuPriorityClass" /t REG_DWORD /d "3" /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\vrcompositor.exe\PerfOptions" /v "CpuPriorityClass" /t REG_DWORD /d "3" /f :: Games reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\Gw2-64.exe\PerfOptions" /v "CpuPriorityClass" /t REG_DWORD /d "3" /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\AI.exe\PerfOptions" /v "CpuPriorityClass" /t REG_DWORD /d "3" /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\amtrucks.exe\PerfOptions" /v "CpuPriorityClass" /t REG_DWORD /d "3" /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\AoE2DE_s.exe\PerfOptions" /v "CpuPriorityClass" /t REG_DWORD /d "3" /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\Beat Saber.exe\PerfOptions" /v "CpuPriorityClass" /t REG_DWORD /d "3" /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\BladeAndSorcery.exe\PerfOptions" /v "CpuPriorityClass" /t REG_DWORD /d "3" /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\Diablo II64.exe\PerfOptions" /v "CpuPriorityClass" /t REG_DWORD /d "3" /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\DJMAX RESPECT V.exe\PerfOptions" /v "CpuPriorityClass" /t REG_DWORD /d "3" /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\DOOMEternalx64vk.exe\PerfOptions" /v "CpuPriorityClass" /t REG_DWORD /d "3" /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\dota2.exe\PerfOptions" /v "CpuPriorityClass" /t REG_DWORD /d "3" /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\ffxv_s.exe\PerfOptions" /v "CpuPriorityClass" /t REG_DWORD /d "3" /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\Game.exe\PerfOptions" /v "CpuPriorityClass" /t REG_DWORD /d "3" /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\hlvr.exe\PerfOptions" /v "CpuPriorityClass" /t REG_DWORD /d "3" /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\HorizonZeroDawn.exe\PerfOptions" /v "CpuPriorityClass" /t REG_DWORD /d "3" /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\Incursion-Win64-Shipping.exe\PerfOptions" /v "CpuPriorityClass" /t REG_DWORD /d "3" /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\MonsterHunterWorld.exe\PerfOptions" /v "CpuPriorityClass" /t REG_DWORD /d "3" /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\pCARS3.exe\PerfOptions" /v "CpuPriorityClass" /t REG_DWORD /d "3" /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\SkyrimVR.exe\PerfOptions" /v "CpuPriorityClass" /t REG_DWORD /d "3" /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\starter.exe\PerfOptions" /v "CpuPriorityClass" /t REG_DWORD /d "3" /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\starwarssquadrons.exe\PerfOptions" /v "CpuPriorityClass" /t REG_DWORD /d "3" /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\TheForestVR.exe\PerfOptions" /v "CpuPriorityClass" /t REG_DWORD /d "3" /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\Wow.exe\PerfOptions" /v "CpuPriorityClass" /t REG_DWORD /d "3" /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\ZFGameBrowser.exe\PerfOptions" /v "CpuPriorityClass" /t REG_DWORD /d "3" /f :: CORSAIR CUE v2 reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\CUE.exe\PerfOptions" /v "CpuPriorityClass" /t REG_DWORD /d "1" /f
Remove Power Plans
- For whatever reason, Windows likes to revert to High Performance (or another program switches it) instead of keeping a custom power plan
- The solution to this is to simply remove all power plans that aren't the custom one
Show Plans
powercfg /list
Ultimate Power Plan
powercfg -duplicatescheme e9a42b02-d5df-448d-aa00-03f14749eb61
Remove Plans
- Replace
x
with theGUID
of the plan listed with the above command
powercfg -delete x
powercfg -delete 381b4222-f694-41f0-9685-ff5bb260df2e
Information
Auto Login
control userpasswords2
Add Hardware Wizard
%SYSTEMROOT%\System32\hdwwiz.exe
GodMode Folder
GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}
Lock screen Background
- Hero
C:\Windows\Web\Wallpaper\Windows\img0.jpg
Prevent Driver Changes
Notes
- To be done after a proper driver is manually installed
- This ensures Windows Update nor anything else can replace installed drivers for specific devices unattended
- Additional entries need to add a new number (the value after
/v
) - The device ID can be acquired from Device Manager and should be pasted as-is (no extra slashes)
Base Policies
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DeviceInstall\Restrictions" /v "DenyDeviceIDs" /t "REG_DWORD" /d "1" /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DeviceInstall\Restrictions" /v "DenyDeviceIDsRetroactive" /t "REG_DWORD" /d "0" /f
Format
- Do not copy/paste these as-is; only here for reference
- Adjust to specific devices as-needed
Add Prevent Policy
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DeviceInstall\Restrictions\DenyDeviceIDs" /v "#" /t "REG_SZ" /d "PCI\VEN_XXXX&DEV_XXXX&SUBSYS_XXXXXXXX&REV_XX" /f
Remove Prevent Policy
reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\DeviceInstall\Restrictions\DenyDeviceIDs" /v "#" /f
Hardware Utilities
CPU-Z
GPU-Z
prime95
HWiNFO
poclmembench
Driver Store Explorer
AMD Cleanup Utility
AMD Ryzen Master
CrystalDiskInfo
MSI Kombustor
memtestCL
Fooling Around
LatencyMon
OCCT
InSpectre
FurMark
Intel PDT
- Intel Processor Diagnostic Tool
Programs
7-Zip-zstd
- Anything compressed with this needs to be extracted with this
Android Tools
SETX /M path "%path%;C:\Program Files\platform-tools"
aria2
SETX /M path "%path%;C:\Program Files\aria2c"
BleachBit
Calculator
- Only available on LTSB/LTSC
win32calc
DirectX End-User Runtime
DXVK
- See dll_overrides
FileZilla
Firefox
Download
Settings
Default Profile
rd "%appdata%\Mozilla" /s /q
md "%appdata%\Mozilla\Firefox\Profiles\espionage724"
profiles.ini
notepad "%appdata%\Mozilla\Firefox\profiles.ini"
[General] StartWithLastProfile=1 [Profile0] Name=default IsRelative=1 Path=Profiles/espionage724 Default=1
user.js
- Last updated: 2020/11/05
notepad "%appdata%\Mozilla\Firefox\Profiles\espionage724\user.js"
/*********** * General * ***********/ user_pref("extensions.screenshots.disabled", true); user_pref("reader.parse-on-load.enabled", false); user_pref("accessibility.force_disabled", 1); user_pref("mousewheel.min_line_scroll_amount", 40); /*********** * Privacy * ***********/ user_pref("geo.enabled", false); user_pref("privacy.donottrackheader.enabled", true); user_pref("browser.safebrowsing.malware.enabled", false); user_pref("browser.safebrowsing.phishing.enabled", false); user_pref("browser.safebrowsing.downloads.enabled", false); user_pref("network.security.esni.enabled", true); user_pref("privacy.trackingprotection.enabled", true); user_pref("toolkit.telemetry.enabled", false); /******* * U2F * *******/ user_pref("security.webauth.u2f", true); /******* * END * *******/
Apply Settings
- Firefox must be started for the first time with the
-p
flag for the profile above to be used
"%ProgramFiles%\Mozilla Firefox\firefox.exe" -p default
Remove Features
rd "%ProgramFiles%\Mozilla Firefox\browser\features" /s /q
Extensions
- Decentraleyes
- Privacy Possum
- Cookie AutoDelete
- uBlock Origin
Cookie AutoDelete
- Clean-up everything
- Disable notifications
uBlock Origin
Settings
- [x] Prevent WebRTC from leaking local IP addresses
Filter lists
- Multipurpose → [x] Dan Pollock's hosts file
- Multipurpose → [x] hpHost's Ad and tracking servers
- Multipurpose → [x] MVPS HOSTS
- Custom → [x] Import
Custom 3rd-party filters
- Last updated: 2018/11/23
- Last verified: 2020/11/05
https://www.fanboy.co.nz/fanboy-problematic-sites.txt https://www.fanboy.co.nz/r/fanboy-ultimate.txt https://www.fanboy.co.nz/fanboy-antifacebook.txt https://www.fanboy.co.nz/fanboy-antifonts.txt https://www.fanboy.co.nz/fanboy-cookiemonster.txt https://raw.githubusercontent.com/ryanbr/fanboy-adblock/master/popads-domains-list.txt https://raw.githubusercontent.com/ryanbr/fanboy-adblock/master/fake-news.txt
Testing Sites
GIMP
Google Chrome
iTunes
KeePassXC
Keybase
KMS-VL-ALL
LibreOffice
mpv
Notepad++
OBS
qBittorrent
Rufus
Thunderbird
Visual C++ Redistributable Runtimes
Vulkan Runtime
WireGuard
- If kill switch is enabled, all local network resources can't be accessed
VPN.AC
Games
Battle.net App
Oculus
Use HEVC
- Use HEVC/H.265 instead of AVC/H.264 for Link
- As of 2021/06/30, HEVC doesn't work for a RX 580, but it falls back to AVC; presumably this will be fixed at some point
reg add "HKEY_CURRENT_USER\SOFTWARE\Oculus\RemoteHeadset" /v "HEVC" /t REG_DWORD /d "1" /f
Disable SPUD
- This lowers average Motion-to-photon latency by about 4ms for a Rift CV1 (19ms to 15ms)
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Oculus" /v "UseSpud" /t REG_DWORD /d "0" /f
Logs
%localappdata%\Oculus
SideQuest
Virtual Desktop
- If there's a beta available, it will be available from the last URL
ADB
- ADB drivers are automatically installed by Oculus
- For general
.apk
installs andadb shell
commands, use SideQuest instead - For sideloading firmware updates, SideQuest cannot be used, and thus will need the
platform-tools
package below
Backup/Restore
Installer
- Let Oculus download its 5GB+ installer
- While it is installing, backup the
C:\OculusSetup-DownloadCache
folder - The backup must be done after the download, and while Oculus is installing
- If restoring, transfer 5GB+ to
C:\OculusSetup-DownloadCache
and start the Oculus installer - If an updated Oculus client is available, it will download instead of restoring
Client
- Go to the
Oculus\Support
folder - If there's 15 folders, backup everything except
oculus-dreamdeck-nux
,oculus-touch-tutorial
, andoculus-worlds
- 12 folders should be included in the backup and it should be around 605MB if archived
- This has been true with versions pre-V12, V18-V30
- For restoring, stop the Oculus service through command or Debug Tool, delete the existing 12 folders, restore the 12 folders from backup, and start the Oculus service
%OculusBase%\Support
Prevent Client Updates
- This sets the update channel to something unknown, so the Oculus client can't compare its version to check for updates
- To revert this, it may be enough to toggle the
Public Test Channel
option from Oculus
LIVE
StablePublicTest
= Public Test Channel/PTCNOUPD8
= Some nonsense value
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Oculus VR, LLC\Oculus\Config" /v "CoreChannel" /t "REG_SZ" /d "NOUPD8" /f
Origin
Steam
Drivers
- See drivers for more URLs
Nightwane
Motherboard
Keyboard/Mouse
2.24.50
is the latest known V2 version- V3 is bloated and has high CPU usage
- V4 doesn't allow for disabling mouse DPI stages
Racing Wheel
- Logitech G29 Driving Force Racing Wheel
- Don't use Logitech Gaming Software as it breaks force-feedback in City Car Driving and has no known benefit otherwise
Audio
Chipset
Graphics
- RX 580
USB
- ASM1142
- Do not install any special driver for the AMD USB controllers/hubs, ever
Ethernet
- I211 Gigabit
- Need to install the PROSet Control Panel in order to access the Low Latency port option
C:/www/wiki/data/attic/windows/10.1630248521.txt.gz · Last modified: 2021/08/29 10:48 (external edit)