This PR gets Master up to date with the common scripts approach. These are not done but this seems far enough along to proceed. We'll now move forward with refining these common scripts along with the dev scenario scripts that reference them.
67 lines
1.9 KiB
PowerShell
67 lines
1.9 KiB
PowerShell
#--- Uninstall unecessary applications that come with Windows out of the box ---
|
|
Write-Host "Uninstall unecessary applications that come with Windows out of the box" -ForegroundColor "Yellow"
|
|
|
|
#Referenced to build script
|
|
# https://docs.microsoft.com/en-us/windows/application-management/remove-provisioned-apps-during-update
|
|
# https://github.com/jayharris/dotfiles-windows/blob/master/windows.ps1#L157
|
|
# https://gist.github.com/jessfraz/7c319b046daa101a4aaef937a20ff41f
|
|
# https://gist.github.com/alirobe/7f3b34ad89a159e6daa1
|
|
# https://github.com/W4RH4WK/Debloat-Windows-10/blob/master/scripts/remove-default-apps.ps1
|
|
|
|
function removeApp {
|
|
Param ([string]$appName)
|
|
Write-Output "Trying to remove $appName"
|
|
Get-AppxPackage $appName -AllUsers | Remove-AppxPackage
|
|
Get-AppXProvisionedPackage -Online | Where DisplayNam -like $appName | Remove-AppxProvisionedPackage -Online
|
|
}
|
|
|
|
$applicationList = @(
|
|
"Microsoft.BingFinance"
|
|
"Microsoft.3DBuilder"
|
|
"Microsoft.BingFinance"
|
|
"Microsoft.BingNews"
|
|
"Microsoft.BingSports"
|
|
"Microsoft.BingWeather"
|
|
"Microsoft.CommsPhone"
|
|
"Microsoft.Getstarted"
|
|
"Microsoft.WindowsMaps"
|
|
"*MarchofEmpires*"
|
|
"Microsoft.GetHelp"
|
|
"Microsoft.Messaging"
|
|
"*Minecraft*"
|
|
"Microsoft.MicrosoftOfficeHub"
|
|
"Microsoft.OneConnect"
|
|
"Microsoft.WindowsPhone"
|
|
"Microsoft.SkypeApp"
|
|
"Microsoft.WindowsSoundRecorder"
|
|
"*Solitaire*"
|
|
"Microsoft.MicrosoftStickyNotes"
|
|
"Microsoft.Office.Sway"
|
|
"Microsoft.XboxApp"
|
|
"Microsoft.XboxIdentityProvider"
|
|
"Microsoft.ZuneMusic"
|
|
"Microsoft.ZuneVideo"
|
|
"Microsoft.NetworkSpeedTest"
|
|
"Microsoft.FreshPaint"
|
|
"Microsoft.Print3D"
|
|
|
|
#Non-Microsoft
|
|
"*Autodesk*"
|
|
"*BubbleWitch*"
|
|
"king.com.CandyCrush*"
|
|
"*Dell*"
|
|
"*Dropbox*"
|
|
"*Facebook*"
|
|
"*Keeper*"
|
|
"*Netflix*"
|
|
"*Twitter*"
|
|
"*Plex*"
|
|
"*.Duolingo-LearnLanguagesforFree"
|
|
"*.EclipseManager"
|
|
"ActiproSoftwareLLC.562882FEEB491" # Code Writer
|
|
"*.AdobePhotoshopExpress"
|
|
);
|
|
|
|
foreach ($app in $applicationList) {
|
|
removeApp $app
|
|
} |