Advertisement
Guest User

Untitled

a guest
Aug 6th, 2015
359
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. $modernApps = @("Microsoft.3DBuilder","microsoft.windowscommunicationsapps","Microsoft.BingFinance","Microsoft.BingNews","Microsoft.BingSports","Microsoft.BingWeather","Microsoft.People","Microsoft.WindowsPhone","Microsoft.MicrosoftSolitaireCollection","Microsoft.WindowsSoundRecorder","Microsoft.XboxApp","Microsoft.WindowsCamera","Microsoft.ZuneMusic","Microsoft.ZuneVideo","Microsoft.Office.OneNote","Microsoft.SkypeApp","Microsoft.MicrosoftOfficeHub")
  2.  
  3. foreach ($modernApp in $modernApps) {
  4.  
  5. Get-AppxProvisionedPackage -Online | Where-Object {$_.PackageName -match '$modernApp'} | Remove-AppxProvisionedPackage -Online
  6.  
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement