Skip to content
This repository was archived by the owner on May 28, 2021. It is now read-only.

Commit 3ded96e

Browse files
committed
Reorder and add comment for Microsoft.Advertising.Xaml
1 parent 5db2e9e commit 3ded96e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Win10.psm1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2607,7 +2607,6 @@ Function InstallOneDrive {
26072607
Function UninstallMsftBloat {
26082608
Write-Output "Uninstalling default Microsoft applications..."
26092609
Get-AppxPackage "Microsoft.3DBuilder" | Remove-AppxPackage
2610-
Get-AppxPackage "Microsoft.Advertising.Xaml" | Remove-AppxPackage
26112610
Get-AppxPackage "Microsoft.AppConnector" | Remove-AppxPackage
26122611
Get-AppxPackage "Microsoft.BingFinance" | Remove-AppxPackage
26132612
Get-AppxPackage "Microsoft.BingFoodAndDrink" | Remove-AppxPackage
@@ -2664,13 +2663,14 @@ Function UninstallMsftBloat {
26642663
Get-AppxPackage "Microsoft.YourPhone" | Remove-AppxPackage
26652664
Get-AppxPackage "Microsoft.ZuneMusic" | Remove-AppxPackage
26662665
Get-AppxPackage "Microsoft.ZuneVideo" | Remove-AppxPackage
2666+
Get-AppxPackage "Microsoft.Advertising.Xaml" | Remove-AppxPackage # Dependency for microsoft.windowscommunicationsapps, Microsoft.BingWeather
26672667
}
26682668

26692669
# Install default Microsoft applications
26702670
Function InstallMsftBloat {
26712671
Write-Output "Installing default Microsoft applications..."
26722672
Get-AppxPackage -AllUsers "Microsoft.3DBuilder" | ForEach-Object {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
2673-
Get-AppxPackage -AllUsers "Microsoft.Advertising.Xaml" | ForEach-Object {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
2673+
Get-AppxPackage -AllUsers "Microsoft.Advertising.Xaml" | ForEach-Object {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"} # Dependency for microsoft.windowscommunicationsapps, Microsoft.BingWeather
26742674
Get-AppxPackage -AllUsers "Microsoft.AppConnector" | ForEach-Object {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
26752675
Get-AppxPackage -AllUsers "Microsoft.BingFinance" | ForEach-Object {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
26762676
Get-AppxPackage -AllUsers "Microsoft.BingFoodAndDrink" | ForEach-Object {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}

0 commit comments

Comments
 (0)