A very basic 'proof of concept':
Dim TSManager As New TerminalServicesManager()
Dim TSServer As ITerminalServer
Dim TSSession As ITerminalServicesSession
Dim numberofsessions as integer
TSServer = TSManager.GetRemoteServer(<TSservername which you
don't have access to>)
TSServer.Open()
NumberOfSessions=TSServer.getsessions.count
This would create an exception in the last line. That's not a problem
as that user is actually not allowed to enumerate that info. But how
do I catch that error from VB? It doesn't generate an error in err.
Any help is appreciated.
--
You received this message because you are subscribed to the Google Groups "Cassia Users" group.
To post to this group, send email to cassia...@googlegroups.com.
To unsubscribe from this group, send email to cassia-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cassia-users?hl=en.
On Dec 2, 3:46 pm, Dan Ports <danpo...@gmail.com> wrote:
> Robert,
>
> Are you using the legacy On Error statement in VB.NET? If so, try using a
> Try/Catch block instead. The exception thrown by Cassia will be of type
> Win32Exception.
>
> Dan
>