Published App-V Application List

Checks which App-V packages are published to client device
Version 1.0.1
Created on 2015-04-10
Modified on 2015-04-10
Created by at-nick
Downloads: 136

The Script Copy Script Copied to clipboard
Function Get-AppVList
{
    $Packages = Get-AppvClientApplication
    $Packages | sort -Property Name -Descending | Select Name,Version
}

$ErrorActionPreference = "Stop"

If ( (Get-Module -Name AppvClient -ErrorAction SilentlyContinue) -eq $null )
{
        # using try/catch can stop the script completely if needed with "Exit with error" - 'Exit 1' (or some other non-zero exit code)
        # and avoid a long string of errors because the first statement was not successful.
        Try {
                Import-Module AppvClient
        } Catch {
                Write-Host "There is a problem loading the Powershell module. It is not possible to continue."
                Exit 1
        }
}

Get-AppVList