Windows 11 Notes (24H2)

Winget is convenient! no more powershell hacks to uninstall appx. find your apps at https://github.com/microsoft/winget-pkgs or winget search.
Photos can be replaced with legacy Windows Photo Viewer (registry file import required).

rem winget uninstall Microsoft.Windows.Photos_8wekyb3d8bbwe
winget uninstall Microsoft.549981C3F5F10_8wekyb3d8bbwe
winget uninstall Microsoft.MicrosoftOfficeHub_8wekyb3d8bbwe
winget uninstall Microsoft.OneDriveSync_8wekyb3d8bbwe
winget uninstall Microsoft.WindowsMaps_8wekyb3d8bbwe
winget uninstall Microsoft.ZuneMusic_8wekyb3d8bbwe
winget uninstall Microsoft.ZuneVideo_8wekyb3d8bbwe
winget uninstall Microsoft.Todos_8wekyb3d8bbwe
winget uninstall Microsoft.Getstarted_8wekyb3d8bbwe
winget uninstall Microsoft.XboxGameOverlay_8wekyb3d8bbwe
winget uninstall Microsoft.Xbox.TCUI_8wekyb3d8bbwe
winget uninstall Microsoft.GamingApp_8wekyb3d8bbwe
winget uninstall Microsoft.XboxGamingOverlay_8wekyb3d8bbwe
winget uninstall Microsoft.XboxSpeechToTextOverlay_8wekyb3d8bbwe
winget uninstall Microsoft.YourPhone_8wekyb3d8bbwe

rem this is Widgets
winget uninstall MicrosoftWindows.Client.WebExperience_cw5n1h2txyewy

rem winget uninstall Microsoft.OneDrive

rem this is for 24H2
dism /online /Remove-Capability /CapabilityName:VBSCRIPT~~~~
dism /online /Remove-Capability /CapabilityName:WMIC~~~~
dism /online /Remove-Capability /CapabilityName:Microsoft.Windows.PowerShell.ISE~~~~0.0.1.0
dism /online /Remove-Capability /CapabilityName:Microsoft.Windows.Notepad.System~~~~0.0.1.0
dism /online /Set-ReservedStorageState /State:disabled

winget uninstall Microsoft.BingSearch_8wekyb3d8bbwe
winget uninstall MicrosoftCorporationII.MicrosoftFamily_8wekyb3d8bbwe
rem winget uninstall Microsoft.Teams

then fetch 7zip:

winget install 7zip.7zip

HEVC Video Extensions (install from store)

start ms-windows-store://pdp/?ProductId=9N4WGH0Z6VHQ

Dolby Vision (install from store)

start ms-windows-store://pdp/?ProductId=9mvmz93n61t9

Dolby Vision Extensions (install from store)

start ms-windows-store://pdp/?ProductId=9pltg1lwphlf

disable hibernation

powercfg /h off

remove onedrive from explorer

reg add "HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}\ShellFolder" /v "FolderValueFlags" /d "00000028" /t REG_DWORD /f
reg add "HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}\ShellFolder" /v "Attributes" /d "f090004d" /t REG_DWORD /f

explorer: IconsOnly / Disable Thumbnails

reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v IconsOnly /d 1 /t REG_DWORD /f

restore Windows 10 explorer

reg add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked" /v {e2bf9676-5f8f-435c-97eb-11607a5bedf7} /f 

optional: disable HVCI?

rem reg add "HKLM\SYSTEM\CurrentControlSet\Control\DeviceGuard\Scenarios\HypervisorEnforcedCodeIntegrity" /v "Enabled" /t REG_DWORD /d 0 /f

optional: disable storage sense

rem reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\StorageSense\Parameters\StoragePolicy" /v 01 /t REG_DWORD /d 0 /f
rem reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\StorageSense\Parameters\StoragePolicy" /v 01 /t REG_DWORD /d 0 /f

optional: disable prefetcher / superfetch

reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" /v "EnableSuperfetch" /t REG_DWORD /d 0 /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" /v "EnablePrefetcher" /t REG_DWORD /d 0 /f

optional: disable wfp

netsh wfp set options netevents=off

optional: disable cdpsvc

sc config CDPSvc start=disabled

optional: firewall rules

netsh advfirewall firewall add rule name="denyudp137" dir=out action=block protocol=udp remoteport=137 enable=yes
netsh advfirewall firewall add rule name="denyudp443" dir=out action=block protocol=udp remoteport=443 enable=yes
netsh advfirewall firewall add rule name="denyudp3389" dir=out action=block protocol=udp remoteport=3389 enable=yes
netsh advfirewall firewall add rule name="denydsmsvc" dir=out action=block service=DsmSvc enable=yes

optional: indexing, manually remove c:\users or more

control.exe srchadmin.dll

optional: skip OOBE?

schtasks /change /tn \Microsoft\Windows\CloudExperienceHost\CreateObjectTask /disable

prepare for WSA

rem dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

https://store.rg-adguard.net/ -> ProductId, 9p3395vx91nr, slow -> MicrosoftCorporationII.WindowsSubsystemForAndroid... powershell: Add-AppxPackage path/to/msixbundle

adb can be found in https://dl.google.com/android/repository/platform-tools-latest-windows.zip

adb connect 127.0.0.1:58526
adb install blahblah.apk
adb shell pm list packages
adb uninstall --user 0 com.amazon.venezia
adb uninstall --user 0 com.amazon.device.messaging
adb shell am start -n com.android.settings/.Settings