Windows Server

Package Full Name: How to determine Apps UWP and remove pre-provisioned appx in Windows 10

Windows 10 comes with pre-installed apps that are not limited to Maps, People, Xbox, Photos, and music, etc. For these pre-installed apps, Windows 10 doesn’t provide any point-and-click way to uninstall them. But you can easily uninstall all those apps using a simple Powershell command. You can also use PowerShell to add, remove, and list app packages (.appx or .appxbundle) per image or per user in a Windows installation.

For related articles, please see how to fix error 0xc1510114: The wim file needs tobe remounted, Error 0x80070002: When trying to mount an image file, Error code 15601: How to resolve DISM unspecified error when removing preinstalled packages, Error 0xc1420127: The specified image in the specified wim is already mountedfor read and write access, and Error 740: Elevated permissions are required to run DISM and how to remove pre-provisioned apps from Windows Image.

On the running Windows System (online), you can use PowerShell to query for the Package Full Name (UWP (GUID)) of the Appx. See this article on how to determine the UWP of an application using different methods and also how to set up a Single App Kiosk Mode Configuration using a Local Account / MDM Bridge WMI Provider. Run the following command from PowerShell

"get-AppxPackage" or "get-AppxPackage -user <put your name here>"

See the following articles on how to use the PowerShell command-line tool instead of DISM. For more information, see the following link. Alternatively, here is a script that is capable of removing installed apps from your device. it will ensure packages you have in the $Applist variable and all the pre-provisioned packages are removed. More information about this script can be gotten from here.

$AppsList = "Microsoft.XboxSpeechTextOverlay","Microsoft.BingFinance","Microsoft.BingNews","Microsoft.BingWeather","Microsoft.XboxApp","Microsoft.SkypeApp","Microsoft.MicrosoftSolitaireCollection","Microsoft.BingSports","Microsoft.ZuneMusic","Microsoft.ZuneVideo","Microsoft.Windows.Photos","Microsoft.People","Microsoft.MicrosoftOfficeHub","Microsoft.WindowsMaps","microsoft.windowscommunicationsapps","Microsoft.Getstarted","Microsoft.3DBuilder"

ForEach ($App in $AppsList) 
{ 
    $PackageFullName = (Get-AppxPackage $App).PackageFullName
    $ProPackageFullName = (Get-AppxProvisionedPackage -online | where {$_.Displayname -eq $App}).PackageName
        write-host $PackageFullName
        Write-Host $ProPackageFullName 
    if ($PackageFullName) 
    { 
        Write-Host "Removing Package: $App"
        remove-AppxPackage -package $PackageFullName 
    } 
    else 
    { 
        Write-Host "Unable to find package: $App" 
    } 
        if ($ProPackageFullName) 
    { 
        Write-Host "Removing Provisioned Package: $ProPackageFullName"
        Remove-AppxProvisionedPackage -online -packagename $ProPackageFullName 
    } 
    else 
    { 
        Write-Host "Unable to find provisioned package: $App" 
    } 

}

I hope you found this blog post helpful. If you have any questions, please let me know in the comment session.

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x