Repository navigation
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest released version
- Search the existing issues.
- Refer to the FAQ.
- Refer to Differences between Windows PowerShell 5.1 and PowerShell.
Steps to reproduce
Get-AppvClientPackage -All -Name "GPL-NotepadPlusPlus-8.9.8-x64-ML-001"
RunspaceId : aa97fc32-6732-4f01-80fe-6255ec010f9f
PackageId : 8cc46725-46bb-4bab-a363-5a6cbbf03f38
VersionId : 0ad98446-bf4f-4ebb-b2a1-7e4a3d214a0d
Name : GPL-NotepadPlusPlus-8.9.8-x64-ML-001
Version : 0.0.0.7
Path : C:\Users\taagach0\OneDrive - Swisscom\Git\Git-repos\PSADTCurrent\2.0.0_beta\Files\GPL-NotepadPlu
sPlus-8.9.8-x64-ML-001\GPL-NotepadPlusPlus-8.9.8-x64-ML-001.appv
IsPublishedToUser : False
UserPending : False
IsPublishedGlobally : False
GlobalPending : False
InUse : False
InUseByCurrentUser : False
PackageSize : 84789155
PercentLoaded : 0
IsLoading : False
HasAssetIntelligence : True
$p = Get-AppvClientPackage -All -Name "GPL-NotepadPlusPlus-8.9.8-x64-ML-001"
PS C:\Users\taagach0> Remove-AppvClientPackage -Package $p
Remove-AppvClientPackage: Cannot bind parameter 'Package'. Cannot convert the "Microsoft.AppV.AppvClientPowerShell.AppvClientPackage" value of type "Deserialized.Microsoft.AppV.AppvClientPowerShell.AppvClientPackage" to type "Microsoft.AppV.AppvClientPowerShell.AppvClientPackage".
all appvclientpackage commandlets have this issue when trying to use -Package parameter or when trying to pipe objects to the commandlets
Expected behavior
Get-AppvClientPackage -All -Name ""| Publish-AppvClientPackage > Publishes package
Get-AppvClientPackage -All -Name ""| Remove-AppvClientPackage > Removes package
This all works as Expected in PS 5.1Actual behavior
Fails with error about Type. seems to be caused by the Compatibility layer.Error details
Cannot bind parameter 'Package'. Cannot convert the "Microsoft.AppV.AppvClientPowerShell.AppvClientPackage" value of type "Deserialized.Microsoft.AppV.AppvClientPowerShell.AppvClientPackage" to type "Microsoft.AppV.AppvClientPowerShell.AppvClientPackage".Environment data
PowerShell 7.7.0
PS C:\Windows\System32> $PSVersionTable
Name Value
---- -----
PSVersion 7.7.0
PSEdition Core
GitCommitId 7.7.0
OS Microsoft Windows 10.0.26200
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.4
SerializationVersion 1.1.0.1
WSManStackVersion 3.0Visuals
No response
Activity
mklement0 commentedon Nov 11, 2026
I'm only guessing, but it sounds like the
AppVClientis running via the Windows PowerShell Compatibility feature, andthe problem may be that the implicitly deserialized instance in
$pis passed as as an argument; see if passing$pvia the pipeline makes a difference:$p | Remove-AppvClientPackageAkitoTheGambler commentedon Nov 11, 2026
yeah that is the issue. its running through the PowerShell Compatibility feature
$p | Remove-AppvClientPackage
also doesnt work due to that