Default MS Store Apps

By | August 31, 2018

In Windows 10 the old (win8) tricks for removing Microsoft apps no longer work.
Here are a number of useful powershell commands.

The following lists the package name:

Get-AppxProvisionedPackage -online | select PackageName

Leave out the pipe and everything to the right to see the “Display Names” (required below)
The command below will remove “a” package, replace [Display.Name] with the display name of the product you want to remove.
Note this will remove it from the provisioned packages however it will not remove an app that has been run.

Get-AppXProvisionedPackage -Online | where DisplayName -EQ [Display.Name] | Remove-AppxProvisionedPackage -online

The following is a script that can be run across the network to remove multiple apps from multiple computers. (I have not tested this although the code above is from this)

$computerList ="" #List of the computers that you wish to target with the script
$creds = Get-Credential #make sure that this is an Administrator account
foreach($computer in $computerList){
#Test to see if the computer will accept the connection before continuing if(Test-Connection -ComputerName $computer -Quiet){ #Create a Powershell session on the target machine with the admin credentials from earlier $session = New-PSSession -ComputerName $computer -Credential $creds #Run the script on the target machine Invoke-Command -Session $session -ScriptBlock { $packages = "Microsoft.Office.Desktop" ForEach ($item in $packages) { Get-AppXProvisionedPackage -Online | where DisplayName -EQ $item | Remove-AppxProvisionedPackage -online } } #Tidy up the powershell session on the target mechine Remove-PSSession $session }