Skip to content

Instantly share code, notes, and snippets.

@jburnett
Created November 8, 2023 18:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jburnett/41ff2de137bc96049a1a710a3da5d6ff to your computer and use it in GitHub Desktop.
Save jburnett/41ff2de137bc96049a1a710a3da5d6ff to your computer and use it in GitHub Desktop.
Remove unwanted default apps in Windows 10
[CmdletBinding()] param ()
$names = @(
"3D Viewer","Game Bar","Solitaire & Casual Games"
,"Microsoft 365 (Office)", "Microsoft People", "Microsoft Photos", "Microsoft Sticky Notes", "Microsoft Tips"
,"Mail and Calendar", "Mixed Reality Portal", "Movies & TV", "MSN Weather"
,"Paint 3D", "Phone Link", "Skype", "Snip & Sketch"
,"Windows Camera","Windows Clock","Windows Maps", "Windows Media Player", "Windows Voice Recorder"
,"Xbox Console Companion","Xbox Identity Provider","Xbox Game Bar Plugin","Xbox Game Speech Window","Xbox TCUI"
)
foreach ($name in $names) {
Write-Verbose "Removing ""$name"" with winget"
start-process -FilePath "winget" -ArgumentList "uninstall --purge ""$name"" --verbose --verbose-logs" -NoNewWindow -Wait
}
$optionalFeatures = @(
"WindowsMediaPlayer","MediaPlayback"
,"WCF-Services45","WCF-TCP-PortSharing45"
)
foreach ($feat in $optionalFeatures) {
Write-Verbose "Disabling Optional Feature ""$feat"""
Disable-WindowsOptionalFeature -FeatureName $feat -Online
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment