Convert-xRDS_TSProtocol.ps1
function Convert-xRDS_TSProtocol ([Parameter(Mandatory=$true)][int]$ObjectId) { # Convert user's session TSProtocol into user friendly name [string]$OutInfo = $null; switch ($ObjectId) { 0 {$OutInfo = "Console"} 1 {$OutInfo = "Third-Party"} 2 {$OutInfo = "RDP"} default {$OutInfo = "Unknown"} } return $OutInfo } |