Question Locked

Terminal Services Client (mstsc.exe)

0 helpful
9 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

We have an application that starts a terminal services session by running the command:

mstsc "%r" /console

My question is how can I utilise "local devices" eg. local disks, using this command line?

I can do it from the gui that mstsc brings up if you run it without parameters, but just not from the command line.

Thanks.

Edit: Following on from some links from seanferd:

I've found that the app I'm using generates the RDP connection file. This link explains the file http://support.microsoft.com/kb/885187 . I am unable to amend this file as it is generated "on the fly".

Settings for screen width and height can be overwritten by using the /w and /h switches. In this connection file, the parameter "redirectdrives" is set to 0 (do not redirect drives), is there a way to override this setting in a similar way to screen width and height?

9 replies

by bizzo

Not quite what I'm after though, but gave me some ideas.

After doing some further digging, I've found that the app I'm using generates the RDP connection file. This link explains the file http://support.microsoft.com/kb/885187 . I am unable to amend this file as it is generated "on the fly".

Settings for screen width and height can be overwritten by using the /w and /h switches. In this connection file, the parameter "redirectdrives" is set to 0 (do not redirect drives), is there a way to override this setting in a similar way to screen width and height?

(I'll add this to my OP)

by seanferd

that if you can't edit the rdp, you might adjust a setting or command parameter for the app?

by bizzo

But I've found a workaround if anyone's interested.

I changed the command line to:

mstsc -edit "%r" /console

This will bring up the gui to edit the connection file that's generated. If I don't want to use local drives I simply click connect. If I do want to use local resources, I go into that tab and select the ones I need.

:-)

by fujicapesta

Couldn't you preconfigure an .rdp file and launch it from the app's command line?
Example:
mstsc.exe c:\UseDrives.rdp

This discussion is closed to new replies.