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
1 answer

Start MSTSC/RDP from Job only if no user is logged in remotely

I am trying to true up out systems as we have a discrepancy from AD and our inventory management tool. I need to attempt to remote to a ton of PCs (~500). I am trying to build a GUI/script that will remote to a computer if there is no user logged…
user3585839
  • 1,459
  • 3
  • 12
  • 18
0
votes
1 answer

Windows Workflow 4 freezing always at the same stage on Load Testing

I have a rather simple worflow hosted on AppFabric. I call it through a WCF endpoint using netTcpBinding, and it calls 2 WCF methods, also via netTcpBinding, hosted on the same server also on AppFabric. I can load test both of the WCF methods being…
Pascal
  • 2,944
  • 7
  • 49
  • 78
0
votes
0 answers

MSTSCLib::MsRdpClient incorrect behaviour

I'm trying to use MsRdpClient to connect to rdp server, and receive some basic notifcations. Now, i have the same issue, that people were having for about 8 years i haven't found any answer, so i raise this topic again. What i have is code like…
0
votes
1 answer

Starting MSTSC using powershell from C#

I am attempting to start an MSTSC / RDP session from C#. For various reasons I've settled on invoking Powershell to do this, partly because I know the powershell commands work, although I wouldn't be averse to attempting other methods to start the…
Phueal
  • 113
  • 5
0
votes
0 answers

RDP and run command on remote windows machine using command line

I have gone through various links on SO regarding RDP to a windows machine but still can't understand how to execute for test, ipconfig command on remote machine and gather the results in a text file. I can't get beyond Mstsc which creates the gui…
Zanam
  • 4,607
  • 13
  • 67
  • 143
0
votes
1 answer

Batch Multiple Active Remote desktop sessions

I want to see if mutliple active remote desktop sessions are running on my client PC using a batch script. When I open my Task Manager I can see a (2) behind MSTSC.exe I already used: wmic process where name="mstsc.exe" | find "mstsc.exe" /c But…
Batch man
  • 5
  • 3
0
votes
0 answers

Mstsc with auto-credentials over IE?

Currently Im trying to do an automatic logon over rdp with the Internet Explorer. Basically what I'm trying to do is opening an ActiveXObject which then calls cmdkey to store the credentials temporary var ws = new…
Dead Master
  • 110
  • 14
0
votes
0 answers

MsRdpClientNotSafeForScripting fails to connect with no indication of failure

The versions of MsRdpClient are 9, 8, 7, and in the provided code, 2. Per plenty of other posts on StackOverflow this code should connect me to my computer (RDP is enabled) and show me the log in screen. I apologize for not including more…
user7559974
0
votes
0 answers

MSTSC Return value in Powershell/ RDP Automation

I would like to know the values which are returned by invoking mstsc.exe in PowerShell. I am writing a PowerShell script to automate RDP check. However, I am unable to identify the servers for which the RDP is failing? I have tried using try-catch…
0
votes
1 answer

PSExec to execute sql scripts in SQL server of Remote machine

How to create a batch file to connect to Remote desktop and launch Microsoft Sql server and run some scripts. I tried creating a batch file to connect to using @ECHO OFF mstsc /v:"SERVERNAME" But i was not able to pass username and password Can…
useranon
  • 29,318
  • 31
  • 98
  • 146
0
votes
1 answer

Remote Desktop connection without username and password

I want to connect to a remote machine using mstsc.exe without username and password. As I want to connect it without username and password then it should get connect with lock session status. So I want something like this, User will enter IP…
Sanket Shah
  • 461
  • 2
  • 7
  • 17
0
votes
1 answer

Windows remote connection looping MSTSC

I built a program that will connect to a list of remote machines through Windows. The only issue I'm having is that after it connects to the Remote Desktop the Windows command prompt is in a "frozen state" until I disconnect from the remote. At the…
JohnnySemicolon
  • 255
  • 2
  • 8
0
votes
0 answers

Connecting mstsc using script to login and logoff the server

My goal is to login to a machine and logoff from the machine through script. I am able to connect to machine using the below command $server = "Machine" $user = "domain\myid" $Password = "password" cmdkey /generic:TERMSRV/$server /user:$user…
Chand
  • 300
  • 3
  • 13
0
votes
1 answer

Kill Certain MSTSC Process

Is there a way to kill certain instances of the mstsc process. For example, I rdp to pc1.xyz.com.au and pc2.xyz.com.au. Now from c#, I want to kill or disconnect pc1.xyz.com.au. Currently the code below kills all the instances of mstsc process. Is…
Amrit Sharma
  • 1,906
  • 8
  • 45
  • 75
0
votes
1 answer

Run mstsc.exe with specified username and password with Port Number

I got this post at run mstsc.exe but if we supply port number it is not working. Here is my code with port number change. Process rdcProcess = new Process(); rdcProcess.StartInfo.FileName =…
Pat V
  • 64
  • 4