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
1
vote
2 answers

What API will allow me to detect and end the session of someone using "mstsc /console"?

I'm having a very difficult time listing and closing the sessions of folks using Mstsc /admin. Does anyone know the API to use if the server is a normal server and not a terminal server per-se?
makerofthings7
  • 60,103
  • 53
  • 215
  • 448
1
vote
2 answers

How to force MSTSC.exe to use the supplied password?

I would like to automate the login to a terminal server using Remote Desktop. In the past you could create an RDP file and open it to launch a connection. However, with the changes in security the password in the RDP file is now ignored and the…
1
vote
2 answers

Auto apply local scale to non-fullscreen desktop connections (RDP version 8.1 and higher)

Since Remote Desktop Protocol version 8.1 default Windows' Remote Desktop Connection can apply current system scale to the remote machine, e.g. if you're working with 2x scale, you'll see remote machine desktop with the same scale applied (if…
teapot_of_wine
  • 516
  • 3
  • 18
1
vote
1 answer

Give path as argument for mstsc.exe

I want to create a remote desktop connection with C#. I found this question Run mstsc.exe with specified username and password. At the moment I can create a new connection with username and password, but I want to change the path where the .rdp…
MyName
  • 11
  • 1
1
vote
2 answers

Remote Desktop Username@IP vs. IP@Username Randomness

Does anyone else find that when they open a saved connection in Remote Desktop it sometimes sets up the login as Username@IpAddress and other times (seemingly at random) sets it up as IpAddress@Username? Does anyone know what the logic is behind the…
Michael
  • 1,133
  • 3
  • 15
  • 30
1
vote
2 answers

AxMsRdpClient9 Dismiss login dialog

I am writing rdp client using c#. Simple example: AxMsRdpClient9NotSafeForScripting c = new AxMsRdpClient9NotSafeForScripting(); Form1.Controls.Add(c); c.Server = s.ip; c.UserName = s.pass; …
DavyJohnes
  • 311
  • 1
  • 3
  • 12
1
vote
1 answer

MSTSC.EXE /admin flag and Self Accept Certificate

We are using MSTSCLib_TLB.pas in Delphi imported from C:\Windows\system32\mstscax.dll (Microsoft Terminal Services Control Type Library) for to connect our customers via this RDP Activex . DLL file version is 6.1.7601.18079. We are using in our…
AhmetSinav
  • 55
  • 1
  • 2
  • 9
1
vote
0 answers

Batch file logs into remote desktop, but stops at interactive logon message

I've got this script in a batch file: cmdkey /generic:"servername" /user:"user id" /pass:"password" mstsc /v:"servername" ...which logs me into a remote server (remote desktop session). It works great, but doesn't actually log me in all of the way…
user3108489
  • 363
  • 1
  • 4
  • 15
1
vote
1 answer

how to close remote desktop window using python

I want to automate closing the remote desktop application using python. I open the remote desktop using mstsc. When I do os.system("TASKKILL /F /IM mstsc.exe") It is killing all the remote desktop applications that are open. Is there a way I can…
user2927392
  • 249
  • 3
  • 11
1
vote
0 answers

how do i write a batch file to rdp into a server through a batch script

how do i write a batch file to rdp into a server through a batch script. i started mstsc through script but there was a problem in clicking on buttons in window pop-ups.what i did was included a vbs script in my batch scipt(using arrow keys and…
1
vote
1 answer

Encrypt RDP password with Java

I've already tried the another solutions from SO, such as: String password ="pwd"; WinCrypt.DATA_BLOB pDataIn = new WinCrypt.DATA_BLOB(password.getBytes(Charset.forName("UTF-16LE"))); WinCrypt.DATA_BLOB pDataEncrypted = new…
artem
  • 16,382
  • 34
  • 113
  • 189
1
vote
1 answer

How VNC Disconnects the already connected RDP Session

While using VNC combined with RDP, I have noticed a behaviour which VNC do, that is when you have connected to a machine using RDP (mstsc), and then you want to connect to that machine using VNC, it will disconnects the RDP session, and you will see…
Muhammad Ummar Iqbal
1
vote
2 answers

Java - Connect to RDP server in Windows

I am trying to automate some authentication where I connect via RDP, and authenticate with a particular server, using credentials taken from a PROPERTIES file. On windows, the built in RDP client is mstsc.exe, but it doesnt seem like you can supply…
eoinzy
  • 2,152
  • 4
  • 36
  • 67
0
votes
2 answers

Find physical computer user name from within MSTSC

So here's the dealio. I would like to create a simple batch file that'll create a log of each user that remotes in to a server. I know I can use echo %username% > lastuser.log but we all use the same username to log in to the server. I was…
Jared
  • 878
  • 3
  • 11
  • 19
0
votes
0 answers

Take a bitmap of the rdp server screen with C#

I connect to the rdp server with this code axMsRdpClient8NotSafeForScripting1.Server = "161.4.11.26"; axMsRdpClient8NotSafeForScripting1.AdvancedSettings8.RDPPort = 3389; axMsRdpClient8NotSafeForScripting1.UserName = "Administratоr"; …