VBA (Office) - MSTSCLib - Remote Desktop Services aka Terminal Services on Server 2008

gerneio

New Member
Joined
Mar 25, 2016
Messages
1
I need to code an application through Microsoft's Office VBA, most likely through excel. The purpose of the code will be to loop through all current terminal/remote desktop sessions on a windows 2008 server, find a specific session, and then connect to it via Remote Control (therefore not only is it viewing the session but it can also interact with it). Essentially I need to mimic the manual process of opening up Task Manager (or TSADMIN), right clicking a session/user, and clicking remote control. The application will be run from one of these active sessions.
The reason I am using VBA via Office is because it is the only option I have at the moment. There is a library called 'Microsoft Terminal Services Control Type Library' which seems like the best bet, but I have absolutely no idea how to implement it. I can't find any specific examples for this particular library online (or at least my searches were empty). I really need help with either searching for solutions for my particular need, or coming up with any other alternative routes that are plausible with VBA.
 

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top