.
This commit is contained in:
@ -15,18 +15,15 @@ $applist = @(
|
|||||||
"Microsoft.Getstarted*"
|
"Microsoft.Getstarted*"
|
||||||
"Microsoft.Messaging*"
|
"Microsoft.Messaging*"
|
||||||
"Microsoft.MicrosoftSolitaireCollection*"
|
"Microsoft.MicrosoftSolitaireCollection*"
|
||||||
"Microsoft.MicrosoftStickyNotes*"
|
|
||||||
"Microsoft.MixedReality*"
|
"Microsoft.MixedReality*"
|
||||||
"Microsoft.OneConnect*"
|
"Microsoft.OneConnect*"
|
||||||
"Microsoft.People*"
|
"Microsoft.People*"
|
||||||
"Microsoft.SkypeApp*"
|
"Microsoft.SkypeApp*"
|
||||||
"Microsoft.WindowsAlarms*"
|
"Microsoft.WindowsAlarms*"
|
||||||
"Microsoft.WindowsCamera*"
|
|
||||||
"Microsoft.windowscommunicationsapps*"
|
"Microsoft.windowscommunicationsapps*"
|
||||||
"Microsoft.WindowsFeedbackHub*"
|
"Microsoft.WindowsFeedbackHub*"
|
||||||
"Microsoft.WindowsMaps*"
|
"Microsoft.WindowsMaps*"
|
||||||
"Microsoft.WindowsPhone*"
|
"Microsoft.WindowsPhone*"
|
||||||
"Microsoft.Windows.Photos*"
|
|
||||||
"Microsoft.Xbox*"
|
"Microsoft.Xbox*"
|
||||||
"Microsoft.ZuneMusic*"
|
"Microsoft.ZuneMusic*"
|
||||||
"Microsoft.ZuneVideo*"
|
"Microsoft.ZuneVideo*"
|
||||||
|
|||||||
@ -43,6 +43,7 @@ $applist = @(
|
|||||||
ForEach($app in $applist){
|
ForEach($app in $applist){
|
||||||
Get-AppxPackage -AllUsers -Name $app | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue
|
Get-AppxPackage -AllUsers -Name $app | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue
|
||||||
Get-AppxPackage -Name $app | Remove-AppxPackage -ErrorAction SilentlyContinue
|
Get-AppxPackage -Name $app | Remove-AppxPackage -ErrorAction SilentlyContinue
|
||||||
|
Get-AppxPackage -AllUsers -PackageTypeFilter Bundle -Name $app | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue
|
||||||
Get-AppxProvisionedPackage -Online | where {$_.PackageName -like $app} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue
|
Get-AppxProvisionedPackage -Online | where {$_.PackageName -like $app} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
57
CleaningScripts/ServerCleanWithOffice.ps1
Normal file
57
CleaningScripts/ServerCleanWithOffice.ps1
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
|
||||||
|
$applist = @(
|
||||||
|
"*BingWeather*"
|
||||||
|
"*CandyCrush*"
|
||||||
|
"*Disney*"
|
||||||
|
"*LenovoCompanion*"
|
||||||
|
"*Lenovo*"
|
||||||
|
"Microsoft.3DBuilder*"
|
||||||
|
"Microsoft.Advertising*"
|
||||||
|
"Microsoft.Appconnector*"
|
||||||
|
"Microsoft.Bing*"
|
||||||
|
"Microsoft.CommsPhone*"
|
||||||
|
"Microsoft.ConnectivityStore*"
|
||||||
|
"Microsoft.DesktopAppInstaller*"
|
||||||
|
"Microsoft.Getstarted*"
|
||||||
|
"Microsoft.Messaging*"
|
||||||
|
"Microsoft.MicrosoftSolitaireCollection*"
|
||||||
|
"Microsoft.MicrosoftStickyNotes*"
|
||||||
|
"Microsoft.MixedReality*"
|
||||||
|
"Microsoft.OneConnect*"
|
||||||
|
"Microsoft.People*"
|
||||||
|
"Microsoft.SkypeApp*"
|
||||||
|
"Microsoft.WindowsAlarms*"
|
||||||
|
"Microsoft.WindowsCamera*"
|
||||||
|
"Microsoft.windowscommunicationsapps*"
|
||||||
|
"Microsoft.WindowsFeedbackHub*"
|
||||||
|
"Microsoft.WindowsMaps*"
|
||||||
|
"Microsoft.WindowsPhone*"
|
||||||
|
"Microsoft.Windows.Photos*"
|
||||||
|
"Microsoft.Xbox*"
|
||||||
|
"Microsoft.ZuneMusic*"
|
||||||
|
"Microsoft.ZuneVideo*"
|
||||||
|
"Microsoft.YourPhone*"
|
||||||
|
"*Netflix*"
|
||||||
|
"SpotifyAB.SpotifyMusic*"
|
||||||
|
"TuneIn.TuneInRadio*"
|
||||||
|
"*Twitter*"
|
||||||
|
"*ZuneMusic*"
|
||||||
|
"*ZuneVideo*"
|
||||||
|
|
||||||
|
"Microsoft.Office.OneNote*"
|
||||||
|
"Microsoft.MicrosoftOfficeHub*"
|
||||||
|
"Microsoft.Office.Sway*"
|
||||||
|
|
||||||
|
)
|
||||||
|
|
||||||
|
#"Microsoft.Services.Store.Engagement"
|
||||||
|
#"Microsoft.WindowsStore"
|
||||||
|
#"Microsoft.StorePurchaseApp"
|
||||||
|
|
||||||
|
ForEach($app in $applist){
|
||||||
|
Get-AppxPackage -AllUsers -Name $app | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue
|
||||||
|
Get-AppxPackage -Name $app | Remove-AppxPackage -ErrorAction SilentlyContinue
|
||||||
|
Get-AppxPackage -AllUsers -PackageTypeFilter Bundle -Name $app | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue
|
||||||
|
Get-AppxProvisionedPackage -Online | where {$_.PackageName -like $app} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user