Add-PSSnapin *Citrix*
Get-XAApplication | % {
$BrowserName = $_.BrowserName
$icon = Get-XAApplicationIcon -BrowserName $BrowserName
$bytes = [Convert]::FromBase64String($icon.EncodedIconData)
Add-Content -Encoding Byte -Value $bytes -Path "c:\tmp\$($BrowserName).ico"
}
Very nice! worked flawless for me!