Using
VB.NET I have issues initiating remote control from our 2003
standard sp2 x86 servers (don't know about other 2003 versions as we
don't run them anymore). We have a few 2003 servers left and found
that cassia does nothing at all when trying to remote a session from a
2003 server. Doesn't matter if the session resides either on a 2003,
2008 or 2008R2 server. It doesn't throw an error or exception either,
it just does nothing and the program just continues running. I wrote a
little test-code:
Dim TSServer As ITerminalServer
Dim sessions
Dim response
Dim TSManager As New TerminalServicesManager()
TSServer = TSManager.GetRemoteServer("2003TESTBOX")
TSServer.Open()
sessions = TSServer.GetSessions
For Each Session As ITerminalServicesSession In sessions
If Session.UserName.ToUpper = "ROBERTTEST" Then
response = MsgBox(Session.UserName & " " &
Session.SessionId, vbYesNo)
Select Case response
Case vbYes
Label1.Text = Session.UserName
Label2.Text = Session.SessionId
Session.StartRemoteControl(ConsoleKey.Tab,
RemoteControlHotkeyModifiers.Control)
Case vbNo
MsgBox("no remote")
End Select
End If
Next
As you can see this connects to 2003TESTBOX and looks for the
ROBERTTEST user. If found it shows a box with username and sessionID
just as a check and clicking yes should start the remote. This works
fine when running from 2008 or 2008R2 but as said running from 2003
doesn't do anything at all.
I am missing the catch here I guess.. Any help?
Regards,
Robert