<< Back to Script Library

Show ICA listener binding

Checks the computer registry and displays current ICA Listener binding information – if ICA is enabled, displays the adapters to which ICA is bound

Version: 2.0.3
Created: 2016-05-03
Modified: 2018-11-05
Creator: Trentent Tye
Downloads: 58
Tags: XenApp Citrix XenDesktop HDX ICA
The Script Try this script with ControlUp Copy Script Copied to clipboard
$ErrorActionPreference = "Stop"

$regkeyICA = "HKLM:SYSTEMCurrentControlSetControlTerminal ServerWinStationsICA-TCP"
Try { $LAValue= (Get-ItemProperty $regkeyICA).LanAdapter }
Catch { Write-Host "The ICA protocol is not installed on this computer or bound to any adapter."; Exit }

if ($LAValue -eq 0) {
    Write-Host "The ICA Listener is bound to: All network adapters configured with this protocol"
} Else {
    $regkeyLinkage = "HKLM:SYSTEMCurrentControlSetServicesTCPIPLinkage"
    $BindList = (Get-ItemProperty $regkeyLinkage).Bind
    $NicList = @()

    #replace GUID with user friendly name
    foreach ($nic in $BindList) {  
        $nic = $nic -replace "device", "" 
        $regkeyCxn = "HKLM:SYSTEMCurrentControlSetControlNetwork{4D36E972-E325-11CE-BFC1-08002be10318}" + $nic + "Connection"
        $NicName = (Get-ItemProperty $regkeyCxn).Name
        $NicList += $NicName 
    #Array starts counting at '0' so subtract 1 from the LanAdapter value because it starts counting at '1'
    Write-Host "The ICA Listener is bound to: $NicList[($LAValue) - 1]"

Get Your Download Link

Gain access to ControlUp from your PC. Register and get a link to start your Free Trial.