Thursday, March 5, 2015

Cirtix Deskdtop Disconnected

add-pssnapin Citrix.Broker.Admin.* -ErrorAction SilentlyContinue





clear



$DBG = Get-BrokerDesktopGroup | where {$_.Name -eq "IT" -and $_.Enabled -eq "True"}




#[Uint16] $TD

#[Uint16] $DD


$TD = $DBG.TotalDesktops

$DD = $DBG.DesktopsDisconnected

If ($TD -and $DD -ne "null")



{

Write-Host "Desktops Disconnected:"$DD"|DesktopsDisconnected="$DD";0;$TD"



exit(0)

}

else


{

Write-Host "Unable to fetch the Get-BrokerDesktopGroup, please contact Chethan or Babu"



exit(2)

}


No comments:

Post a Comment