Update: I updated my configuration template for deploying to stateless rds clients on Citrix published desktops. Let me know if you have any questions! RRS feed

All replies

  • 1) Have you thought about just pulling the %PACKAGEINSTALLATIONROOT% from the registry as opposed to having it manually defined in the script?

    $AppVClientPath = 'D:\App-V'  #This is the path to your %PackageInstallationRoot%, if you only have a single location, use the same value for the next variable as well
    $AppVClientPath2 = 'D:\App-V'  #This is the path to your secondary %PackageInstallationRoot%, if you have different locations (XenApp vs VDI, etc)

    2) Since you require the full AppV infrastructure, you could query the Publishing Server for the management server, which has commands to display all packages.  Example:

    #Get publishing server
    $url = dir HKLM:\SOFTWARE\Microsoft\AppV\Client\Publishing\Servers
    $pubServer = [uri]$url.GetValue("URL")
    #get MGTserver remotely from publishing server
    $w32reg = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey('LocalMachine',$pubServer.host)
    $keypath = 'SOFTWARE\Microsoft\AppV\Server\PublishingService'
    $MGTServerReg = $w32reg.OpenSubKey($keypath)
    $MGTServer = $MGTServerReg.GetValue('PUBLISHING_MGT_SERVER')
    #query MGTServer for all packages
    $MGTServerURI = [uri]$MGTServer
    [xml]$Packages = Invoke-Webrequest -uri $MGTServerURI/packages -Method Get -UseDefaultCredentials
    #find AppVClient package
    $appVClient = $packages.ArrayOfPackageVersion.PackageVersion.packageurl | sls "Microsoft App-V5.0 Client UI"

    You may want to cleanup the 


    Registry key as well.  :)

    Thanks for making this!

    Tuesday, March 29, 2016 8:55 PM
  • Thanks for the input!  I'll look at revising!
    Tuesday, March 29, 2016 9:36 PM
  • Good article. Thanks for sharing Cody.

    (Please click on Vote as Helpful and/or Mark as Answer, if it has helped you.)

    app2pack.blogspot.com: app2pack.blogspot.com

    Thursday, March 31, 2016 4:23 AM
  • Updates:  Complete re-work of the script.  Added cleanup for LocalVFSSecuredUsers, Removed unused functions, Enhanced used functions

    Monday, April 4, 2016 7:44 PM