Remove-AppVClientPackage problem

Installing and managing an App-V 5.0 environment.

Moderators: kirk, jur, kkaminsk

Remove-AppVClientPackage problem

Postby Simbad » Tue Aug 27, 2013 6:12 pm

Hello,

I would like to clear the App-V 5 cache but I have error with some packages that used to belong to a connection group :

Code: Select all
PS C:\Windows\system32> remove-appvclientpackage PackageId: 5CCB7143-2312-4EF5-9E92-E2B7CD68D70D VersionId: 1ACF523E-359D-4CF7-9893-97D16F527493
remove-appvclientpackage : Operation failed because package belongs to a connection group on the machine ensure that package does not belong to any connection groups.
Operation attempted: Remove AppV Package.
AppV Error Code: 020000050C.
Please consult AppV Client Event Log for more details.
Au caractère Ligne:1 : 1
+ remove-appvclientpackage
+ ~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidResult : (:) [Remove-AppvClientPackage], ClientException
    + FullyQualifiedErrorId : RemovePackageError,Microsoft.AppV.AppvClientPowerShell.RemoveAppvPackage


It says the package still belong to a connection group. But this connection group has been deleted a long time ago. It doesnt existe anymore on the client machine. The get-appvclientconnectiongroup return nothing. The packages have been streamed from a server, this is not a local installation.

What can I do to remove the cache of those virtual apps ? Trying to delete the folder is not working (deny acess error).

Thanks
Simbad
Accomplished Virtualizer
 
Posts: 95
Joined: Tue Dec 06, 2011 3:45 pm
Location: France

Re: Remove-AppVClientPackage problem

Postby Simbad » Tue Aug 27, 2013 6:27 pm

When I go to the registry I still can see old PackageGroups.

I've been to :

HKLM\Software\Microsoft\AppV\Client\PackagesGroups

Now deleting those groups and trying to finish this off !
Simbad
Accomplished Virtualizer
 
Posts: 95
Joined: Tue Dec 06, 2011 3:45 pm
Location: France

Re: Remove-AppVClientPackage problem

Postby Simbad » Tue Aug 27, 2013 6:36 pm

Ok that was the problem. The connection group could not be retrieve via the command get-appvclientconnectiongroup but the group did exist in the registry.

I did not just erase the registry key. Instead, when I use remove-appvclientconnectiongroup with the connection group ID and version ID located in the registry the command works.

I think this is the good way to do it rather than just deleting the key in the registry (?)

Anyway, all my packages are now deleted :)
Simbad
Accomplished Virtualizer
 
Posts: 95
Joined: Tue Dec 06, 2011 3:45 pm
Location: France

Re: Remove-AppVClientPackage problem

Postby kirk » Mon Sep 02, 2013 11:16 am

did you check if the connection group was listed with get-appclientconnectiongroup -all?

I recently faced a situation where it just took a while (actually a rebboot) before a package could be removed that was part of a ACG before.
Falko
kirk
Guru
 
Posts: 810
Joined: Fri Aug 27, 2004 3:32 pm
Location: Germany

Re: Remove-AppVClientPackage problem

Postby Simbad » Mon Sep 02, 2013 10:28 pm

No, and the -all is interesting, I will check it next time, thank you Kirk !
Simbad
Accomplished Virtualizer
 
Posts: 95
Joined: Tue Dec 06, 2011 3:45 pm
Location: France

Re: Remove-AppVClientPackage problem

Postby Simbad » Fri Sep 13, 2013 10:09 pm

Kirk,

I have to thank you for this help.

The "-all" argument is very usefull when you want to clean all out.

It also help when you have the error 070000000D, at this time you need to clean all out.

So you can use "Get-AppvClientConnectionGroup -all | Remove-AppvClientConnectionGroup" then "Get-AppvClientPackage -all | Remove-AppvClientPackage".

It works great, thanks.
Simbad
Accomplished Virtualizer
 
Posts: 95
Joined: Tue Dec 06, 2011 3:45 pm
Location: France


Return to Installation and management (5.0)

Who is online

Users browsing this forum: No registered users and 3 guests