One command that is handy to know when hitting app-v issues is the ability to flush the app-v cache – below are the steps necessary to achieve this task:
- On your Windows 8.x machine, log in with any account that has local administrator permissions.
- Start | run | cmd.exe | powershell.exe and enter the following commands:
Set-ExecutionPolicy RemoteSigned –Force Import-Module AppvClient Get-AppvClientPackage –All | Remove-AppvClientPackage Set-ExecutionPolicy Default –Force
So you’ll see from above first and last lines of the commands allow scripting to run within PowerShell and then set the scripting security settings back to their default. The second line imports the App-V commands into the PowerShell session and the third line retrieves a list of all of the App-V packages and then pipes them into a command to remove them from the client.
- To check command worked, examine the size of the
C:\ProgramData\App-Vfolder; it should be nearly empty with only icons and shortcuts remaining for the packages that have otherwise been cleared.