Manually Publish An App-V

From psadt | Evergreen Application Management
Jump to navigation Jump to search

About

Powershell.png

Scripts to manually publish or unpublish an App-V.


Publish


# Publish App-V
[string]$currentPath = Split-Path -Parent $MyInvocation.MyCommand.Definition
[string]$pkgName = "Apple Safari for Windows 5.34"

Import-Module AppVClient | Out-Null
Enable-AppV | Out-Null
Set-AppvClientConfiguration -EnablePackageScript $true | Out-Null
Add-AppvClientPackage "$currentPath\$pkgName.appv" | Publish-AppvClientPackage -Global | Out-Null


Unpublish


# Unpublish App-V
[string]$pkgName = "Apple Safari for Windows 5.34"

Import-Module AppVClient | Out-Null
Set-AppvClientConfiguration -EnablePackageScript $true | Out-Null
Unpublish-AppvClientPackage $pkgName -Global | Out-Null
Remove-AppvClientPackage $pkgName | Out-Null