App-V and Powershell

Just a quick post so that i will remember this later when i need it next time.

Import-Module AppvClient
Get-Command -Module AppvClient

Add-AppvClientPackage -Path '.\Name.appv' | Publish-AppvClientPackage -Global | Mount-AppvClientPackage
Unpublish-AppvClientPackage -Global -Name 'Name' | Remove-AppvClientPackage

# Start CMD inside App-V package
Get-AppvClientPackage -Name * | ForEach-Object{Start-Process cmd -ArgumentList "/K title $($_.Name) /appvve:$($_.PackageId)_$($_.VersionId)"}
Comments (0) Trackbacks (0)

No comments yet.

Leave a comment

No trackbacks yet.