- Windows 10, version 1703
Previous versions of App-V have required you to manually remove your unpublished packages from your client devices, to free up additional storage space. Windows 10, version 1703 introduces the ability to use PowerShell or Group Policy settings to automatically cleanup your unpublished packages after a device restart.
Cleanup by using PowerShell commands
Using PowerShell, you can turn on the AutoCleanupEnabled setting to automatically cleanup your unpublished App-V packages from your App-V client devices.
To turn on the AutoCleanupEnabled option
Open PowerShell as an admin and run the following command to turn on the automatic package cleanup functionality:
Set-AppvClientConfiguration -AutoCleanupEnabled 1
The command runs and you should see the following info on the PowerShell screen:
Name Value SetbyGroupPolicy AutoCleanupEnabled 1 False
Run the following command to make sure the configuration is ready to automatically cleanup your packages.
You should see the AutoCleanupEnabled option turned on (shows a value of "1") in the configuration list.
Cleanup by using Group Policy settings
Using Group Policy, you can turn on the Enable automatic cleanup of unused appv packages setting to automatically cleanup your unpublished App-V packages from your App-V client devices.
To turn on the Enable automatic cleanup of unused appv packages setting
Open your Group Policy editor and double-click the Administrative Templates\System\App-V\PackageManagement\Enable automatic cleanup of unused appv packages setting.
Click Enabled, and then click OK.
After your Group Policy updates, the setting is turned on and will cleanup any unpublished App-V packages on the App-V Client after restarting.
Have a suggestion for App-V?