====== Information ======
* Microsoft Windows 10 IoT Enterprise LTSC
* Version 21H2 (OS Build 19044.7184)
====== Resources ======
* [[windows;notes;quick_commands|Quick Commands]]
* [[windows:notes:env_paths|Env PATH Variables]]
* [[windows;notes;misc]]
* [[https://learn.microsoft.com/en-us/windows/win32/debug/system-error-codes--0-499-|System Error Codes (0-499+)]]
* [[https://learn.microsoft.com/en-us/windows/deployment/update/windows-update-error-reference|Windows Update error codes]]
* http://redeem.microsoft.com/ (TODO: Put somewhere else)
* [[https://github.com/Espionage724/Windows|GitHub Batch Files]]
===== TODOs =====
* https://learn.microsoft.com/en-us/troubleshoot/windows-server/remote/frame-rate-limited-to-30-fps (60 FPS RDP)
* https://ss64.com/nt/title.html (''TITLE'' in batch files)
* https://learn.microsoft.com/en-us/windows/client-management/mdm/policy-csp-lanmanserver
* https://learn.microsoft.com/en-us/windows/client-management/mdm/policy-csp-privacy
* 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://forums.overclockers.co.uk/threads/windows-disabling-network-throttling.18558659/#post-25335538
* 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)
====== Updates ======
* [[https://www.catalog.update.microsoft.com/Search.aspx?q=Cumulative+Update+for+Windows+10+Version+21H2+for+x64-based+Systems|Windows 10 21H2 Cumulative Updates - Microsoft Update Catalog]]
* :!: [[https://www.catalog.update.microsoft.com/Search.aspx?q=KB5014032|KB5014032]] 2022-05 SSU is required before the latest CU
====== Shortcuts ======
===== Desktop =====
==== Calculator ====
"%SystemRoot%\System32\win32calc.exe"
Calculator
==== Maintenance ====
"%SystemRoot%\System32\notepad.exe" "%UserProfile%\Desktop\Maintenance.bat"
@echo off
TITLE Maintenance
CD "%Temp%"
:: Disk Cleanup Set-up
"%SystemRoot%\System32\cleanmgr.exe" /sageset:9999
:: System File Check, Cleanup, and Repair
"%SystemRoot%\System32\Dism.exe" /online /Cleanup-Image /StartComponentCleanup /ResetBase /RestoreHealth
"%SystemRoot%\System32\sfc.exe" /scannow
:: Disk Cleanup
"%SystemRoot%\System32\cleanmgr.exe" /sagerun:9999
:: Volume Shadow Copy
"%SystemRoot%\System32\vssadmin.exe" Delete Shadows /All
:: USN Change Journal
"%SystemRoot%\System32\fsutil.exe" usn deleteJournal /D "%SystemDrive%"
:: .NET Framework 4
"%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\ngen.exe" update /force /queue
"%SystemRoot%\Microsoft.NET\Framework64\v4.0.30319\ngen.exe" update /force /queue
"%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\ngen.exe" executequeueditems
"%SystemRoot%\Microsoft.NET\Framework64\v4.0.30319\ngen.exe" executequeueditems
PAUSE
"%SystemRoot%\System32\taskkill.exe" /F /IM "explorer.exe"
"%SystemRoot%\System32\timeout.exe" /T "2" /NOBREAK
:: Icon Cache
DEL /F /Q "%LocalAppData%\Microsoft\Windows\Explorer\"*".db"
DEL /F /Q "%UserProfile%\AppData\Local\IconCache.db"
:: Shader Cache
DEL /F /Q "%LocalAppData%\D3DSCache\*"
DEL /F /Q "%UserProfile%\AppData\LocalLow\Intel\ShaderCache\*"
:: Temp Dirs
DEL /F /Q "%LocalAppData%\Temp\*"
DEL /F /Q "%SystemRoot%\Temp\*"
TIMEOUT /T "2" /NOBREAK
START explorer.exe
:: Defrag/Trim
PAUSE
"%SystemRoot%\System32\Defrag.exe" /AllVolumes /Defrag /TierOptimize /SlabConsolidate /Retrim /Optimize /PrintProgress /Verbose /NormalPriority
PAUSE
:: End
===== Downloads =====
==== Remove Intel Microcode ====
"%SystemRoot%\System32\notepad.exe" "%UserProfile%\Downloads\Remove Intel Microcode.bat"
@echo off
CD "%Temp%"
"%SystemRoot%\System32\takeown.exe" /F "%SystemRoot%\System32\mcupdate_GenuineIntel.dll"
"%SystemRoot%\System32\icacls.exe" "%SystemRoot%\System32\mcupdate_GenuineIntel.dll" /grant "Administrators:F"
DEL /Q "%SystemRoot%\System32\mcupdate_GenuineIntel.dll"
DIR /B "%SystemRoot%\System32\mcupdate_GenuineIntel.dll"
PAUSE
:: End
"%UserProfile%\Downloads\Remove Intel Microcode.bat"
===== Start Menu =====
==== RDP ====
* https://learn.microsoft.com/en-us/azure/virtual-desktop/rdp-properties
"%SystemRoot%\System32\notepad.exe" "%UserProfile%\Documents\Alira (LAN).rdp"
full address:s:192.168.1.152
redirectprinters:i:0
redirectcomports:i:0
redirectsmartcards:i:0
redirectwebauthn:i:0
redirectclipboard:i:1
redirectposdevices:i:0
=== Start Menu ===
"%SystemRoot%\explorer.exe" "%AppData%\Microsoft\Windows\Start Menu\Programs\Accessories"
"%UserProfile%\Documents\Alira (LAN).rdp"
Alira
====== Settings ======
===== BCDEdit =====
* [[windows;notes;bcdedit|Notes]]
===== Microsoft Edge =====
* [[windows;notes;edge_tweaks|Edge Tweaks]]
===== Power =====
==== Disable Hibernation and Fast Start ====
****
"powercfg.exe" /HIBERNATE "OFF"
==== Enable Ultimate Performance Power Plan ====
****
"powercfg.exe" /DUPLICATESCHEME "e9a42b02-d5df-448d-aa00-03f14749eb61"
==== More Settings ====
****
"powercfg.exe" /Qh
===== SMB =====
****
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -Command "Set-SmbClientConfiguration -EnableBandwidthThrottling 0 -Force"
===== 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 Game DVR =====
****
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\GameDVR" /v "AllowgameDVR" /t "REG_DWORD" /d "0" /f
===== Quick Lock Screen =====
* Directly shows password prompt
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Personalization" /v "NoLockScreen" /t REG_DWORD /d "1" /f
==== Undo ====
****
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Personalization" /v "NoLockScreen" /t REG_DWORD /d "0" /f
===== 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 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 "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "EnableLUA" /t "REG_DWORD" /d "0" /f
===== Enable FIPS Mode =====
* https://learn.microsoft.com/en-us/windows/security/security-foundations/certification/fips-140-validation
"%SystemRoot%\System32\reg.exe" ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\FipsAlgorithmPolicy" /v "Enabled" /t "REG_DWORD" /d "1" /f
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -Command "$md5 = New-Object -TypeName 'System.Security.Cryptography.MD5CryptoServiceProvider'"
===== Remove Quick Access =====
****
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" /v "HubMode" /t "REG_DWORD" /d "1" /f
===== Remove Windows Search =====
"%SystemRoot%\System32\sc.exe" stop "WSearch" & "%SystemRoot%\System32\sc.exe" config "WSearch" "start=disabled"
"%SystemRoot%\System32\Dism.exe" /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
===== DX Refresh Rate =====
* 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
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DirectDraw" /v "ForceRefreshRate" /t "REG_DWORD" /d "760" /reg:32 /f
====== Other ======
===== Microsoft Store =====
"%SystemRoot%\System32\notepad.exe" "%UserProfile%\Downloads\Install Microsoft Store.bat"
@echo off
TITLE Install Microsoft Store
CD "%Temp%"
"%SystemRoot%\System32\WSReset.exe" -i
"%SystemRoot%\System32\timeout.exe" /T "20" /NOBREAK
"%SystemRoot%\System32\WSReset.exe" -i
EXIT /B
:: End
"%UserProfile%\Downloads\Install Microsoft Store.bat"
===== WinSAT =====
"%SystemRoot%\System32\WinSAT.exe" "formal" -restart "clean" -v
"%SystemRoot%\System32\WinSAT.exe" forgethistory
"%SystemRoot%\System32\WinSAT.exe" query
===== NetFX3 From Install Media =====
* Change ''D:\'' to install media drive if necessary
Dism /online /enable-feature /featurename:"NetFX3" /All /Source:"D:\sources\sxs" /LimitAccess
===== 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
===== Update Office =====
* TODO: ''C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Microsoft Office Tools''
"%SystemRoot%\explorer.exe" "%AppData%\Microsoft\Windows\Start Menu\Programs\Administrative Tools"
"%CommonProgramFiles%\microsoft shared\ClickToRun\OfficeC2RClient.exe" /update "user" forceappshutdown="True" displaylevel="True"
Update Office
===== TCP ACK =====
* ''DWORD'' = ''1'' for both
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces
TcpAckFrequency
TcpNoDelay
====== Services ======
* [[windows;notes;services|Notes]]
====== Programs ======
* [[windows:programs|More Programs]]
===== 7-Zip =====
* https://www.7-zip.org/download.html
===== Android Tools =====
* [[https://dl-ssl.google.com/android/repository/latest_usb_driver_windows.zip|USB Driver]]
* [[https://dl-ssl.google.com/android/repository/platform-tools-latest-windows.zip|platform-tools]]
===== aria2 =====
* https://github.com/aria2/aria2/releases
===== Brain Workshop =====
* https://sourceforge.net/projects/brainworkshop/files/brainworkshop/
===== DirectX End-User Runtime =====
* https://www.microsoft.com/en-us/download/confirmation.aspx?id=8109
===== Firefox =====
* https://www.firefox.com/en-US/download/all/desktop-esr/win64-msi/en-US/
* https://www.firefox.com/en-US/download/all/
* [[programs;firefox|Settings]]
===== Thunderbird =====
* https://www.thunderbird.net/en-US/thunderbird/all/
===== GIMP =====
* https://www.gimp.org/downloads
* Install for me only (recommended)
* Compact installation (no components)
* Launch -> Create -> ''[ ]'' Show on Start
===== KeePassXC =====
* https://keepassxc.org/download#windows
===== LibreOffice =====
* https://www.libreoffice.org/download/download/
* ''[ ]'' Use a Java runtime
===== Okular =====
* https://cdn.kde.org/ci-builds/graphics/okular/master/windows/
===== Notepad++ =====
* https://github.com/notepad-plus-plus/notepad-plus-plus/releases
===== OBS =====
* https://github.com/obsproject/obs-studio/releases
===== qBittorrent =====
* https://www.qbittorrent.org/download
===== VC++ Redist =====
* https://forums.mydigitallife.net/threads/repack-visual-c-redistributable-runtimes-2025-10-17.76588/
===== VLC media player =====
* https://download.videolan.org/pub/videolan/vlc/last/win64/
* https://www.videolan.org/vlc/download-windows.html
* ''[ ]'' Web plugins
* ''[ ]'' Context Menus
* ''[x]'' Delete preferences and cache
===== Vulkan Runtime =====
* https://vulkan.lunarg.com/sdk/home
====== Games ======
===== Battle.net App =====
* https://download.battle.net/en-us/?product=bnetdesk
* [[http://dist.blizzard.com/downloads/bna-installers/322d5bb9ae0318de3d4cde7641c96425/retail.1/Battle.net-Setup-enUS.exe|Older exe]] (no SSL)
* TODO: [[games;windows;notes;battle_net_client]]
===== Steam =====
* https://steamcdn-a.akamaihd.net/client/installer/SteamSetup.exe
* See [[games;windows;notes;game_launch_flags|Game Launch Flags]]
==== Shortcut ====
* Disable: Settings -> Interface -> Enable GPU accelerated rendering in web views
"%ProgramFiles(x86)%\Steam\steam.exe" -silent -nocrashmonitor -cef-single-process -cef-disable-breakpad
Steam (min)
====== Drivers ======
* See [[windows:drivers|Drivers]] for more URLs
===== Spinesnap =====
* [[https://www.dell.com/support/home/en-us/product-support/product/latitude-15-5591-laptop/drivers|Dell Latitude 5591 - Support and BIOS Updates]]
==== Keyboard ====
* EPOMAKER x LEOBOG Hi75
* https://epomaker.com/blogs/firmware/epomaker-x-leobog-hi75-firmware
* https://epomaker.com/blogs/software/epomaker-x-leobog-hi75-driver
==== Mouse ====
* ATTACK SHARK R6
"%ProgramFiles(x86)%\Microsoft\Edge\Application\msedge_proxy.exe" --app="https://www.xvalleyinno.top/AttackShark/#/project/items"
"%ProgramFiles(x86)%\Microsoft\Edge\Application\msedge_proxy.exe" --app="https://cn.attackshark.pro/WebDriven/index.html#/project/items"
==== SATA/RST ====
* ''16.8.5.1014'' ((OpROM is ''16.0.2.3402'', ''16.8.5.1014.5'' release notes matches latest v16 branch))
==== Ethernet ====
* I219-LM Gigabit
* Intel Corporation Ethernet Connection (7) I219-LM (rev 10) ((rev 10 drivers, not rev 18+))
* https://www.intel.com/content/www/us/en/products/sku/82185/intel-ethernet-connection-i219lm/downloads.html
==== Wireless ====
* AX210
* https://www.intel.com/content/www/us/en/products/sku/204836/intel-wifi-6e-ax210-gig/downloads.html
==== Graphics ====
* Intel UHD Graphics 630
* Intel Corporation CoffeeLake-H GT2 [UHD Graphics 630]
* https://www.intel.com/content/www/us/en/support/products/126790/graphics/processor-graphics/intel-uhd-graphics-family/intel-uhd-graphics-630.html
=== 8GB VRAM ===
* :?: Aperture size and other BIOS options affect available memory ((1024MB aperture does ''7086 MB'' in ''dxdiag''))
"%SystemRoot%\System32\reg.exe" ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\GMM" /v "DedicatedSegmentSize" /t "REG_DWORD" /d "8192" /f
===== Boulderback =====
==== Chipset ====
* https://www.dell.com/support/home/en-us/drivers/driversdetails?driverid=r0jhr&oscode=w764&productcode=precision-m6500
* ''9.1.1.1025''
==== Graphics ====
* https://www.amd.com/en/support/downloads/drivers.html/graphics/firepro/firepro-mobility-series/firepro-m7820-mobility.html
* [[https://drivers.amd.com/drivers/amdcleanuputility.exe|amdcleanuputility.exe]]