Aracılığıyla paylaş


Automatically clean up unpublished packages on the App-V in Windows client

Applies to:

  • Windows 10
  • Windows 11

If you wanted to free up additional storage space in previous versions of App-V, you would have had to manually remove your unpublished packages from your client devices. Starting with Windows 10 version 1703, use PowerShell or Group Policy settings to automatically clean up your unpublished packages after restarting your device.

Clean up with PowerShell cmdlets

You can enter PowerShell cmdlets to turn on the AutoCleanupEnabled setting, which will automatically clean up your unpublished App-V packages from your App-V client devices.

Turn on the AutoCleanupEnabled option

  1. Open PowerShell as an admin and enter the following cmdlet to turn on the automatic package cleanup functionality:

    Set-AppvClientConfiguration -AutoCleanupEnabled 1
    

    After running the cmdlet, you should see the following info on the PowerShell screen:

    Name Value SetbyGroupPolicy
    AutoCleanupEnabled 1 False
  2. Run the following cmdlet to check if the configuration has the cleanup setting turned on.

    Get-AppvClientConfiguration
    

    If the AutoCleanupEnabled option shows a value of 1 in the configuration list, that means the setting is turned on.

Clean up with Group Policy settings

Using Group Policy, you can turn on the Enable automatic cleanup of unused App-V packages setting to automatically clean up your unpublished App-V packages from your App-V client devices.

Turn on the Enable automatic cleanup of unused App-V packages setting

  1. Open your Group Policy editor and select the Administrative Templates\System\App-V\PackageManagement\Enable automatic cleanup of unused App-V packages setting.

  2. Select Enabled, then select OK.

    After your Group Policy updates and you reset the client, the setting will clean up any unpublished App-V packages on the App-V client.