### List all UWP / AppX packages installed for all users Source: https://context7.com/awesome-windows11/windows11/llms.txt Retrieves the package name and full package name for all installed UWP apps across all user accounts. Useful for identifying apps to remove. ```powershell # Summary view Get-AppxPackage -AllUsers | Select Name, PackageFullName ``` ```powershell # Full details for deep analysis Get-AppxPackage -AllUsers ``` -------------------------------- ### Fix Start Menu Not Opening in Windows 11 Source: https://github.com/awesome-windows11/windows11/blob/main/README.md This PowerShell command re-registers the ShellExperienceHost app, which can resolve issues where the Start Menu fails to open. It uses Add-AppxPackage with the -register flag. ```powershell Get-AppxPackage Microsoft.Windows.ShellExperienceHost | foreach {Add-AppxPackage -register "$($_. InstallLocation)\appxmanifest.xml" -DisableDevelopmentMode} ``` -------------------------------- ### Restore broken Microsoft Store or AppInstaller (winget) Source: https://context7.com/awesome-windows11/windows11/llms.txt Re-registers AppX packages for Microsoft Store, AppInstaller (winget), Windows Terminal, and Notepad from their installed locations without requiring a download. Use 'wsreset.exe -i' for an alternative Store reset. ```powershell # Restore Microsoft Store Get-AppXPackage *WindowsStore* -AllUsers | ForEach-Object { Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml" } ``` ```powershell # Restore winget (AppInstaller) Get-AppXPackage *AppInstaller* -AllUsers | ForEach-Object { Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml" } ``` ```powershell # Restore Windows Terminal Get-AppXPackage *WindowsTerminal* -AllUsers | ForEach-Object { Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml" } # Alternative one-liner for Store reset wsreset.exe -i ``` -------------------------------- ### Windows 11 Installation Bypass Registry Key Source: https://context7.com/awesome-windows11/windows11/llms.txt Adds a registry key to allow Windows 11 upgrades on systems with unsupported TPM or CPU configurations. This is a common method for bypassing installation requirements. ```cmd # TPM 2.0 bypass (for unsupported hardware): # Use Rufus with "Remove requirement for Secure Boot and TPM 2.0" option # Or use registry bypass during setup: reg add "HKLM\SYSTEM\Setup\MoSetup" /v AllowUpgradesWithUnsupportedTPMOrCPU /t REG_DWORD /d 1 /f ``` -------------------------------- ### Remove ALL Microsoft Store apps (excluding the Store itself) Source: https://context7.com/awesome-windows11/windows11/llms.txt Bulk-removes all installed Store apps for all users, while ensuring the Microsoft Store application remains to allow for selective reinstallation. ```powershell Get-AppxPackage -AllUsers | Where-Object {$_.Name -notlike "*store*"} | Remove-AppxPackage ``` -------------------------------- ### Disable Microsoft Store Apps AutoUpdate and Force Install Source: https://github.com/awesome-windows11/windows11/blob/main/README.md Configure policies to disable automatic updates for Microsoft Store apps and prevent the installation of suggested or OEM apps. These settings affect the current user. ```powershell # "Disable AutoUpdate Apps Microsoft Store" reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CloudContent" /v DisableWindowsConsumerFeatures /t REG_DWORD /d 1 /f # "Block the automatic installation of suggested Windows 10 apps" reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v SilentInstalledAppsEnabled /t REG_DWORD /d 0 /f # "Disable Showing App Suggestions in Start in Windows 10 (settings app)" reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v SubscribedContent-338388Enabled /t REG_DWORD /d 0 /f # "Disable OEM Apps" reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v OemPreInstalledAppsEnabled /t REG_DWORD /d 0 /f # "Disable Promotional Apps" reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v PreInstalledAppsEnabled /t REG_DWORD /d 0 /f pause ``` -------------------------------- ### Set Telegram Portable as Default Handler Source: https://github.com/awesome-windows11/windows11/blob/main/README.md Modifies the Windows registry to associate the tg:// protocol with a portable Telegram installation. Ensure the path to Telegram.exe is correct for your system. ```powershell reg add "HKEY_CURRENT_USER\SOFTWARE\Classes\tdesktop.tg\shell\open\command" /ve /d ""G:\Apps\Telegram\Telegram.exe" -workdir "G:/Apps/Telegram/" -- "%1"" /f pause ``` -------------------------------- ### Remove ALL Microsoft Store Apps Source: https://github.com/awesome-windows11/windows11/blob/main/README.md This script removes all Microsoft Store applications for the current user. Use with caution as it will remove all installed Store apps. ```powershell Get-AppxPackage | Remove-AppxPackage ``` -------------------------------- ### Disable Windows Update Auto-Install and OS Upgrades Source: https://context7.com/awesome-windows11/windows11/llms.txt These registry modifications prevent Windows from automatically downloading and installing updates, and block feature upgrades to new OS versions. Use with caution as it impacts security patching. ```powershell # Block OS version upgrades (e.g., prevent jump from 21H2 to 22H2) reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v DisableOSUpgrade /t REG_DWORD /d 1 /f # Remove access to Windows Update UI scanning/downloading reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v SetDisableUXWUAccess /t REG_DWORD /d 1 /f # Disable automatic update (main switch) reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v NoAutoUpdate /t REG_DWORD /d 1 /f # Disable automatic driver installation reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\DriverSearching" /v SearchOrderConfig /t REG_DWORD /d 0 /f ``` -------------------------------- ### Enable GodMode Source: https://context7.com/awesome-windows11/windows11/llms.txt Creates a special folder that exposes all Control Panel settings in a single Explorer window. Note: This may not function in Windows 10 version 2004 and later. ```cmd # Create a new folder and name it exactly: Settings.{ED7BA470-8E54-465E-825C-99712043E01C} # Note: Does not function in Windows 10 2004+ where Control Panel has been partially removed ``` -------------------------------- ### Add Application to Right-Click Context Menu Source: https://context7.com/awesome-windows11/windows11/llms.txt Registers any executable to appear in the context menu when right-clicking inside a folder background. Remember to replace 'VScode' and the path with your application's details. ```powershell # Replace "VScode" and the path with your own application reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\VScode" /ve /d "&VScode" /f reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\VScode\command" /ve /d "D:\Apps\VSCode\code.exe" /f # Result: right-clicking inside any folder shows "VScode" in the context menu ``` -------------------------------- ### DiskPart Core Commands Source: https://context7.com/awesome-windows11/windows11/llms.txt A collection of essential DiskPart commands for managing physical disks, logical volumes, and partition assignments without third-party utilities. ```cmd # Launch DiskPart diskpart ``` ```cmd # List all physical disks list disk ``` ```cmd # List all logical volumes list volume ``` ```cmd # Select a disk (replace N with disk number from list) select disk N ``` ```cmd # Select a volume (replace N with volume number from list) select volume N ``` ```cmd # Assign a drive letter (e.g., D:) to the selected volume assign letter=D ``` ```cmd # Remove a drive letter from the selected volume remove letter=D ``` ```cmd # Assign a mount point path instead of a letter assign mount=C:\MountPoint ``` ```cmd # Remove a mount point remove mount=C:\MountPoint [all] ``` -------------------------------- ### Enable Classic (Win10) Context Menu Source: https://context7.com/awesome-windows11/windows11/llms.txt Activates the full legacy Windows 10 context menu instead of the modern Windows 11 style. This requires restarting explorer.exe to apply changes. ```powershell # Enable old Win10 context menu reg add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve taskkill /F /IM explorer.exe && start explorer.exe ``` -------------------------------- ### Pin a UWP app to the Desktop Source: https://context7.com/awesome-windows11/windows11/llms.txt Opens the special 'shell:AppsFolder' location, allowing users to drag UWP apps to the desktop to create shortcuts. This can be run in the Run dialog (Win+R) or PowerShell. ```powershell # Run in Run dialog (Win+R) or PowerShell shell:AppsFolder # Then drag the desired app to the Desktop to create a shortcut ``` -------------------------------- ### Add Application to Context Menu in Windows 11 Source: https://github.com/awesome-windows11/windows11/blob/main/README.md Adds a custom application, like VSCode, to the right-click context menu for directories. This involves creating registry keys under 'shell' and 'command'. ```powershell reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\VScode" /ve /d "&VScode" /f reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\VScode\command" /ve /d "D:\Apps\VSCode\code.exe" /f pause ``` -------------------------------- ### Force File Explorer to Open 'This PC' Source: https://context7.com/awesome-windows11/windows11/llms.txt Changes the default File Explorer launch target from Quick Access to the 'This PC' view, displaying drives and system folders. ```powershell reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v LaunchTo /t REG_DWORD /d 1 /f # Value 1 = This PC | Value 2 = Quick Access ``` -------------------------------- ### Configure VSCode as Default Editor for Files Source: https://github.com/awesome-windows11/windows11/blob/main/README.md Adds context menu entries to edit files with VSCode. The 'Icon' line can be removed if you do not want the VSCode icon to appear in the context menu. Ensure the path to Code.exe is correct. ```powershell # "Default Path: E:\VSCode" # "https://medium.com/@fawwazyusran/create-a-portable-ide-with-visual-studio-code-fb0c6bc198ef" reg add "HKEY_CLASSES_ROOT\*\shell\Custom\shell\VsCode" /ve /d "Edit with VSCode" /f reg add "HKEY_CLASSES_ROOT\*\shell\Custom\shell\VsCode" /v Icon /d "D:\Apps\Editors\VSCode\Code.exe,0" /f reg add "HKEY_CLASSES_ROOT\*\shell\Custom\shell\VsCode\command" /ve /d "\"D:\Apps\Editors\VSCode\Code.exe\" \"%1" /f # "This will make it appear when you right click ON a folder" # "The "Icon" line can be removed if you don't want the icon to appear" reg add "HKEY_CLASSES_ROOT\Directory\shell\vscode" /ve /d "Open Folder as VS Code Project" /f reg add "HKEY_CLASSES_ROOT\Directory\shell\vscode" /v Icon /d "D:\Apps\Editors\VSCode\Code.exe,0" /f reg add "HKEY_CLASSES_ROOT\Directory\shell\vscode\command" /ve /d "\"D:\Apps\Editors\VSCode\Code.exe\" \"%1" /f # "This will make it appear when you right click INSIDE a folder" # "The Icon line can be removed if you don't want the icon to appear" reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\vscode" /ve /d "Open Folder in VS Code Project" /f reg add "HKEY_CLASSES_ROOT\Directory\shell\vscode" /v Icon /d "D:\Apps\Editors\VSCode\Code.exe,0" /f reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\vscode\command" /ve /d "\"D:\Apps\Editors\VSCode\Code.exe\" \"%V" /f ``` -------------------------------- ### Restore Microsoft Store Apps Source: https://github.com/awesome-windows11/windows11/blob/main/README.md Restore specific Microsoft Store apps by re-registering their manifest files. This is useful if an app is missing or corrupted. The `wsreset.exe -i` command can also be used to reset the Microsoft Store. ```powershell Get-AppXPackage *WindowsStore* -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”} ``` ```powershell wsreset.exe -i ``` ```powershell Get-AppXPackage *AppInstaller* -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”} ``` ```powershell Get-AppXPackage *WindowsTerminal* -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”} ``` ```powershell Get-AppXPackage *Notepad* -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”} ``` ```powershell Get-AppXPackage *Windows.Client.WebExperience* -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”} ``` -------------------------------- ### Configure Windows Update Policies Source: https://github.com/awesome-windows11/windows11/blob/main/README.md Use these registry commands to manage Windows Update behavior, such as disabling OS upgrades, disabling update access, and configuring automatic update settings. Requires administrative privileges. ```powershell reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v DisableOSUpgrade /t REG_DWORD /d 1 /f # Remove access to use all Windows Update features (disable Scanning, Downloading and Installing) reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v SetDisableUXWUAccess /t REG_DWORD /d 1 /f # Disable AutoUpdate (MAIN FUNCTION!) reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v NoAutoUpdate /t REG_DWORD /d 1 /f # Enable Notification Update (requires clarification!) # https://learn.microsoft.com/en-us/windows/deployment/update/waas-wu-settings reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v AUOptions /t REG_DWORD /d 1 /f # Scheduled Every Day (only AUOptions = 4!) reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v ScheduledInstallDay /t REG_DWORD /d 0 /f # Scheduled Time Hour (0 -> 23) reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v ScheduledInstallTime /t REG_DWORD /d 3 /f # Disable AutoInstall Drivers reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\DriverSearching" /v SearchOrderConfig /t REG_DWORD /d 0 /f pause ``` -------------------------------- ### Configure Microsoft Edge Lite Mode Source: https://github.com/awesome-windows11/windows11/blob/main/README.md Apply these registry settings to configure Microsoft Edge for a 'Lite' experience, disabling synchronization, browser sign-in, and various features like SmartScreen, startup boost, and shopping assistant. This aims to reduce resource usage and data collection. ```powershell reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge" /v SyncDisabled /t REG_DWORD /d 1 /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge" /v BrowserSignin /t REG_DWORD /d 0 /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge" /v NewSmartScreenLibraryEnabled /t REG_DWORD /d 0 /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge" /v SmartScreenEnabled /t REG_DWORD /d 0 /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge" /v SmartScreenPuaEnabled /t REG_DWORD /d 0 /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge" /v StartupBoostEnabled /t REG_DWORD /d 0 /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge" /v BingAdsSuppression /t REG_DWORD /d 1 /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge" /v BackgroundModeEnabled /t REG_DWORD /d 0 /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge" /v ComponentUpdatesEnabled /t REG_DWORD /d 0 /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge" /v EdgeShoppingAssistantEnabled /t REG_DWORD /d 0 /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge" /v ForceGoogleSafeSearch /t REG_DWORD /d 1 /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge" /v MAUEnabled /t REG_DWORD /d 0 /f ``` -------------------------------- ### Verify Windows ISO Integrity Source: https://context7.com/awesome-windows11/windows11/llms.txt Verifies the integrity of a downloaded Windows ISO file against known hash values using PowerShell to ensure it has not been tampered with or corrupted. ```powershell # Verify SHA256 of a downloaded ISO in PowerShell Get-FileHash "C:\Downloads\Win10_21H2_English_x64.iso" -Algorithm SHA256 # Expected for Win10_21H2_English_x64.iso (19044.1288): # SHA256: 7F6538F0EB33C30F0A5CBBF2F39973D4C8DEA0D64F69BD18E406012F17A8234F # Expected for Win10_22H2_English_x64.iso: # SHA256: F41BA37AA02DCB552DC61CEF5C644E55B5D35A8EBDFAC346E70F80321343B506 # For CRC32 verification use a tool like 7-Zip or HashCheck shell extension # Win10_21H2_English_x64.iso CRC32: 9CE7B378 ``` -------------------------------- ### Check TPM Version Source: https://context7.com/awesome-windows11/windows11/llms.txt Opens the TPM management console to verify TPM presence and version (1.2 or 2.0). If no TPM is found, an error message will be displayed. ```powershell # Run in Win+R dialog or PowerShell tpm.msc # Expected output: TPM Management console showing Specification Version (e.g., 2.0) # If no TPM is present, the console will show an error: "Compatible TPM cannot be found" ``` -------------------------------- ### Access Recent Files Folder Source: https://context7.com/awesome-windows11/windows11/llms.txt Navigates to the Windows Recent Items folder, which lists recently accessed documents and files. ```cmd %UserProfile%\AppData\Roaming\Microsoft\Windows\Recent ``` -------------------------------- ### Resize Taskbar: Small Source: https://context7.com/awesome-windows11/windows11/llms.txt Sets the Windows 11 taskbar to a small size by modifying the `TaskbarSi` registry value. Explorer must be restarted for changes to take effect. ```powershell # Small taskbar reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v TaskbarSi /t REG_DWORD /d 0 /f taskkill /F /IM explorer.exe && start explorer.exe ``` -------------------------------- ### Configure Microsoft Edge Lite with Group Policies Source: https://context7.com/awesome-windows11/windows11/llms.txt Applies group policies to disable sync, sign-in, SmartScreen, startup boost, Bing ads, background mode, shopping assistant, and auto-updates for Microsoft Edge. ```powershell reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge" /v SyncDisabled /t REG_DWORD /d 1 /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge" /v BrowserSignin /t REG_DWORD /d 0 /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge" /v SmartScreenEnabled /t REG_DWORD /d 0 /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge" /v StartupBoostEnabled /t REG_DWORD /d 0 /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge" /v BingAdsSuppression /t REG_DWORD /d 1 /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge" /v BackgroundModeEnabled /t REG_DWORD /d 0 /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge" /v EdgeShoppingAssistantEnabled /t REG_DWORD /d 0 /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\EdgeUpdate" /v AutoUpdateCheckPeriodMinutes /t REG_DWORD /d 0 /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\EdgeUpdate" /v UpdateDefault /t REG_DWORD /d 0 /f ``` -------------------------------- ### Switch to Classic (Win10) Explorer Ribbon Source: https://context7.com/awesome-windows11/windows11/llms.txt Restores the Windows 10 legacy ribbon interface in File Explorer. This requires restarting explorer.exe to apply changes. ```powershell # Restore old Win10 Ribbon Explorer reg add "HKCU\Software\Classes\CLSID\{d93ed569-3b3e-4bff-8355-3c44f6a52bb5}\InprocServer32" /f /ve taskkill /F /IM explorer.exe && start explorer.exe ``` -------------------------------- ### Move Taskbar to Top Source: https://context7.com/awesome-windows11/windows11/llms.txt Repositions the taskbar to the top edge of the display using a specific binary registry value for `Settings`. Explorer must be restarted for changes to take effect. ```powershell # Move taskbar to top reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects3" /v Settings /t REG_BINARY /d 30000000feffffff0200000001000000300000002000000000000000c203000080070000e20300006000000001000000 /f ``` -------------------------------- ### Disable Windows Defender via Registry Source: https://github.com/awesome-windows11/windows11/blob/main/README.md Use these registry commands to disable various Windows Defender features. Requires gsudo to run PowerShell as administrator. Note that some settings may be reverted by Windows. ```powershell gsudo -s powershell.exe ``` ```powershell # "Disable Windows Defender" reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender" /v DisableAntiSpyware /t REG_DWORD /d 1 /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender" /v DisableRealtimeMonitoring /t REG_DWORD /d 1 /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender" /v DisableAntiVirus /t REG_DWORD /d 1 /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender" /v DisableSpecialRunningModes /t REG_DWORD /d 1 /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender" /v DisableRoutinelyTakingAction /t REG_DWORD /d 1 /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender" /v ServiceKeepAlive /t REG_DWORD /d 0 /f # Turn off real-time protection (Disable VirusNotification) reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableRealtimeMonitoring /t REG_DWORD /d 1 /f # "Disable RealTimeProtection" reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableBehaviorMonitoring /t REG_DWORD /d 1 /f # "Disable AccessProtection" reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableOnAccessProtection /t REG_DWORD /d 1 /f # "Disable ScanProcess" reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableScanOnRealtimeEnable /t REG_DWORD /d 1 /f # "Disable ScanDownloadFiles" reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableIOAVProtection /t REG_DWORD /d 1 /f # "Disable AppControl (Windows Store)" reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\SmartScreen" /v ConfigureAppInstallControlEnabled /t REG_DWORD /d 0 /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Signature Updates" /v ForceUpdateFromMU /t REG_DWORD /d 0 /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Spynet" /v DisableBlockAtFirstSeen /t REG_DWORD /d 1 /f # "Disable automatic sample submission and Spynet community membership" reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Spynet" /v SubmitSamplesConsent /t REG_DWORD /d 2 /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Spynet" /v SpynetReporting /t REG_DWORD /d 0 /f # "Disable TamperProtection" reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender\Features" /v TamperProtection /t REG_DWORD /d 0 /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender" /v ServiceStartStates /t REG_DWORD /d 1 /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender" /v DisableAntiSpyware /t REG_DWORD /d 1 /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender" /v DisableAntiVirus /t REG_DWORD /d 1 /f pause ``` ```powershell # Windows Defender Advanced Threat Protection sc config WinDefend start=disabled >nul && net stop WinDefend >nul sc config SecurityHealthService start=disabled >nul sc config Sense start=disabled >nul sc config WdNisDrv start=disabled >nul sc config WdNisSvc start=disabled >nul reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "SecurityHealth" /f # Служба которая висит в трее панели задач (значок защитника), отключение убивает UI защитника reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SecurityHealthService" /v Start /t REG_DWORD /d 4 /f # Служба которая сканирует файлы и убивает HDD, само тело службы защитника reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinDefend" /v Start /t REG_DWORD /d 4 /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableRealtimeMonitoring /t REG_DWORD /d 1 /f reg add "HKLM\SOFTWARE\Policies\Microsoft\MRT" /v DontOfferThroughWUA /t REG_DWORD /d 1 /f reg add "HKLM\SOFTWARE\Policies\Microsoft\MRT" /v DontReportInfectionInformation /t REG_DWORD /d 1 /f pause ``` -------------------------------- ### Restore Taskbar to Bottom Source: https://context7.com/awesome-windows11/windows11/llms.txt Resets the taskbar position to the bottom of the screen using the default binary registry value for `Settings`. Explorer must be restarted for changes to take effect. ```powershell # Restore taskbar to bottom (default) reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects3" /v Settings /t REG_BINARY /d 30000000feffffff0200000003000000300000002000000000000000c203000080070000e20300006000000001000000 /f ``` -------------------------------- ### Resize Taskbar: Large Source: https://context7.com/awesome-windows11/windows11/llms.txt Sets the Windows 11 taskbar to a large size by modifying the `TaskbarSi` registry value. Explorer must be restarted for changes to take effect. ```powershell # Large taskbar reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v TaskbarSi /t REG_DWORD /d 2 /f taskkill /F /IM explorer.exe && start explorer.exe ``` -------------------------------- ### Reduce Context Menu Cascade Delay Source: https://context7.com/awesome-windows11/windows11/llms.txt Lowers the delay in milliseconds before a cascading sub-menu appears on hover. The default is 400 ms, and 101 ms provides a near-instant feel. ```powershell reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v MenuShowDelay /t REG_SZ /d 101 /f # Default is 400 ms; 101 ms feels near-instant ``` -------------------------------- ### Adjust Context Menu Delay in Windows 11 Source: https://github.com/awesome-windows11/windows11/blob/main/README.md Modifies the 'MenuShowDelay' registry value to change the delay before context menus appear. A lower value results in a faster appearance. ```powershell reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v MenuShowDelay /t REG_SZ /d 101 /f pause ``` -------------------------------- ### Revert to New (Win11) Context Menu Source: https://context7.com/awesome-windows11/windows11/llms.txt Restores the modern Windows 11 right-click context menu. This requires restarting explorer.exe to apply changes. ```powershell # Revert to new Win11 context menu reg delete "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}" /f taskkill /F /IM explorer.exe && start explorer.exe ``` -------------------------------- ### Configure Edge Update Policies Source: https://github.com/awesome-windows11/windows11/blob/main/README.md Use these registry commands to disable automatic updates and prevent updates to the Chromium-based Edge. Requires administrator privileges. ```batch reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\EdgeUpdate" /v AutoUpdateCheckPeriodMinutes /t REG_DWORD /d 0 /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\EdgeUpdate" /v UpdateDefault /t REG_DWORD /d 0 /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\EdgeUpdate" /v UpdatePolicy /t REG_DWORD /d 0 /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\EdgeUpdate" /v DoNotUpdateToEdgeWithChromium /t REG_DWORD /d 1 /f pause ``` -------------------------------- ### Set Dark Theme System-Wide Source: https://context7.com/awesome-windows11/windows11/llms.txt Applies dark mode to both application windows and the system shell, and enables transparency effects. No restart is required; changes take effect immediately or after restarting File Explorer. ```powershell reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize" /v AppsUseLightTheme /t REG_DWORD /d 0 /f reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize" /v SystemUsesLightTheme /t REG_DWORD /d 0 /f reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize" /v EnableTransparency /t REG_DWORD /d 1 /f # No restart required — takes effect immediately or after Explorer restart ``` -------------------------------- ### Remove specific Microsoft Store apps Source: https://context7.com/awesome-windows11/windows11/llms.txt Uninstalls specified AppX packages for the current user, all users, and removes their provisioned packages to prevent reinstallation for new user accounts. ```powershell # Remove Your Phone / Phone Link Get-AppxPackage *YourPhone* | Remove-AppxPackage Get-AppxPackage -AllUsers *YourPhone* | Remove-AppxPackage Get-AppxProvisionedPackage -Online | Where-Object {$_.PackageName -like "*YourPhone*"} | Remove-AppxProvisionedPackage -Online ``` ```powershell # Remove Windows Terminal Get-AppxPackage *WindowsTerminal* | Remove-AppxPackage Get-AppxPackage -AllUsers *WindowsTerminal* | Remove-AppxPackage Get-AppxProvisionedPackage -Online | Where-Object {$_.PackageName -like "*WindowsTerminal*"} | Remove-AppxProvisionedPackage -Online ``` ```powershell # Remove Notepad (Store version) Get-AppxPackage *Notepad* | Remove-AppxPackage Get-AppxPackage -AllUsers *Notepad* | Remove-AppxPackage ``` -------------------------------- ### Resize Taskbar: Medium Source: https://context7.com/awesome-windows11/windows11/llms.txt Sets the Windows 11 taskbar to the default medium size by modifying the `TaskbarSi` registry value. Explorer must be restarted for changes to take effect. ```powershell # Medium taskbar (default) reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v TaskbarSi /t REG_DWORD /d 1 /f taskkill /F /IM explorer.exe && start explorer.exe ``` -------------------------------- ### Hide Folders from This PC in Windows 11 Source: https://github.com/awesome-windows11/windows11/blob/main/README.md Use these registry commands to hide default folders like Images, Music, and Desktop from the 'This PC' view. Requires restarting File Explorer. ```batch reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{7d83ee9b-2244-4e70-b1f5-5393042af1e4}\PropertyBag" /v ThisPCPolicy /t REG_SZ /d Hide /f reg add "HKEY_LOCAL_MACHINE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{7d83ee9b-2244-4e70-b1f5-5393042af1e4}\PropertyBag" /v ThisPCPolicy /t REG_SZ /d Hide /f echo Images reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{0ddd015d-b06c-45d5-8c4c-f59713854639}\PropertyBag" /v ThisPCPolicy /t REG_SZ /d Hide /f reg add "HKEY_LOCAL_MACHINE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{0ddd015d-b06c-45d5-8c4c-f59713854639}\PropertyBag" /v ThisPCPolicy /t REG_SZ /d Hide /f echo Music reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{a0c69a99-21c8-4671-8703-7934162fcf1d}\PropertyBag" /v ThisPCPolicy /t REG_SZ /d Hide /f reg add "HKEY_LOCAL_MACHINE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{a0c69a99-21c8-4671-8703-7934162fcf1d}\PropertyBag" /v ThisPCPolicy /t REG_SZ /d Hide /f echo Desktop reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}\PropertyBag" /v ThisPCPolicy /t REG_SZ /d Hide /f reg add "HKEY_LOCAL_MACHINE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}\PropertyBag" /v ThisPCPolicy /t REG_SZ /d Hide /f taskkill /F /IM explorer.exe start explorer.exe pause ``` -------------------------------- ### Disable Windows Defender with gsudo Source: https://context7.com/awesome-windows11/windows11/llms.txt Disables Windows Defender's real-time protection, spyware monitoring, tamper protection, and automatic sample submission using group policy registry keys. Requires gsudo for elevated SYSTEM privileges. ```powershell # Step 1: launch NT/SYSTEM shell gsudo -s powershell.exe ``` -------------------------------- ### Admin Script for Cleaning Windows Temp Files Source: https://github.com/awesome-windows11/windows11/blob/main/clean/README.md This JScript/Batch script requires administrator privileges to run. It cleans various temporary directories, including system temp, user temp, and crash dumps. Ensure you understand the directories being targeted before execution. ```batch @set @x=0; new ActiveXObject('Shell.Application').ShellExecute ('cmd.exe','/K ' + '"' + WScript.ScriptFullName + '"' + ' Admin','','runas',1); /* @echo off if "%~1" neq "Admin" ( cscript.exe //nologo //e:jscript "%~f0" ) else ( rd "C:\Temp" /s /q rd "C:\Windows\Temp" /s /q rd "C:\Users\Admin\AppData\Local\Temp" /s /q rd "C:\Users\SCH\AppData\Local\Temp" /s /q rd "%homepath%\Searches" /s /q rd "C:\PerfLogs" /s /q rd "C:\Users\Admin\AppData\Local\CrashDumps" /s /q rd "C:\Users\SCH\AppData\Local\CrashDumps" /s /q ) exit */ ``` -------------------------------- ### Disable Core Windows Defender Components Source: https://context7.com/awesome-windows11/windows11/llms.txt These commands disable core Defender features like anti-spyware, real-time monitoring, and tamper protection. Ensure you understand the security implications before applying. ```powershell reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender" /v DisableAntiSpyware /t REG_DWORD /d 1 /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender" /v DisableRealtimeMonitoring /t REG_DWORD /d 1 /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender" /v DisableAntiVirus /t REG_DWORD /d 1 /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableRealtimeMonitoring /t REG_DWORD /d 1 /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableBehaviorMonitoring /t REG_DWORD /d 1 /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableIOAVProtection /t REG_DWORD /d 1 /f # Disable TamperProtection reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender\Features" /v TamperProtection /t REG_DWORD /d 0 /f # Disable automatic sample submission reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Spynet" /v SubmitSamplesConsent /t REG_DWORD /d 2 /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Spynet" /v SpynetReporting /t REG_DWORD /d 0 /f ``` -------------------------------- ### Disable Online Tips in Windows 11 Settings Source: https://github.com/awesome-windows11/windows11/blob/main/README.md This PowerShell script modifies the registry to disable online tips within the Windows 11 Settings application. It requires administrator privileges to modify HKLM. ```powershell reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v AllowOnlineTips /t REG_DWORD /d 0 /f pause ``` -------------------------------- ### Disable Windows Update via Registry Source: https://github.com/awesome-windows11/windows11/blob/main/README.md This snippet disables system upgrades to new versions, such as 22H2. Requires gsudo to run PowerShell as administrator. ```powershell # Disable system upgrades to new versions (e.g. 22H2) ``` -------------------------------- ### Disable Microsoft Store App Auto-Update and Force-Installed Apps Source: https://context7.com/awesome-windows11/windows11/llms.txt These registry entries prevent the Microsoft Store from silently auto-updating apps, pushing OEM pre-installs, and showing promotional app suggestions. This can affect app freshness and discoverability. ```powershell reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CloudContent" /v DisableWindowsConsumerFeatures /t REG_DWORD /d 1 /f reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v SilentInstalledAppsEnabled /t REG_DWORD /d 0 /f reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v SubscribedContent-338388Enabled /t REG_DWORD /d 0 /f reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v OemPreInstalledAppsEnabled /t REG_DWORD /d 0 /f reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v PreInstalledAppsEnabled /t REG_DWORD /d 0 /f ``` -------------------------------- ### Remove Microsoft Store Apps Source: https://github.com/awesome-windows11/windows11/blob/main/README.md Remove specific Microsoft Store apps and their provisioned packages for all users. This process targets individual applications like YourPhone, AppInstaller, Windows Terminal, Notepad, and Gadgets. ```powershell Get-AppxPackage *YourPhone* | Remove-AppxPackage Get-AppxPackage -allusers *YourPhone* | Remove-AppxPackage Get-AppxProvisionedPackage -online | where-object {$_.packagename -like "*YourPhone*"} | Remove-AppxProvisionedPackage -online ``` ```powershell Get-AppxPackage *AppInstaller* | Remove-AppxPackage Get-AppxPackage -allusers *AppInstaller* | Remove-AppxPackage Get-AppxProvisionedPackage -online | where-object {$_.packagename -like "*AppInstaller*"} | Remove-AppxProvisionedPackage -online ``` ```powershell Get-AppxPackage *WindowsTerminal* | Remove-AppxPackage Get-AppxPackage -allusers *WindowsTerminal* | Remove-AppxPackage Get-AppxProvisionedPackage -online | where-object {$_.packagename -like "*WindowsTerminal*"} | Remove-AppxProvisionedPackage -online ``` ```powershell Get-AppxPackage *Notepad* | Remove-AppxPackage Get-AppxPackage -allusers *Notepad* | Remove-AppxPackage Get-AppxProvisionedPackage -online | where-object {$_.packagename -like "*Notepad*"} | Remove-AppxProvisionedPackage -online ``` ```powershell Get-AppxPackage *Windows.Client.WebExperience* | Remove-AppxPackage Get-AppxPackage -allusers *Windows.Client.WebExperience* | Remove-AppxPackage Get-AppxProvisionedPackage -online | where-object {$_.packagename -like "*Windows.Client.WebExperience*"} | Remove-AppxProvisionedPackage -online ``` -------------------------------- ### Disable Lock Screen Spotlight and Cloud Content Source: https://context7.com/awesome-windows11/windows11/llms.txt Removes rotating Bing wallpapers, third-party suggestions, and Microsoft promotional content from the lock screen by modifying registry policies. ```powershell reg add "HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows\CloudContent" /v DisableWindowsSpotlightFeatures /t REG_DWORD /d 1 /f reg add "HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows\CloudContent" /v DisableWindowsSpotlightOnActionCenter /t REG_DWORD /d 1 /f reg add "HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows\CloudContent" /v DisableWindowsSpotlightOnSettings /t REG_DWORD /d 1 /f reg add "HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows\CloudContent" /v DisableThirdPartySuggestions /t REG_DWORD /d 1 /f reg add "HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows\CloudContent" /v ConfigureWindowsSpotlight /t REG_DWORD /d 2 /f reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v RotatingLockScreenEnabled /t REG_DWORD /d 0 /f reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v RotatingLockScreenOverlayEnabled /t REG_DWORD /d 0 /f ``` -------------------------------- ### Remove ALL Microsoft Store Apps (Excluding Microsoft Store) Source: https://github.com/awesome-windows11/windows11/blob/main/README.md This script removes all Microsoft Store apps except for the Microsoft Store application itself. It targets all users on the system. ```powershell Get-AppxPackage -AllUsers | where-object {$_.name -notlike "*store*"} | Remove-AppxPackage ``` -------------------------------- ### Clean temporary files using a batch script Source: https://context7.com/awesome-windows11/windows11/llms.txt Removes common temporary directories including Windows Temp, user Temp folders, Searches cache, PerfLogs, and CrashDumps. This script uses a JScript/batch hybrid to request administrator privileges. ```cmd @set @x=0; new ActiveXObject('Shell.Application').ShellExecute ('cmd.exe','/K ' + '"' + WScript.ScriptFullName + '"' + ' Admin','','runas',1); /* @echo off if "%~1" neq "Admin" ( cscript.exe //nologo //e:jscript "%~f0" ) else ( rd "C:\Temp" /s /q rd "C:\Windows\Temp" /s /q rd "%homepath%\AppData\Local\Temp" /s /q rd "%homepath%\Searches" /s /q rd "C:\PerfLogs" /s /q ) exit */ ```