Shadow session like mstsc.exe /shadow

69 views
Skip to first unread message

Stefano

unread,
Apr 9, 2021, 4:06:30 PM4/9/21
to Cassia Users

Hello,
is it possible with Cassia to do a shadow session connect like using the " Mstsc.exe /shadow:<Session ID> /v:<Computer name or IP address>" command?

I'm developed and RDP client and I'd like to add this feature.

Thank so much!

Dan Ports

unread,
Apr 9, 2021, 10:40:50 PM4/9/21
to cassia...@googlegroups.com
Hi Stefano,

Yes, you can use the ITerminalServicesSession.StartRemoteControl method for this. It's been some time since I was actively involved in RDP projects, but IIRC, this method had several limitations - e.g. it has to be called from a remote session, and it didn't support shadowing RemoteApp sessions, at least in the version of Windows I was running at the time - so YMMV. I don't think this method made it into the Cassia 2.0 release - you'd probably need to grab the 3.x alpha package from Nuget.

Dan

--
You received this message because you are subscribed to the Google Groups "Cassia Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cassia-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cassia-users/f85aebc7-7fbb-4ef3-b95e-a76687112f71n%40googlegroups.com.

Stefano Fattori

unread,
Apr 10, 2021, 4:50:47 AM4/10/21
to Cassia Users
How can I call it on a remote session? I don't understand how to use it.
When I call that method it opens local  mstsc.exe or can I show session in ActiveX control like the RDP clients?

Thanks

Dan Ports

unread,
Apr 10, 2021, 9:57:05 AM4/10/21
to cassia...@googlegroups.com
To call StartRemoteControl, your code would need to be running on the server in a session with an active remote connection; when you call it, that remote session will start shadowing the session you call this method on. It's analogous to the Remote Control command in the Remote Desktop Services Manager.

I haven't worked much with the ActiveX control so I don't know if it's possible to implement the /shadow functionality in your own RD client.

Dan

Stefano Fattori

unread,
Apr 11, 2021, 11:48:40 AM4/11/21
to cassia...@googlegroups.com

Ok thanks for the info…

I’m looking for something to do a shadow control directly by the client, like using mstsc.exe /shadow using the rdsa.exe already present on Windows host.

 

Unfortunately I can’t find anything about shadow connection with .NET rdp client (MSrdpclient10 or other version).

Probably I’m looking for something that I can’t do

 

Stefano

 

Da: Dan Ports
Inviato: sabato 10 aprile 2021 15.57
A: cassia...@googlegroups.com
Oggetto: Re: Shadow session like mstsc.exe /shadow

 

To call StartRemoteControl, your code would need to be running on the server in a session with an active remote connection; when you call it, that remote session will start shadowing the session you call this method on. It's analogous to the Remote Control command in the Remote Desktop Services Manager.

 

I haven't worked much with the ActiveX control so I don't know if it's possible to implement the /shadow functionality in your own RD client.

 

Dan

 

On Sat, Apr 10, 2021 at 4:50 AM Stefano Fattori <ste.f...@gmail.com> wrote:

How can I call it on a remote session? I don't understand how to use it.

When I call that method it opens local  mstsc.exe or can I show session in ActiveX control like the RDP clients?

Thanks

Il giorno 10 apr 2021, alle ore 04:40, Dan Ports <danp...@gmail.com> ha scritto:

Hi Stefano,

 

Yes, you can use the ITerminalServicesSession.StartRemoteControl method for this. It's been some time since I was actively involved in RDP projects, but IIRC, this method had several limitations - e.g. it has to be called from a remote session, and it didn't support shadowing RemoteApp sessions, at least in the version of Windows I was running at the time - so YMMV. I don't think this method made it into the Cassia 2.0 release - you'd probably need to grab the 3.x alpha package from Nuget.

 

Dan

 

On Fri, Apr 9, 2021 at 4:06 PM Stefano <ste.f...@gmail.com> wrote:

 

Hello,

is it possible with Cassia to do a shadow session connect like using the " Mstscexe /shadow:<Session ID> /v:<Computer name or IP address>" command?

 

I'm developed and RDP client and I'd like to add this feature.

 

Thank so much!

--
You received this message because you are subscribed to the Google Groups "Cassia Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cassia-users...@googlegroups.com

--
You received this message because you are subscribed to the Google Groups "Cassia Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cassia-users...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Cassia Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cassia-users...@googlegroups.com.

Robert Gijsen

unread,
Apr 11, 2021, 11:57:21 AM4/11/21
to cassia...@googlegroups.com
Since Server 2012R2 I always do a version check on the remote server and if 2012R2 or higher, I simply run mstsc.exe /v:<server> and the session id I receive trough Cassia. I never got shadow work through Cassia or . Net itself.

Regards, Robert

Stefano Fattori

unread,
Apr 11, 2021, 1:17:47 PM4/11/21
to cassia...@googlegroups.com
Yes, you can do that like you said but in this way you use GUI native of mtsc.exe instead I'm developing a software with it's GUI where you can manage RDP connections, and shadow if I'll do it, inside it.

Stefano
Reply all
Reply to author
Forward
0 new messages