Returns general information about how Terminal Services has been configured on a computer.

This script was tested using Object REXX 2.1.0 for Microsoft Windows, available from IBM.

Object REXX
Edit|Remove
strComputer = "."
objWMIService = .OLEObject~GetObject("winmgmts:\\"||strComputer||"\root\CIMV2")
do objItem over objWMIService~ExecQuery("Select * from Win32_TSGeneralSetting")
    say "Caption:" objItem~Caption
    say "Comment:" objItem~Comment
    say "Description:" objItem~Description
    say "Min Encryption Level:" objItem~MinEncryptionLevel
    say "Setting ID:" objItem~SettingID
    say "Terminal Name:" objItem~TerminalName
    say "Terminal Protocol:" objItem~TerminalProtocol
    say "Transport:" objItem~Transport
    say "Windows Authentication:" objItem~WindowsAuthentication
end