Windows 10: PwrShell: Remove-AppxPackage & Remove-AppxProvisionedPackage -AllUsers

Discus and support PwrShell: Remove-AppxPackage & Remove-AppxProvisionedPackage -AllUsers in Windows 10 Software and Apps to solve the problem; Hello, I would like to ask a couple of questions regarding PowerShell commands for App management (OS build 19041.450) First: is there any difference... Discussion in 'Windows 10 Software and Apps' started by Mark0, Aug 31, 2020.

  1. Mark0 Win User

    PwrShell: Remove-AppxPackage & Remove-AppxProvisionedPackage -AllUsers


    Hello,
    I would like to ask a couple of questions regarding PowerShell commands for App management (OS build 19041.450)

    First: is there any difference between
    Get-AppxPackage *Microsoft.XboxApp* | Remove-AppxPackage
    and
    Get-AppxPackage -AllUsers *Microsoft.XboxApp* | Remove-AppxPackage
    if there is only one user on the computer?

    Second: what is the difference between
    Remove-AppxProvisionedPackage -Online -PackageName MyAppxPkg
    and
    Remove-AppxProvisionedPackage -AllUsers -Online -PackageName MyAppxPkg

    Thanks for any help,
    Mark

    :)
     
    Mark0, Aug 31, 2020
    #1
  2. R-T-B Win User

    Yay or Nay? Bloatware removal tool for Windows 10

    [/quote] Click to expand... True, but the "Modern" framework itself is unremovable and always running. At least that's my understanding.
     
    R-T-B, Aug 31, 2020
    #2
  3. Solaris17 Win User
    Yay or Nay? Bloatware removal tool for Windows 10

    I run this before sysprepping my images to roll out. I only keep the store itself and calculator. (accountants get angry if you remove that)

    Code: Get-AppxPackage -AllUsers | where-object {$_.name -notlike "*Microsoft.WindowsStore*"} | where-object {$_.name -notlike "*Microsoft.WindowsCalculator*"} | Remove-AppxPackage Get-AppxProvisionedPackage -online | where-object {$_.packagename -notlike "*Microsoft.WindowsStore*"} | where-object {$_.packagename -notlike "*Microsoft.WindowsCalculator*"} | Remove-AppxProvisionedPackage -online[/quote]
     
    Solaris17, Aug 31, 2020
    #3
  4. PwrShell: Remove-AppxPackage & Remove-AppxProvisionedPackage -AllUsers

    Customise OS with PowerShell script to remove ALL Apps.

    I wonder if someone can just see if my logic is correct here please.

    To make sure that everything [the Apps I DON'T want] are truly gone, will the below logic work?

    My understanding is that they need to be removed using the Get-AppxPackage AND using the Get-AppxProvisionedPackage.

    Here are a few examples of what I mean above.

    Using the Get-AppxPackage . . .
    Code:
    Using the Get-AppxProvisionedPackage . . .
    Code:
    Then to make sure that they are NOT re-installed when a new update/rollout is released, I can use . . .
    Code:
    Thanks in advance.
     
    Paul Black, Aug 31, 2020
    #4
Thema:

PwrShell: Remove-AppxPackage & Remove-AppxProvisionedPackage -AllUsers

Loading...
  1. PwrShell: Remove-AppxPackage & Remove-AppxProvisionedPackage -AllUsers - Similar Threads - PwrShell Remove AppxPackage

  2. remove-AppxPackage -AllUsers causes Application Error

    in Windows 10 Gaming
    remove-AppxPackage -AllUsers causes Application Error: Get-AppxPackage Microsoft.WindowsSoundRecorder -AllUsers remove-AppxPackage -AllUsersApplication Error ID: 1000Faulting application name: svchost.exe_AppXSvc, version: 10.0.19041.4355, time stamp: 0x9ce47784Faulting module name: appxdeploymentserver.dll, version:...
  3. remove-AppxPackage -AllUsers causes Application Error

    in Windows 10 Software and Apps
    remove-AppxPackage -AllUsers causes Application Error: Get-AppxPackage Microsoft.WindowsSoundRecorder -AllUsers remove-AppxPackage -AllUsersApplication Error ID: 1000Faulting application name: svchost.exe_AppXSvc, version: 10.0.19041.4355, time stamp: 0x9ce47784Faulting module name: appxdeploymentserver.dll, version:...
  4. remove-AppxPackage -AllUsers causes Application Error

    in Windows 10 BSOD Crashes and Debugging
    remove-AppxPackage -AllUsers causes Application Error: Get-AppxPackage Microsoft.WindowsSoundRecorder -AllUsers remove-AppxPackage -AllUsersApplication Error ID: 1000Faulting application name: svchost.exe_AppXSvc, version: 10.0.19041.4355, time stamp: 0x9ce47784Faulting module name: appxdeploymentserver.dll, version:...
  5. AppxPackages Removal

    in Windows 10 Gaming
    AppxPackages Removal: As a part of a new computer setup that I do, I run a PowerShell script that removes a bunch of the unnecessary AppxPackages. For some reason on 1 specific new computer, I cannot remove any appx-package even when I run the command manually rather than in my script. There isn't...
  6. Unable to remove appxpackage with -AllUsers attribute

    in Microsoft Windows 10 Store
    Unable to remove appxpackage with -AllUsers attribute: Hello Team,Am trying to use Remove-AppxPackage command to remove an appx package for all the users, it fails with below error. However, If I run the command without -AllUsers attributes it works.CommandRemove-appxpackage...
  7. Unable to remove appxpackage with -AllUsers attribute

    in Windows 10 Gaming
    Unable to remove appxpackage with -AllUsers attribute: Hello Team,Am trying to use Remove-AppxPackage command to remove an appx package for all the users, it fails with below error. However, If I run the command without -AllUsers attributes it works.CommandRemove-appxpackage...
  8. Unable to remove appxpackage with -AllUsers attribute

    in Windows 10 Software and Apps
    Unable to remove appxpackage with -AllUsers attribute: Hello Team,Am trying to use Remove-AppxPackage command to remove an appx package for all the users, it fails with below error. However, If I run the command without -AllUsers attributes it works.CommandRemove-appxpackage...
  9. Remove-AppXPackage Mail for Windows 10 -AllUsers no longer works

    in Windows 10 Customization
    Remove-AppXPackage Mail for Windows 10 -AllUsers no longer works: Get-AppXpackage *windowscomm* Remove-AppxPackage -AllUsers This used to work, it now doesn't. Please our dear overlord Microsoft, please impose the divine light that I may customise the enterprise environment I manage and not have my users trying to log into Mail for...
  10. AppxPackages AND AppxProvisionedPackages.

    in Windows 10 Software and Apps
    AppxPackages AND AppxProvisionedPackages.: Good afternoon. Question 1: I have written a PowerShell script to remove AppxPackages AND AppxProvisionedPackages. However, the following do NOT get removed [even run as the Built-In Administrator] . . ....