Questions tagged [terminal-services]

Terminal Services provides the ability to host multiple, simultaneous client sessions on Windows Server 2003.

Terminal Services provides the ability to host multiple, simultaneous client sessions on Windows Server 2003. Terminal Services is capable of directly hosting compatible multi-user client desktops running on a variety of Windows-based and non Windows-based computers.

What Is Terminal Services?

283 questions
4
votes
4 answers

WTSQuerySessionInformation returning empty strings

I've written a program which should query the Terminal Services API and print out some state information about the sessions running on a terminal services box. I'm using the WTSQuerySessionInformation function to do this and it's returning some…
Benj
  • 31,668
  • 17
  • 78
  • 127
4
votes
1 answer

How to stop AngularJS tutorial web server

Following the AngularJS tutorial on docs.angularjs.org I started the simple webserver I started the web server in web-server.js just to test it, and to try Node for the first time. I used it for a bit to view a few files and directories and then I…
11684
  • 7,356
  • 12
  • 48
  • 71
3
votes
1 answer

Handle Rdp ActiveX minimize event

I've developed a simple .net form application where I've embedded the RdpClient ActiveX. To reproduce the application, you have to: 'Add Reference' and select COM include 'Microsoft Terminal Services Control Type Library' select the ToolBox,…
Jako
  • 2,489
  • 3
  • 28
  • 38
3
votes
2 answers

Developing applications expected to run over RDP; any tips?

Supposing I was developing a fairly graphically intensive application (C++ or C#, graphics API undecided) for which most of the usage will be by remote users over RDP (either terminal server sessions or remote access to a single-user machine). It's…
timday
  • 24,582
  • 12
  • 83
  • 135
3
votes
2 answers

How can I kick out the longest inactive user from a remote machine using powershell 1?

I need to find an easy way to kick off teammates from a server if they forget to log out. Our terminal service has a limit of 2 connections. I wrote the following function to get the logged in users. As I understand in powershell 2 there are nicer…
Jeno Laszlo
  • 2,023
  • 18
  • 36
3
votes
2 answers

Where to find example code for the RD Gateway API?

I am trying to write a custom authentication module for the Remote Desktop Gateway API. However there is no example code of how to use it on the MSDN. I also have been looking around on the net for any kind of tutorial for writing a custom…
Scott Chamberlain
  • 124,994
  • 33
  • 282
  • 431
3
votes
3 answers

How do I detect whether I'm installing on a Terminal Server in an InnoSetup script?

My setup should behave slightly differently when the program is installed on a Terminal Server. I know about GetSystemMetrics(SM_REMOTESESSION) but as far as I understood that will only tell me whether I'm running inside a RDP session. It would not…
Oliver Giesen
  • 9,129
  • 6
  • 46
  • 82
3
votes
2 answers

Which Interprocess Communication methods work on a Terminal Server?

In a terminal server session, some standard IPC technologies might not work like in a single user environment, because the required resources are not virtualized. For example, TCP/IP ports are not virtualized, so applications in different sessions…
mjn
  • 36,362
  • 28
  • 176
  • 378
3
votes
2 answers

Windows Service: Session Unlock Event with Fast User Switching and Terminal Services Stopped and Disabled

I am writing a C# .NET 3.5 Windows Service that needs to perform some actions whenever a user logon or unlock event occurs. I have tried registering the service by adding my event handler to Microsoft.Win32.SystemEvents.SessionSwitch: using…
3
votes
1 answer

Should I call Application.EnableVisualStyles() on terminal services?

In a terminal services/citrix environment, should I call Application.EnableVisualStyles() in my .NET 3.5 WinForms app when my program starts? Or, is it better to refrain from doing that? I am looking for the option that gives the best performance,…
Eyvind
  • 5,221
  • 5
  • 40
  • 59
3
votes
1 answer

How to check if session is being shadowed in Windows Terminal Server

Assume the following scenario: I log on terminal server with RDP (Windows Server 2012 R2 or 2016) Another user connects to my session with "mstsc.exe /shadow" command. I get the message to confirm this access, and I agree. Then, after…
macmac
  • 119
  • 8
3
votes
0 answers

How to get the default redirected printer

I do remote connection in a terminal server. Include printer as my local resources. Then at Device Settings, I set the default as the redirected printer. Dim pr As Printer MsgBox Printer.DeviceName '- return the default printer which I believe…
Joshua
  • 41
  • 3
3
votes
1 answer

Powershell and a C# Connection Broker

We have a problem using a C# script to configure the connection broker with the Powershell. When we import the module remotedesktopservices, because the session host role was installed and used before, then install the connection broker role, we…
annA
  • 31
  • 2
3
votes
4 answers

Creating a Remote Desktop Client Application without using Windows Forms (C#)

I need to build a Remote Desktop Client application with C#, which establishes a connection to a remote Windows Server, and then programmatically starts some services to the remote PC. It's important that, when I logon, the Desktop Environment on…
crankedrelic
  • 463
  • 1
  • 5
  • 14
3
votes
4 answers

Single Remote Desktop session in Server 2003

I have a headless server running Windows Server 2003, and administer it via VNC. It is set to auto login to a specific user account. I want to change to using Remote Desktop/Terminal Services. However, when I log in remotely a new user session is…
NoizWaves
  • 2,650
  • 6
  • 28
  • 32
1 2
3
18 19