How to remove system apps on Windows 11 using the powershell
Published on Aug. 22, 2023, 12:13 p.m.
The ultimate guide to uninstalling system apps using PowerShell on Windows 11
By clearing these unwanted built-in apps, you can save so much space.You can remove any System apps in Windows 11.
Uninstall Built-In Apps using Windows PowerShell
Windows PowerShell is a powerful command-line shell and scripting language.You can use the Remove-AppxPackage cmdlet to remove an app package from a specific user account.
Open the Start menu and search for ‘PowerShell’ .Then, click ‘Run as Administrator’.
Once the PowerShell window opens, type the following command .
Get-AppxPackage
The above command lists every system app and third-party application installed on your Windows 11 device.
For your convenience, type the below command to get the list of only the app names .
Get-AppxPackage | Select Name, PackageFullName
Copy or note down the app name.
To show the list of apps on a specific user:
Get-AppXPackage -User Lavin38 | Select Name, PackageFullName
To get the list of apps along with their app package information:
Get-AppXPackage -User Lavin38
To get the list of apps on all user accounts:
Get-AppxPackage -AllUsers | Select Name, PackageFullName
or
Get-AppxPackage -AllUsers
Now, scroll through the list to locate the app you want .
FullPackageName, copy or note down the app’s Name and FullPackageName.
To uninstall individual apps:
Remove-AppxPackage <PackageFullName>
The process will be over shortly and the app will be removed.
If you wish to remove the program from the current account.
Get-AppxPackage <App_Name> | Remove-AppxPackage
Remove All Pre-Installed Apps
If you want to remove all pre-installed apps from the current user with a single command:
Get-AppxPackage | Remove-AppxPackage
If you want to remove all pre-installed / default apps from all user accounts on your computer.
Get-AppxPackage -allusers | Remove-AppxPackage
To remove all inbuilt apps from a specific user account:
Get-AppxPackage -user <Username> | Remove-AppxPackage
To remove all apps while keeping a single app:
Get-AppxPackage | where-object {$_.name –notlike “*Paint*”} | Remove-AppxPackage
If you want to keep more than one app, add a where-object {$_.name –notlike “app_name”} parameter in the command for each app you want to keep:
Get-AppxPackage | where-object {$_.name –notlike “*Paint*”} | where-object {$_.name –notlike “*store*”} | where-object {$_.name –notlike “*Office*”} | Remove-AppxPackage
Reinstall/Restore System Apps
If you accidentally remove a system app, you can easily reinstall it through PowerShell.
Find the list of available default apps:
Get-AppxPackage -allusers | Select Name, PackageFullName
Then copy the ‘PackageFullName’ from the list for the app .
To reinstall a specific built-in app:
Add-AppxPackage -register "C:\Program Files\WindowsApps\PackageFullName\appxmanifest.xml" -DisableDevelopmentMode
With complete ease, you can now remove any unnecessary system apps from your Windows 11 PC.