Script pour supprimer les Appx en live
This commit is contained in:
parent
8293d9b34a
commit
e7ab0b7d1b
46
Windows10/win10-uninstall-appx.ps1
Normal file
46
Windows10/win10-uninstall-appx.ps1
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
# =====================================================================
|
||||||
|
#
|
||||||
|
# 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
|
Loading…
x
Reference in New Issue
Block a user