add-pssnapin Citrix.Broker.Admin.* -ErrorAction SilentlyContinue
clear
$DBG = Get-BrokerDesktopGroup | where {$_.Name -eq "IT" -and $_.Enabled -eq "True"}
#[Uint16] $TD
#[Uint16] $DIU
$TD = $DBG.TotalDesktops
$DIU = $DBG.DesktopsInUse
If ($TD -and $DIU -ne "null")
{
Write-Host "Desktop in Use:"$DIU"|DesktopsInUse="$DIU";0;$TD"
exit(0)
}
else
{
Write-Host "Unable to fetch the Get-BrokerDesktopGroup, please contact Chethan or Babu"
exit(2)
}
clear
$DBG = Get-BrokerDesktopGroup | where {$_.Name -eq "IT" -and $_.Enabled -eq "True"}
#[Uint16] $TD
#[Uint16] $DIU
$TD = $DBG.TotalDesktops
$DIU = $DBG.DesktopsInUse
If ($TD -and $DIU -ne "null")
{
Write-Host "Desktop in Use:"$DIU"|DesktopsInUse="$DIU";0;$TD"
exit(0)
}
else
{
Write-Host "Unable to fetch the Get-BrokerDesktopGroup, please contact Chethan or Babu"
exit(2)
}