46 lines
1.7 KiB
PowerShell
46 lines
1.7 KiB
PowerShell
# =====================================================================
|
|
#
|
|
# création d'un tableau contenant les noms des Apps à desinstaller,
|
|
# puis utilisation de -In $Packages ou foreach ($package in $packages) { Get-AppxPackage | where Name -like *$Packages* | remove...etc}
|
|
# cela permet de donner des nom incomplets, s'ils changent...
|
|
#
|
|
# =====================================================================
|
|
|
|
# List of applications to remove
|
|
$Packages =
|
|
'Microsoft.3DBuilder',
|
|
'Microsoft.BingFinance',
|
|
'Microsoft.BingNews',
|
|
'Microsoft.BingSports',
|
|
'Microsoft.BingWeather',
|
|
'Microsoft.CommsPhone',
|
|
'Microsoft.ConnectivityStore',
|
|
'Microsoft.Getstarted',
|
|
'Microsoft.Messaging',
|
|
'Microsoft.MicrosoftOfficeHub',
|
|
'Microsoft.MicrosoftSolitaireCollection',
|
|
'Microsoft.Office.OneNote',
|
|
'Microsoft.Office.Sway',
|
|
'Microsoft.People',
|
|
'Microsoft.SkypeApp',
|
|
'Microsoft.XboxApp',
|
|
'Microsoft.ZuneMusic',
|
|
'Microsoft.ZuneVideo',
|
|
'Microsoft.WindowsMaps',
|
|
'Microsoft.Windows.SecondaryTileExperience',
|
|
'Microsoft.Windows.ContentDeliveryManager',
|
|
'Microsoft.Windows.CloudExperienceHost',
|
|
'Microsoft.Advertising.Xaml',
|
|
'9E2F88E3.Twitter',
|
|
'king.com.CandyCrushSodaSaga',
|
|
'Windows.MiracastView',
|
|
'Microsoft.Windows.ParentalControls',
|
|
'Microsoft.MicrosoftSolitaireCollection',
|
|
'WindowsFeedback'
|
|
|
|
# remove installed appx for current user
|
|
Get-AppxPackage | Where-Object Name -In $Packages | Remove-AppxPackage | Out-Null
|
|
# remove all installed appx for all users
|
|
Get-AppxPackage -AllUser | Where-Object Name -In $Packages | Remove-AppxPackage | Out-Null
|
|
# remove provisioned appx
|
|
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -In $Packages | Remove-ProvisionedAppxPackage -Online | Out-Null |