Created
November 8, 2023 18:12
-
-
Save jburnett/41ff2de137bc96049a1a710a3da5d6ff to your computer and use it in GitHub Desktop.
Remove unwanted default apps in Windows 10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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