Show all tray icons:
--------------------
- https://superuser.com/questions/1680130/windows-11-taskbar-corner-overflow-show-all-tray-icons
- cmd as admin:
  C:\> explorer shell:::{05d7b0f4-2121-4eff-bf6b-ed3f69b894d9}
- If the checkbox "Always show all icons" is greyed out, perform regedit: 
  [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer]
  Set EnableAutoTray to 1

Bring back explorer's classic right-click context menu:
-------------------------------------------------------
- https://pureinfotech.com/bring-back-classic-context-menu-windows-11/
- regedit > HKEY_CURRENT_USER\SOFTWARE\CLASSES\CLSID
  Create folder "{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}"
  Create subfolder "InprocServer32"
  Create new "(Default)" key with empty/blank value

Use Outlook without email account:
----------------------------------
C:\> outlook.exe /PIM NoEmail
Control Panel > Mail > Show Profiles > NoEmail

High CPU OfficeClickToRun.exe:
------------------------------
- https://monkeymanifesto.com/microsoft-click-to-run-high-cpu-usage-5546/
- services.msc > microsoft office click-to-run service > disable

Disable the rubbish alt-tab task switcher on Edge browser tabs:
---------------------------------------------------------------
- https://www.howtogeek.com/696775/how-to-stop-alttab-from-showing-edge-browser-tabs/
- Start menu > Setting > System > Multitasking
  Timeline > Alt + Tab > Open windows only

Disable the rubbish "SkyDrive Pro" from windows explorer right click context menu:
----------------------------------------------------------------------------------
- https://www.howtogeek.com/136176/how-to-remove-skydrive-pro-from-your-right-click-context-menu/
- regedit > HKEY_CLASSES_ROOT\AllFilesystemObjects\shell
  Delete the key named SPFS.ContextMenu

Disable the rubbish "Share with Skype" from windows explorer right click context menu:
--------------------------------------------------------------------------------------
- https://www.technipages.com/disable-share-with-skype-from-context-menu
- cmd as admin:
  C:\> REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked" /v {776DBC8D-7347-478C-8D71-791E12EF49D8} /d Skype
- Go to task manager, and then kill and restart explorer.exe

Disable the rubbish apps that will auto-start during Windows startup:
---------------------------------------------------------------------
- https://www.softwaretestinghelp.com/disable-yourphone-exe-in-windows-10/
- Start menu > Setting > System > Privacy > Background apps:
  Disable all (we don't need them to be auto-started in the background everytime Windows starts, we only need to launch app on demand only)
- Powershell as admin:
  PS C:\> Get-AppxPackage Microsoft.YourPhone -AllUsers | Remove-AppxPackage

Disable the rubbish telemetry "CompatTelRunner.exe" that will hog the CPUs everyday:
--------------------------------------------------------------------------------------
- https://www.softwaretestinghelp.com/what-is-compattelrunner-exe/
- Task scheduler > Task Scheduler Library > Microsoft > Windows > Application Experience > Microsoft Compatibility Appraiser > disable
- regedit: HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection\Default and set value to 0

Disable malicious mssense.exe from hogging the CPU and disk IO activities:
--------------------------------------------------------------------------
- https://woshub.com/disable-windows-defender-antivirus/
- Boot windows into safe mode: 
  C:\> msconfig
- regedit: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Sense and set Start value to 0x4

Bypass CPU and TPM check during upgrade from win10 to win11:
------------------------------------------------------------
- https://techcommunity.microsoft.com/t5/windows-11/how-to-fix-this-pc-doesn-t-meet-the-minimum-requirements-for/m-p/4047590
- regedit: HKEY_LOCAL_MACHINE\SYSTEM\Setup\MoSetup and set AllowUpgradesWithUnsupportedTPMOrCPU value to 1

Bypass rubbish network enforcement during win11 setup:
------------------------------------------------------
- https://www.smartprix.com/bytes/how-to-bypass-the-internet-requirement-during-windows-11-setup/
- shift-F10: C:\> oobe\BypassNRO

Disable rubbish grouping in the windows explorer:
-------------------------------------------------
- https://answers.microsoft.com/en-us/windows/forum/all/completely-disable-file-grouping-always-everywhere/ac31a227-f585-4b0a-ab2e-a557828eaec5
- https://www.sordum.org/9416/powerrun-v1-7-run-with-highest-privileges > https://www.bytesin.com/software/PowerRun > PowerRun_x64.exe
- regedit with powerrun: HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\FolderTypes\{885a186e-a440-4ada-812b-db871b942259}\TopViews\{00000000-0000-0000-0000-000000000000} and change the GroupBy value data from "System.DateModified" to ""
- regedit with normal run: Delete HKCU\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags
- regedit with normal run: Delete HKCU\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\Shell\BagMRU
- reboot

Disable the rubbish onedrive from showing in the recent files:
--------------------------------------------------------------
- Options > Save > Save to Computer by default
- Accounts > Manage Settings > uncheck "Turn on optional connected experiences"

Remove the rubbish onedrive from windows explorer context menu:
---------------------------------------------------------------
- https://www.tenforums.com/tutorials/127208-add-remove-move-onedrive-context-menu-windows-10-a.html
- regedit: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked and add "{CB3D0F55-BC2C-4C1A-85ED-23ED75B5106B}"=""

Prevent laptop from waking up from sleep when the lid is opened:
----------------------------------------------------------------
- Control Panel > Power Options > Change Plan Settings > Change advanced power settings
  Sleep > Allow wake timers > set all to disable
- C:\> powercfg -lastwake
  C:\> powercfg -requests
  C:\> powercfg -sleepstudy
  C:\> powercfg -systemsleepdiagnostics
  C:\> powercfg -systempowerreport 
  C:\> powercfg -waketimers
  C:\> powercfg -devicequery wake_armed
  (and then disable them on device manager > properties > power management > uncheck "Allow this device to wake the computer")
- Check Device Manager > System devices > ACPI Lid > Events > View All Events
https://www.howtogeek.com/122954/how-to-prevent-your-computer-from-waking-up-accidentally/

  C:\> powercfg -requests
  PERFBOOST:
  [DRIVER] Legacy Kernel Caller
  Power Manager

  C:\> powercfg -requestsoverride DRIVER "Legacy Kernel Caller" SYSTEM


  SYSTEM:
  [DRIVER] Realtek High Definition Audio(SST) (INTELAUDIO\FUNC_01&VEN_10EC&DEV_0257&SUBSYS_17AA3874&REV_1000\5&5eba6de&0&0001)
  An audio stream is currently in use.

  C:\> powercfg -requestsoverride DRIVER "Realtek High Definition Audio(SST) (INTELAUDIO\FUNC_01&VEN_10EC&DEV_0257&SUBSYS_17AA3874&REV_1000\5&5eba6de&0&0001)" SYSTEM


- Control Panel > All Control Panel Items > Security and Maintenance > make sure "Allow scheduled maintenance to wake up" is uncheck 

Prevent laptop from sleeping for remote desktop: 
- https://answers.microsoft.com/en-us/windows/forum/all/windows-10-keeps-going-into-sleep-after-1-minute/787e8cea-32ce-4ea0-a281-13c32a75352d
- HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\7bc4a2f9-d8fc-4469-b07b-33eb785aaca0 (change attributes from 1 to 2 and then go to power options > advanced power settings > sleep > lengthen system unattended sleep timeout)
- powercfg.exe /hibernate off
- powercfg.exe /a

Delete the rubbish recovery partition temporarily on Windows 2022 server in order to resize drive C:
----------------------------------------------------------------------------------------------------
- https://www.reddit.com/r/vmware/comments/xvig5q/windows_server_2022_recovery_partition_how_did/
  C:\> diskpart
  DISKPART> list disk
  DISKPART> select disk 0
  DISKPART> list partition
  DISKPART> select partition 3
  DISKPART> delete partition override
- Extend the partition and then recreate back the rubbish recovery partition using DVD mount on d: drive:
  C:\> mkdir c:\temp
       mkdir c:\stupidbackup
       dism /mount-wim /wimfile:"d:\sources\install.wim" /index:1 /mountdir:"c:\temp" /readonly
       copy C:\temp\windows\system32\Recovery\winre.wim C:\windows\system32\Recovery\
       copy C:\temp\windows\system32\Recovery\winre.wim C:\stupidbackup\
       DISM /unmount-Wim /MountDir:"c:\temp" /discard
  C:\> diskpart
  DISKPART> list disk
  DISKPART> select disk 0
  DISKPART> create partition primary
  DISKPART> format quick fs=ntfs label="winRE"
  DISKPART> format quick fs=ntfs
  DISKPART> set id=de94bba4-06d1-4d40-a16a-bfd50179d6ac
  DISKPART> exit
  C:\> reagentc /enable
- Reboot and test: 
  C:\> reagentc /boottore
  C:\> shutdown /r /o /t 00