Browse Source

Removed blacklist code

I removed the blacklist because it could have unintended consequences.
Richard Newton 6 years ago
parent
commit
370475d177
1 changed files with 0 additions and 65 deletions
  1. 0 65
      Windows10SysPrepDebloater.ps1

+ 0 - 65
Windows10SysPrepDebloater.ps1

@@ -7,71 +7,6 @@ param (
     [switch]$Debloat, [switch]$SysPrep, [switch]$StopEdgePDF, [Switch]$Privacy
 )
 $ErrorActionPreference = 'SilentlyContinue'
-Function Remove-AppxPackagesForSysprep {
-    $AppXApps = @(
-
-        #Unnecessary Windows 10 AppX Apps
-        "*Microsoft.BingNews*"
-        "*Microsoft.GetHelp*"
-        "*Microsoft.Getstarted*"
-        "*Microsoft.Messaging*"
-        "*Microsoft.Microsoft3DViewer*"
-        "*Microsoft.MicrosoftOfficeHub*"
-        "*Microsoft.MicrosoftSolitaireCollection*"
-        "*Microsoft.NetworkSpeedTest*"
-        "*Microsoft.Office.OneNote*"
-        "*Microsoft.Office.Sway*"
-        "*Microsoft.OneConnect*"
-        "*Microsoft.People*"
-        "*Microsoft.Print3D*"
-        "*Microsoft.SkypeApp*"
-        "*Microsoft.StorePurchaseApp*"
-        "*Microsoft.WindowsAlarms*"
-        "*Microsoft.WindowsCamera*"
-        "*microsoft.windowscommunicationsapps*"
-        "*Microsoft.WindowsFeedbackHub*"
-        "*Microsoft.WindowsMaps*"
-        "*Microsoft.WindowsSoundRecorder*"
-        "*Microsoft.Xbox.TCUI*"
-        "*Microsoft.XboxApp*"
-        "*Microsoft.XboxGameOverlay*"
-        "*Microsoft.XboxIdentityProvider*"
-        "*Microsoft.XboxSpeechToTextOverlay*"
-        "*Microsoft.ZuneMusic*"
-        "*Microsoft.ZuneVideo*"
-
-        #Sponsored Windows 10 AppX Apps
-        #Add sponsored/featured apps to remove in the "*AppName*" format
-        "*EclipseManager*"
-        "*ActiproSoftwareLLC*"
-        "*AdobeSystemsIncorporated.AdobePhotoshopExpress*"
-        "*Duolingo-LearnLanguagesforFree*"
-        "*PandoraMediaInc*"
-        "*CandyCrush*"
-        "*Wunderlist*"
-        "*Flipboard*"
-        "*Twitter*"
-        "*Facebook*"
-        "*Spotify*"
-
-        #Optional: Typically not removed but you can if you need to for some reason
-        #"*Microsoft.Advertising.Xaml_10.1712.5.0_x64__8wekyb3d8bbwe*"
-        #"*Microsoft.Advertising.Xaml_10.1712.5.0_x86__8wekyb3d8bbwe*"
-        #"*Microsoft.BingWeather*"
-        #"*Microsoft.MSPaint*"
-        #"*Microsoft.MicrosoftStickyNotes*"
-        #"*Microsoft.Windows.Photos*"
-        #"*Microsoft.WindowsCalculator*"
-        #"*Microsoft.WindowsStore*"
-    )
-    foreach ($App in $AppXApps) {
-        Write-Verbose -Message ('Removing Package {0}' -f $App)
-        Get-AppxPackage -Name $App | Remove-AppxPackage -ErrorAction SilentlyContinue
-        Get-AppxPackage -Name $App -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue
-        Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like $App | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue
-    }
-
-}
 
 #This will run get-appxpackage | remove-appxpackage which is required for sysprep to provision the apps.
 Function Begin-SysPrep {