Provisioned Package (預先佈建的應用程式)
PowerShell
# 列出目前的 Provisioned Package:
Get-AppxProvisionedPackage -Online | Format-Table DisplayName, PackageFullName
PowerShell
# 除特定的 Provisioned App:
Remove-AppxProvisionedPackage -Online -PackageName <packagefullname>
Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*Xbox*"} | Remove-AppxProvisionedPackage -Online
<packagefullname>
PowerShell
# 移除所有使用者已安裝和預先布建的 AppxPackage:
$packagefullname = (Get-AppxProvisionedPackage -online | Where-Object {$_.DisplayName -like "*應用程式名稱*"}).PackageFullName
if ($packagefullname) {
Get-AppxPackage -AllUsers | Where-Object {$_.PackageFullName -like $packagefullname} | Remove-AppxPackage
Remove-AppxProvisionedPackage -online -PackageName $packagefullname
}
留言
張貼留言