+4 votes
299 views
How to uninstall Apps Windows 10 with Powershell to all users

in Windows 10 by (551k points)
reopened | 299 views

1 Answer

+5 votes
Best answer

1. Remove an application for all users with PowerShell in Windows 10
2. Remove all applications for all users with PowerShell in Windows 10

One of the features of Windows 10 is that in an integrated way it includes a series of preinstalled applications which cannot be uninstalled using the traditional method from the control panel since they are universal applications of the operating system..

Many of these applications are of little use and therefore do nothing more than take up space on the hard disk and can be used for other types of activities. Therefore, TechnoWikis will explain how we can use Windows PowerShell to eliminate UWP (Universal) applications that are integrated in the local account or in all user accounts of our Operating System.

You know that we have Windows PowerShell tutorials section, today we focus on this way to delete and uninstall Windows 10 default applications..


1. Remove an application for all users with PowerShell in Windows 10

Step 1

To carry out this task we must access Windows PowerShell as administrators by right clicking on the Start menu, or using the following keys, and there by selecting the option “Windows PowerShell (Administrator)”.

+ X

Step 2

Once we access the console, we will run the following cmdlet:
 Get-AppxPackage | Select Name, PackageFullName 
image
Step 3

This command is responsible for displaying the entire list of universal applications installed on Windows 10. We must copy the name of the package, column “PackageFullname”, for this we can select the name of the package and use two options:
  • Press the Enter key
  • Right click on the title bar and go to "Edit / Copy".
image
Step 4

One of the advantages is that it will be possible to shorten the full names of the Windows 10 package including wildcards (**) to the name as such of the application, for example, we may enter * xboxapp * instead of entering the full name that it's Microsoft.XboxApp_41.41.18005.0_x64__8wekyb3d8bbwe. Now, if we want to delete an application for a single user account, we must execute the following syntax:
 Get-AppxPackage PackageFullName | Remove-AppxPackage 
Step 5

But if the objective is to eliminate this application for all users, we will execute the following:
 Get-AppxPackage -allusers PackageFullName | Remove-AppxPackage 
Step 6

In our case we execute the following:
 Get-AppxPackage -allusers Microsoft.WindowsCamera_2018.426.70.0_x64__8wekyb3d8bbwe | Remove-AppxPackage 
Step 7

As a result we will see the following: image
Step 8

Alternatively, we can use the example described above to remove an application using wildcards:
 get-appxpackage -allusers * xboxapp * | remove-appxpackage 
In this case we are removing the default Xbox app from Windows 10.

2. Remove all applications for all users with PowerShell in Windows 10

Step 1

In case it is necessary that we remove all current applications for all users automatically, we must access Windows PowerShell and run the following. Press Enter to execute the action.
 Get-AppxPackage -AllUsers | Remove-AppxPackage 
image
Step 2

Now, if for some reason the reinstallation of all the universal applications that we have uninstalled is required, we can run the following line:
 Get-AppxPackage -allusers | foreach {Add-AppxPackage -register “$ ($ _. InstallLocation) appxmanifest.xml” -DisableDevelopmentMode} 
image
Step 3

If, on the contrary, you only want to install an application, we must execute the following:
 Add-AppxPackage -register “C: Program FilesWindowsAppsPackageFullNameappxmanifest.xml” -DisableDevelopmentMode 
This way it will be possible to manage everything related to universal applications in Windows 10 through PowerShell.

by (3.5m points)
edited

Related questions

+4 votes
1 answer
asked Jun 22, 2019 in Windows 10 by backtothefuture (551k points) | 217 views
+5 votes
1 answer
asked Sep 22, 2019 in Windows 10 by backtothefuture (551k points) | 230 views
+4 votes
1 answer
asked Nov 2, 2019 in Windows 10 by backtothefuture (551k points) | 284 views
+3 votes
1 answer
asked Sep 29, 2019 in Windows 10 by backtothefuture (551k points) | 274 views
+5 votes
1 answer
Sponsored articles cost $40 per post. You can contact us via Feedback
10,634 questions
10,766 answers
510 comments
3 users