Hi, I'd hoped to find a more concrete answer, but here's some info.
mstsc.exe does have command line capabilities (mstsc /?), but %ERRORLEVEL% doesn't seem to get set depending on whether a connection is made. Maybe a powershell script would allow you to read more information from mstsc's success? I did a Wireshark capture of an RDP session login & exit. The RDP protocol is understood by Wireshark, and it is apparently standardized as X.224 or also called ISO 8073. Right at the start are 'Connection Request' and 'Connection Confirm' packets. Here's Microsoft's technet document on the protocol: http://msdn.microsoft.com/en-us/library/cc240445%28v=PROT.10%29.aspx Here's the X.224 document: http://www.itu.int/rec/T-REC-X.224-199511-I/en And another link: http://www.synapse.de/ban/HTML/P_ISO/Eng/P_iso67.html I had then hoped I'd find a handy perl module to do an X.224 exchange, but there doesn't seem to be anything on CPAN. I'd try the powershell route first... Maybe you could use perl to script a establish connection/make connection request/look for a connection confirm check? Hope this helps, Ted Fines Macalester College On Wed, Jul 6, 2011 at 3:30 PM, hapowell <[email protected]> wrote: > > We are looking for how to build a probe to check Terminal Service. I know > you can check that the service is running with a WMI probe and I can check > that port 3389 is open, but this does not check that Terminal Service is > responding to a connection request. Thanks for any help you can provide. > > > -------------------- m2f -------------------- > > Read this topic online here: > http://forums.dartware.com/viewtopic.php?p=3538#3538 > > > > > > ____________________________________________________________________ > List archives: > http://www.mail-archive.com/intermapper-talk%40list.dartware.com/ > To unsubscribe: send email to: [email protected] > > ____________________________________________________________________ List archives: http://www.mail-archive.com/intermapper-talk%40list.dartware.com/ To unsubscribe: send email to: [email protected]
