Getting a list of Citrix Servers from an Application in Powershell

I was trying to get a list of servers from an application via qfarm /app ‘ApplicationName’ however the output it gave me was text rather then an array.

Below is how to get an array into powershell using the Citrix Powershell Snapin Instead

Add-PSSnapin Citrix*
$servers = Get-XAServer -BrowserName 'Application Name'| select ServerName
 
foreach ($server in $servers) {
 
#do Something per server
Write-Host $server.ServerName
 
}

 

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...