Skip to content

Instantly share code, notes, and snippets.

@RezhaBlue
Last active December 31, 2019 06:30
Show Gist options
  • Save RezhaBlue/6aae8131b4eb12f8bbc77b4c56b16cd1 to your computer and use it in GitHub Desktop.
Save RezhaBlue/6aae8131b4eb12f8bbc77b4c56b16cd1 to your computer and use it in GitHub Desktop.

src: https://fdossena.com/?p=w10debotnet/index_1809.frag

MUSIC, TV, ...

Get-AppxPackage -AllUsers *zune* | Remove-AppxPackage
Get-WindowsPackage -Online | Where PackageName -like *MediaPlayer* | Remove-WindowsPackage -Online -NoRestart
# Additionally, you should remove Windows Media Player: go to Start > Settings > Apps > Manage optional features, and remove Windows Media Player

XBOX AND GAME DVR

Get-AppxPackage -AllUsers *xbox* | Remove-AppxPackage
sc delete XblAuthManager
sc delete XblGameSave
sc delete XboxNetApiSvc
sc delete XboxGipSvc
reg delete "HKLM\SYSTEM\CurrentControlSet\Services\xbgm" /f
schtasks /Change /TN "Microsoft\XblGameSave\XblGameSaveTask" /disable
schtasks /Change /TN "Microsoft\XblGameSave\XblGameSaveTaskLogon" /disable
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\GameDVR" /v AllowGameDVR /t REG_DWORD /d 0 /f
# Additionally, go to Start > Settings > Gaming and turn off everything.

STICKY NOTES

Get-AppxPackage -AllUsers *sticky* | Remove-AppxPackage
# Alternatives: Notebot

MAPS

Get-AppxPackage -AllUsers *maps* | Remove-AppxPackage
sc delete MapsBroker
sc delete lfsvc
schtasks /Change /TN "\Microsoft\Windows\Maps\MapsUpdateTask" /disable

ALARMS AND CLOCK

Get-AppxPackage -AllUsers *alarms* | Remove-AppxPackage
Get-AppxPackage -AllUsers *people* | Remove-AppxPackage

MAIL, CALENDAR, ...

Get-AppxPackage -AllUsers *comm* | Remove-AppxPackage
Get-AppxPackage -AllUsers *mess* | Remove-AppxPackage
# Alternatives: Thunderbird

ONENOTE

Get-AppxPackage -AllUsers *onenote* | Remove-AppxPackage

PHOTOS

Get-AppxPackage -AllUsers *photo* | Remove-AppxPackage
# Alternatives: JPEGView, or the old Windows Photo Viewer

CAMERA

Get-AppxPackage -AllUsers *camera* | Remove-AppxPackage

WEATHER, NEWS, ...

Get-AppxPackage -AllUsers *bing* | Remove-AppxPackage

CALCULATOR

Get-AppxPackage -AllUsers *calc* | Remove-AppxPackage
# Alternatives: SpeedCrunch

SOUND RECORDER

Get-AppxPackage -AllUsers *soundrec* | Remove-AppxPackage
# Alternatives: Audacity

PAINT 3D AND VR FEATURES

Get-AppxPackage -AllUsers *holo* | Remove-AppxPackage
Get-AppxPackage -AllUsers *3db* | Remove-AppxPackage
Get-AppxPackage -AllUsers *3dv* | Remove-AppxPackage
Get-AppxPackage -AllUsers *paint* | Remove-AppxPackage
Get-AppxPackage -AllUsers *mixed* | Remove-AppxPackage
Get-AppxPackage -AllUsers *print3d* | Remove-AppxPackage
for /f "tokens=1* delims=" %I in (' reg query "HKEY_CLASSES_ROOT\SystemFileAssociations" /s /k /f "3D Edit" ^| find /i "3D Edit" ') do (reg delete "%I" /f )
for /f "tokens=1* delims=" %I in (' reg query "HKEY_CLASSES_ROOT\SystemFileAssociations" /s /k /f "3D Print" ^| find /i "3D Print" ') do (reg delete "%I" /f )

MICROSOFT EDGE

Right click the Edge icon on your taskbar and unpin it. (Important: don't skip this step, or the icon will be permanently stuck there)

Additionally, you should remove IE11: Go to Start > Settings > Apps > Manage optional features, and remove Internet Explorer 11

Get-WindowsPackage -Online | Where PackageName -like *InternetExplorer* | Remove-WindowsPackage -Online -NoRestart

MICROSOFT QUICK ASSIST

Get-WindowsPackage -Online | Where PackageName -like *QuickAssist* | Remove-WindowsPackage -Online -NoRestart

YOUR PHONE

Get-AppxPackage -AllUsers *phone* | Remove-AppxPackage

SNIP & SKETCH

Get-AppxPackage -AllUsers *sketch* | Remove-AppxPackage

HELLO FACE

Get-WindowsPackage -Online | Where PackageName -like *Hello-Face* | Remove-WindowsPackage -Online -NoRestart
schtasks /Change /TN "\Microsoft\Windows\HelloFace\FODCleanupTask" /Disable

REBOOT!

Reboot the system and you're now free of UWP garbage.

DISABLING CORTANA

Warning: Do not attempt to remove the Cortana package using install_wim_tweak or the PowerShell, as it will break Windows Search and you will have to reinstall Windows!

reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v AllowCortana /t REG_DWORD /d 0 /f
reg add "HKLM\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\FirewallRules" /v "{2765E0F4-2918-4A46-B9C9-43CDD8FCBA2B}" /t REG_SZ /d "BlockCortana|Action=Block|Active=TRUE|Dir=Out|App=C:\windows\systemapps\microsoft.windows.cortana_cw5n1h2txyewy\searchui.exe|Name=Search and Cortana application|AppPkgId=S-1-15-2-1861897761-1695161497-2927542615-642690995-327840285-2659745135-2630312742|" /f
# Reboot again and Cortana is gone. The icon is still there, but it will open the regular search instead.
# Note: Windows may say that Indexing is not running, but it will start running again after a few minutes.

TURN OFF WINDOWS ERROR REPORTING

reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting" /v Disabled /t REG_DWORD /d 1 /f
reg add "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting" /v Disabled /t REG_DWORD /d 1 /f

NO MORE FORCED UPDATES

# This will notify when updates are available, and you decide when to install them
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v NoAutoUpdate /t REG_DWORD /d 0 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v AUOptions /t REG_DWORD /d 2 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v ScheduledInstallDay /t REG_DWORD /d 0 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v ScheduledInstallTime /t REG_DWORD /d 3 /f

NO LICENSE CHECKING

reg add "HKLM\Software\Policies\Microsoft\Windows NT\CurrentVersion\Software Protection Platform" /v NoGenTicket /t REG_DWORD /d 1 /f

DISABLE SYNC

# It doesn't really affect you if you're not using a Microsoft Account, but it will at least disable the Sync settings from the Settings app
reg add "HKLM\Software\Policies\Microsoft\Windows\SettingSync" /v DisableSettingSync /t REG_DWORD /d 2 /f
reg add "HKLM\Software\Policies\Microsoft\Windows\SettingSync" /v DisableSettingSyncUserOverride /t REG_DWORD /d 1 /f

NO WINDOWS TIPS

reg add "HKLM\Software\Policies\Microsoft\Windows\CloudContent" /v DisableSoftLanding /t REG_DWORD /d 1 /f
reg add "HKLM\Software\Policies\Microsoft\Windows\CloudContent" /v DisableWindowsSpotlightFeatures /t REG_DWORD /d 1 /f
reg add "HKLM\Software\Policies\Microsoft\Windows\CloudContent" /v DisableWindowsConsumerFeatures /t REG_DWORD /d 1 /f
reg add "HKLM\Software\Policies\Microsoft\Windows\DataCollection" /v DoNotShowFeedbackNotifications /t REG_DWORD /d 1 /f
reg add "HKLM\Software\Policies\Microsoft\WindowsInkWorkspace" /v AllowSuggestedAppsInWindowsInkWorkspace /t REG_DWORD /d 0 /f

REMOVING ONEDRIVE

# If you don't use OneDrive (and you shouldn't), you can remove it from your system with these commands, entered in the command prompt:
taskkill /F /IM onedrive.exe
# If you're on 32 bit Windows:
"%SYSTEMROOT%\System32\OneDriveSetup.exe" /uninstall
# If you're on 64 bit Windows:
"%SYSTEMROOT%\SysWOW64\OneDriveSetup.exe" /uninstall
# In the command prompt type:
rd "%USERPROFILE%\OneDrive" /Q /S
rd "C:\OneDriveTemp" /Q /S
rd "%LOCALAPPDATA%\Microsoft\OneDrive" /Q /S
rd "%PROGRAMDATA%\Microsoft OneDrive" /Q /S
reg delete "HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f
reg delete "HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f
del /Q /F "%localappdata%\Microsoft\OneDrive\OneDriveStandaloneUpdater.exe"

SCHEDULED TASKS

# Windows 10 has a huge amount of scheduled tasks that may report some data. Type these commands in the command prompt to remove them:
schtasks /Change /TN "Microsoft\Windows\AppID\SmartScreenSpecific" /disable
schtasks /Change /TN "Microsoft\Windows\Application Experience\AitAgent" /disable
schtasks /Change /TN "Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" /disable
schtasks /Change /TN "Microsoft\Windows\Application Experience\ProgramDataUpdater" /disable
schtasks /Change /TN "Microsoft\Windows\Application Experience\StartupAppTask" /disable
schtasks /Change /TN "Microsoft\Windows\Autochk\Proxy" /disable
schtasks /Change /TN "Microsoft\Windows\CloudExperienceHost\CreateObjectTask" /disable
schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\BthSQM" /disable
schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\Consolidator" /disable
schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\KernelCeipTask" /disable
schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\Uploader" /disable
schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\UsbCeip" /disable
schtasks /Change /TN "Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticDataCollector" /disable
schtasks /Change /TN "Microsoft\Windows\DiskFootprint\Diagnostics" /disable
schtasks /Change /TN "Microsoft\Windows\FileHistory\File History (maintenance mode)" /disable
schtasks /Change /TN "Microsoft\Windows\Maintenance\WinSAT" /disable
schtasks /Change /TN "Microsoft\Windows\PI\Sqm-Tasks" /disable
schtasks /Change /TN "Microsoft\Windows\Power Efficiency Diagnostics\AnalyzeSystem" /disable
schtasks /Change /TN "Microsoft\Windows\Shell\FamilySafetyMonitor" /disable
schtasks /Change /TN "Microsoft\Windows\Shell\FamilySafetyRefresh" /disable
schtasks /Change /TN "Microsoft\Windows\Shell\FamilySafetyUpload" /disable
schtasks /Change /TN "Microsoft\Windows\Windows Error Reporting\QueueReporting" /disable
schtasks /Change /TN "Microsoft\Windows\WindowsUpdate\Automatic App Update" /disable
schtasks /Change /TN "Microsoft\Windows\License Manager\TempSignedLicenseExchange" /disable
schtasks /Change /TN "Microsoft\Windows\Clip\License Validation" /disable
schtasks /Change /TN "\Microsoft\Windows\ApplicationData\DsSvcCleanup" /disable
schtasks /Change /TN "\Microsoft\Windows\Power Efficiency Diagnostics\AnalyzeSystem" /disable
schtasks /Change /TN "\Microsoft\Windows\PushToInstall\LoginCheck" /disable
schtasks /Change /TN "\Microsoft\Windows\PushToInstall\Registration" /disable
schtasks /Change /TN "\Microsoft\Windows\Shell\FamilySafetyMonitor" /disable
schtasks /Change /TN "\Microsoft\Windows\Shell\FamilySafetyMonitorToastTask" /disable
schtasks /Change /TN "\Microsoft\Windows\Shell\FamilySafetyRefreshTask" /disable
schtasks /Change /TN "\Microsoft\Windows\Subscription\EnableLicenseAcquisition" /disable
schtasks /Change /TN "\Microsoft\Windows\Subscription\LicenseAcquisition" /disable
del /F /Q "C:\Windows\System32\Tasks\Microsoft\Windows\SettingSync\*"

LAST TOUCHES

# We must disable Windows Spotlight, and other "Suggestions".
# Go to Start > Settings > Personalization:
# Under Lock screen and set the background to Picture
# Under Start set Show suggestions occasionally in Start to off (They're literally ads)
# Go back to Settings and go to System > Notifications and actions
# Set Get tips, tricks, and suggestions as you use Windows to off
# Set Show me the Windows welcome... to off
# Go back to Settings and go to System > Multitasking
# Set Show suggestions occasionally in your timeline to off
# Go back to Settings and go to Privacy
# Under General, turn off everything
# Under Activity history, turn off everything
# Under Speech, turn off everything
# Under Inking, turn off everything
# Under App diagnostics, set Let apps access diagnostic information to off
# Go back to Settings and go to Search
# Under Permissions & History, turn off everything
# On the taskbar
# Right click the people icon and uncheck "Show People button"
# Later on, you might get a "Suggestions" notification. Right click it and turn it off.

OTHER GOTCHAS

src = https://www.reddit.com/r/Windows10/comments/a4lpg0/windows_10_still_collecting_activity_history/

reg add "HKLM\Software\Policies\Microsoft\Windows\System" /v PublishUserActivities /t REG_DWORD /d 0 /f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment