Questions tagged [mstsc]

Creates connections to terminal servers or other remote computers, edits an existing Remote Desktop Connection (.rdp) configuration file, and migrates Windows XP connections (connections created with Client Connection Manager) to new .rdp files.

Microsoft Terminal Services Client (mstsc) allows a user to remotely log into a networked computer running the terminal services server.

Applies To:

  1. Windows 8

  2. Windows Server 2008

  3. Windows Server 2008 R2

  4. Windows Server 2012

  5. Windows Vista

Read more

117 questions
0
votes
2 answers

c# while loop usage

I have a fairly general c# while loop question. This code should continue to execute only after the RDP session has truly disconnected. When the Connected property is changed to 0 it means that the RDP session connection has truly terminated. When…
IanK.CO
  • 563
  • 5
  • 13
0
votes
1 answer

Trouble getting remote RDP script to work

I am writing a script to launch MSTSC from a grid of buttons. These buttons will each open up a different server connection. I have a separate button that gets and stores admin creds, that I borrowed from another script. When clicked, the button…
Ben
  • 21
  • 7
0
votes
1 answer

How to connect to a remote desktop in 'span' mode

I am looking for some documentation or some code example to connect to a remote desktop using C# MSTSCLib and AxMSTSCLib while displaying the created window in 'span' mode when using multiple screens. I would like to get the equivalent of the…
0
votes
1 answer

Trouble with sending input via RDP by all known ways

I write a little client using WinForms, C#, AxMsTscNotSafeForScripting tool, and I need to send Win+R on the VM(yes, I know, there's a way to launch app remotely without RunDialog, but I need to). I quickly found nice lib named InputSimulator, it…
Amateur
  • 21
  • 1
0
votes
1 answer

Trying to do mstsc remotely using powershell doesn't work

I have two server as X and Y. I have a powershell script that I am using for having a remote desktop of X on Y. The powershell script that I have to run on Y is -- $hostname = 'X' $User = 'u-name' $Password = 'password' $ProcessInfo =…
Ankita13
  • 469
  • 2
  • 7
  • 21
0
votes
2 answers

Remote Desktop Web client

I have few Cloud based Windows box connected with internet and I wanted to access the same from my office network. The problem here is, my office doesn't allow direct RDP to any internet connected pc as we normally access all sites using proxy. Is…
baluchen
  • 749
  • 3
  • 11
  • 18
0
votes
0 answers

Check if the user and the password of a remote desktop are correct using c#

Please I need help about how I can check if the user and the password are correct when login in a remote desktop. I have already write this code to connect but what I really need it's just check if the login is correct. This is my method: I'm Using…
Khalid.sgh
  • 33
  • 2
  • 7
0
votes
0 answers

How to configure the mstsc span option in the RDP file

It is possible to fill the screen with an RDP session using the following command: mstsc myconnection.rdp /span Is there an option in the GUI settings dialog of the RDP file to have the span effect? I don't always want to type the command 7 run a…
capfan
  • 817
  • 10
  • 26
0
votes
2 answers

Get remote logged on users and issue command when found using PowerShell

I am looking to build a PowerShell script that will see if a local user account is logged in on a remote machine. If so, it will pull up a message saying the user is logged in. If the user is not logged in, it would open mstsc so a user can log…
Bergie
  • 11
  • 1
  • 3
0
votes
1 answer

MSTSCLib.DLL BadImageFormatException, RDP control not working on 32bit OS

In my application (vs 2012) I'm using Microsoft RDP Client Control (COM) to connect remotely to a machine. It's working all well unless I run my exe on a 32bit OS, then BadImageFormatException is thrown! Error log: Could not load file or…
Saleem
  • 709
  • 2
  • 13
  • 34
0
votes
1 answer

how to get name of the machine which is connected to remote machine using Python

I have 2 remote machines which can be accessed by a group of machines connected through LAN. If a machine is connects to that remote machine using mstsc, how can we get the name of machine that is connected? Is there any python package to get this…
Mohan Raj
  • 21
  • 9
0
votes
2 answers

Execute RDP connection on multiple server

We have thousand of Windows server in our network. For some kind of work we need to log in on 100+ servers. We are doing it manually. Entering server name and giving credentials. Is it possible to create a batch file/script so, this work can be…
Roxx
  • 3,738
  • 20
  • 92
  • 155
0
votes
1 answer

C# WPF RDP ax control from MSTSCLib for Hyper-V problems

Currently occupied making a little RDP client in WPF C# for VM's hosted by Hyper-V. This client should have no management at all so solely connect to it, and be able to use the machine. So no options of stopping/starting/etc the VM. Control using:…
BeehDeeh
  • 15
  • 5
0
votes
3 answers

Run mstsc.exe with powershell

What I am looking to do seems fairly simple but I cant figure it out. I am looking to run a Powershell script to launch an RDP session, copy a file to the c:\ directory, then run that file from a command line. I would like it to loop, getting the…
user1462832
  • 11
  • 3
  • 6
0
votes
2 answers

Powershell RDP Session and CLI Script

What I am looking to do seems fairly simple but I cant figure it out. I am looking to run a Powershell script to launch an RDP session, copy a file to the c:\ directory, then run that file from a command line. I would like it to loop, getting the…
user1462832
  • 11
  • 3
  • 6