add-pssnapin Citrix.* -erroraction silentlycontinue # Create variables #$outpath = [environment]::getfolderpath("mydocuments") + "\XenApp_Published_App_Report.csv" $xaapplist = get-xaapplication foreach ($application in $xaapplist) { $appreport = get-xaapplicationreport -BrowserName $application.BrowserName Write-Host "$($appreport.BrowserName) : $($appreport.enabled)" $DroitsDacces = $appreport.accounts foreach ($unGroupeOuUser in $DroitsDacces) { #$unGroupeOuUser |GM Write-Host "`t$($unGroupeOuUser.AccountName) / $($unGroupeOuUser.AccountType)" } }