locked
Where can I see which User config / deployment config file has been applied? RRS feed

  • Question

  • Hi,

    I edited a userconfig.xml and applied it via the console (APP-V Full infrastructure). I was wondering where I can see which file that I applied, to that particular AD group?

    Is there a powershell command? 

    Kind regards,

    Peter

    Wednesday, November 4, 2015 3:05 PM

Answers

  • Yes you can, on the appvserver:
    $package = Get-AppvServerPackage *package* 
    $package.Entitlements | foreach {
        Get-AppvServerPackageUserConfiguration -AppvServerPackage $package -Group $_ | Out-File ("C:\temp\$($packackge.name)_$($_-replace '\\','-')_userconfig.xml")
    }
    So if you want also the deploymentconfig, and ALL packages:

    Get-AppvServerPackage | ForEach-Object {
        $package = $_
        Get-AppvServerPackageDeploymentConfiguration -AppvServerPackage $package | Out-File ("C:\temp\$($package.name)_DeploymentConfig.xml")
        $package.Entitlements | ForEach-Object {
            if([xml]$userConfig = Get-AppvServerPackageUserConfiguration -AppvServerPackage $package -Group $_ -ErrorAction SilentlyContinue)
            {
            $userConfig | Out-File ("C:\temp\$($package.name)_Userconfig_($($_-replace '\\','-')).xml")
            }
        }
    }



    • Proposed as answer by Vigneshwaran (MCTS)MVP Wednesday, November 4, 2015 5:44 PM
    • Marked as answer by Pete_ML Wednesday, November 4, 2015 6:08 PM
    • Edited by Roy Essers Wednesday, November 4, 2015 10:30 PM typo, and extra script
    Wednesday, November 4, 2015 4:48 PM