Files
winutil/functions/private/Remove-WinUtilAPPX.ps1
Gabi eec16bdce5 Update-Remove-WinUtilAPPX.ps1 (#3822)
* Update Remove-WinUtilAPPX.ps1

* Modify Remove-WinUtilAPPX.ps1 to adjust package removal

Removed '-AllUsers' parameter from Remove-AppxProvisionedPackage call.

* Update Remove-WinUtilAPPX.ps1

* Fix formatting in Remove-WinUtilAPPX.ps1

* Update Remove-WinUtilAPPX.ps1
2026-01-08 12:29:55 -06:00

22 lines
517 B
PowerShell

function Remove-WinUtilAPPX {
<#
.SYNOPSIS
Removes all APPX packages that match the given name
.PARAMETER Name
The name of the APPX package to remove
.EXAMPLE
Remove-WinUtilAPPX -Name "Microsoft.Microsoft3DViewer"
#>
param (
$Name
)
Write-Host "Removing $Name"
Get-AppxPackage $Name -AllUsers | Remove-AppxPackage -AllUsers
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like $Name | Remove-AppxProvisionedPackage -Online
}