Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
TheWatcherNode committed Jun 5, 2020
2 parents c864ec5 + 7ca5d83 commit a79d900
Show file tree
Hide file tree
Showing 2 changed files with 145 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Get-AppsfromBlobStorage.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ param(

[String] $InstallDir = "$env:HOMEDRIVE\_build",
[String] $BoxDrive = 'https://blogaboutcloud.blob.core.windows.net/intuneblogaboutcloud/Tools/Box-x64.msi',
[String] $wincleaner = 'https://blogaboutcloud.blob.core.windows.net/intuneblogaboutcloud/Tools/Windows_Clean.ps1')
[String] $wincleaner = 'https://blogaboutcloud.blob.core.windows.net/intuneblogaboutcloud/Tools/Get-Windows_Debloater.ps1')


Write-host 'Version information - You are running script version 1.2' -ForegroundColor White -BackgroundColor DarkGray
Expand All @@ -48,7 +48,7 @@ param(
# Download the files required. #
New-Item -ItemType Directory -Path "$env:HOMEDRIVE\_build"
$wc = New-Object -TypeName Net.webclient
$wc.DownloadFile($wincleaner, ('{0}\Windows_Clean.ps1' -f $InstallDir))
$wc.DownloadFile($wincleaner, ('{0}\Get-Windows_Debloater.ps1' -f $InstallDir))
$wc.DownloadFile($BoxDrive, ('{0}\Box-x64.msi' -f $InstallDir))
Start-Sleep -Seconds 15

Expand All @@ -65,7 +65,7 @@ Function Get-InstallApps {
#region Additional Scripts
Function Get-AddScripts {
# Script 1
& C:\_build\Windows_Clean.ps1 -ClearStart
& C:\_build\Get-Windows_Debloater.ps1
Start-Sleep 20
}

Expand Down Expand Up @@ -95,10 +95,10 @@ Function Get-RegMod {

#endregion

Start-Transcript $env:userprofile\desktop\log.txt
#Start-Transcript $env:userprofile\desktop\log.txt

Get-InstallApps
#Get-InstallApps
Get-AddScripts
Get-CleanUp
Get-RegMod
Stop-Transcript
#Get-RegMod
#Stop-Transcript
138 changes: 138 additions & 0 deletions Get-Windows_Debloater.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
# Description:
# This script removes unwanted Apps that come with Windows. If you do not want
# to remove certain Apps comment out the corresponding lines below.

Write-Output "Uninstalling default apps"
$apps = @(
# default Windows 10 apps
"Microsoft.3DBuilder"
"Microsoft.Appconnector"
"Microsoft.BingFinance"
"Microsoft.BingNews"
"Microsoft.BingSports"
"Microsoft.BingTranslator"
"Microsoft.BingWeather"
#"Microsoft.FreshPaint"
"Microsoft.GamingServices"
"Microsoft.Microsoft3DViewer"
"Microsoft.MicrosoftOfficeHub"
"Microsoft.MicrosoftPowerBIForWindows"
"Microsoft.MicrosoftSolitaireCollection"
#"Microsoft.MicrosoftStickyNotes"
"Microsoft.MinecraftUWP"
"Microsoft.NetworkSpeedTest"
"Microsoft.Office.OneNote"
#"Microsoft.OneConnect"
"Microsoft.People"
"Microsoft.Print3D"
"Microsoft.SkypeApp"
"Microsoft.Wallet"
#"Microsoft.Windows.Photos"
"Microsoft.WindowsAlarms"
#"Microsoft.WindowsCalculator"
"Microsoft.WindowsCamera"
"microsoft.windowscommunicationsapps"
"Microsoft.WindowsMaps"
"Microsoft.WindowsPhone"
"Microsoft.WindowsSoundRecorder"
#"Microsoft.WindowsStore" # can't be re-installed
"Microsoft.Xbox.TCUI"
"Microsoft.XboxApp"
"Microsoft.XboxGameOverlay"
"Microsoft.XboxGamingOverlay"
"Microsoft.XboxSpeechToTextOverlay"
"Microsoft.YourPhone"
"Microsoft.ZuneMusic"
"Microsoft.ZuneVideo"

# Threshold 2 apps
"Microsoft.CommsPhone"
"Microsoft.ConnectivityStore"
"Microsoft.GetHelp"
"Microsoft.Getstarted"
"Microsoft.Messaging"
"Microsoft.Office.Sway"
"Microsoft.OneConnect"
"Microsoft.WindowsFeedbackHub"

# Creators Update apps
"Microsoft.Microsoft3DViewer"
#"Microsoft.MSPaint"

#Redstone apps
"Microsoft.BingFoodAndDrink"
"Microsoft.BingHealthAndFitness"
"Microsoft.BingTravel"
"Microsoft.WindowsReadingList"

# Redstone 5 apps
"Microsoft.MixedReality.Portal"
"Microsoft.ScreenSketch"
"Microsoft.XboxGamingOverlay"
"Microsoft.YourPhone"

# non-Microsoft
"2FE3CB00.PicsArt-PhotoStudio"
"46928bounde.EclipseManager"
"4DF9E0F8.Netflix"
"613EBCEA.PolarrPhotoEditorAcademicEdition"
"6Wunderkinder.Wunderlist"
"7EE7776C.LinkedInforWindows"
"89006A2E.AutodeskSketchBook"
"9E2F88E3.Twitter"
"A278AB0D.DisneyMagicKingdoms"
"A278AB0D.MarchofEmpires"
"ActiproSoftwareLLC.562882FEEB491" # next one is for the Code Writer from Actipro Software LLC
"CAF9E577.Plex"
"ClearChannelRadioDigital.iHeartRadio"
"D52A8D61.FarmVille2CountryEscape"
"D5EA27B7.Duolingo-LearnLanguagesforFree"
"DB6EA5DB.CyberLinkMediaSuiteEssentials"
"DolbyLaboratories.DolbyAccess"
"DolbyLaboratories.DolbyAccess"
"Drawboard.DrawboardPDF"
"Facebook.Facebook"
"Fitbit.FitbitCoach"
"Flipboard.Flipboard"
"GAMELOFTSA.Asphalt8Airborne"
"KeeperSecurityInc.Keeper"
"Microsoft.BingNews"
"NORDCURRENT.COOKINGFEVER"
"PandoraMediaInc.29680B314EFC2"
"Playtika.CaesarsSlotsFreeCasino"
"ShazamEntertainmentLtd.Shazam"
"SlingTVLLC.SlingTV"
"SpotifyAB.SpotifyMusic"
#"TheNewYorkTimes.NYTCrossword"
"ThumbmunkeysLtd.PhototasticCollage"
"TuneIn.TuneInRadio"
"WinZipComputing.WinZipUniversal"
"XINGAG.XING"
"flaregamesGmbH.RoyalRevolt2"
"king.com.*"
"king.com.BubbleWitch3Saga"
"king.com.CandyCrushSaga"
"king.com.CandyCrushSodaSaga"

# apps which cannot be removed using Remove-AppxPackage
#"Microsoft.BioEnrollment"
#"Microsoft.MicrosoftEdge"
#"Microsoft.Windows.Cortana"
#"Microsoft.WindowsFeedback"
#"Microsoft.XboxGameCallableUI"
#"Microsoft.XboxIdentityProvider"
#"Windows.ContactSupport"

# apps which other apps depend on
"Microsoft.Advertising.Xaml"
)

foreach ($app in $apps) {
Write-Output "Trying to remove $app"

Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage -AllUsers

Get-AppXProvisionedPackage -Online |
Where-Object DisplayName -EQ $app |
Remove-AppxProvisionedPackage -Online
}

0 comments on commit a79d900

Please sign in to comment.