terminalservices

Microsoft Terminal Services

I am doing MsRdpClient.MsRdpClientShell.Launch(), it is opening the remote app in a new shell(window), I want it to open in my form or MDI form...?? Thanks in advance.!! ...

Generating RDP file on the fly

I want to create a web application similar to TS Web Access, where I can create rdp files on the fly for Remote Apps configured on the server. Any idea?? ...

Terminal Services commands available in a .NET namespace?

Are there .NET equivalent commands to terminal services commands 'QWINSTA', 'RWINSTA', AND 'TSDISCON'? Thanks ...

Printing an Access report and decimal place weirdness

My client has an Access (2000) application that we didn't write and we don't have access to the MDB (it's an MDE). One of the functions is to create a packing slip report. There's no option to preview, only print or save to file. There's a field that represents a weight; it's a Double field. On a standalone machine, it prints correctly...

Windows Server 2008 standard edition Terminal Services

I need to set up terminal services on a 2008 standard edition SBS server, for 5 users to simply login and run a legacy client. If I get 5 TS Cals will this be possible? Thanks in advance. Paul ...

Managing terminal users through System.DirectoryServices

I have a environment where I need to frequently change the parameters to a program that is launched when a user logs in to the terminal server. As of right now we open the computer management snap-in and edit the environment tab for the user and change the parameters by hand under "Start the following program at logon:". I would like to ...

Strange crash with WTSOpenServer on Windows 7 (Only in Delphi 2009/2010)

I am troubleshooting a problem with existing code that always worked fine (it's the Terminal Server unit from the Jedi Windows Security Library). After some investigation the problem part has been brought down to a call to WTSOpenServer: while true do begin hServer := WTSOpenServer(PChar('server')); WTSCloseServer(hServe...

Intrasession Communication with .NET Remoting

I have an application that needs to be called upon by a second application. These applications need to find each other without configuration (preferably without touching the registry) and function in a terminal services environment properly. I have heard that .net remoting using named pipes may be a way to accomplish this but I do not ...

Terminal Server : shadow a session using AxMSTCLib

Hi, I'm trying to "shadow" a session within a session opened through AxMSTCLib (using c# app), but I get ejected. Is this normal with TS2008 ? If so, as anyone ressource explaining how to open a shawod rdp session using managed code ? Regards, Stéphane ...

.NET Framework - Per Application Overhead

Does anybody have any concrete information on the overhead of using the .NET Framework 2.0/3.0/3.5? I am mostly interested in per-instance overhead and whether there is a "fixed cost" regardless of the number of instances, e.g. in a Terminal Services environment with 300 instances of a .NET Framework application running is there only 1 ...

Technique to limit number of instances of our application under Terminal Server

I'm looking for simple ways to monitor and limit the number of instances of our application under Terminal Server (2003 and 2008). The purpose of this restriction is to make sure we don't overload our servers. This is an internal administrative requirement - I am not looking for a licensing solution. The application in question is writ...

Detect source of remote desktop connection

This question tells me how to detect a remote desktop session. Do anybody know if it's possible to find out from where the remote connection was initialized? -Vegar ...

Printer Redirection from 2003 Terminal Server to 2008 Terminal Server

Our environment is a terminal server cluster (Win2003 servers) that everyone connects to do do their work. I have set up a new Win2008 R2 machine with the intention of using it to publish our main application to the TS farm. The idea was to keep this server dedicated to one application to avoid driver/dll conflicts with other software....

PCI compliance: using SSL as transport layer for RDP (Terminal Service)

My client failed her PCI compliance audit. The server supports Remote Desktop (Terminal Service) but only provides encryption and not authentication. This exposes the server to Man-In-The-Middle attacks. The supposed solution is to force SSL as the transport layer for RDP. Anyone know how to do this? The server runs Windows 2003. ...

Iterating arrays in a batch file

I am writing a batch file (I asked a question on SU) to iterate over terminal servers searching for a specific user. So, I got the basic start of what I'm trying to do. Enter a user name Iterate terminal servers Display servers where user is found (they can be found on multiple servers now and again depending on how the connection is l...

Flow control in a batch file

Reference Iterating arrays in a batch file I have the following: for /f "tokens=1" %%Q in ('query termserver') do ( if not ERRORLEVEL ( echo Checking %%Q for /f "tokens=1" %%U in ('query user %UserID% /server:%%Q') do (echo %%Q) ) ) When running query termserver from the command line, the first two lines are: ...

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 data but most of the data seems to be missing... Does anyone know why? Here's my program: v...

How to rdc to a particular machine that is member of a TS Farm?

I created a Terminal Services farm comprising of 3 TS hosts (say, TS1, TS2 and TS3) running Windows 2008 R2 Enterprise, a TS Connection broker and a TS Gateway for the purpose of hosting a windows application as a TS RemoteApp. The setup works just fine. Now, I want to do some further configuration changes on a particular TS host, say TS...

Why do ASP.NET applications appear to be running in a terminal server session?

Running the following ASPX page (IIS 6, Server 2003 R2) <%@ Page Language="vb" AutoEventWireup="false" %> <% Response.Write("Am I running in a terminal server session: " & _ System.Windows.Forms.SystemInformation.TerminalServerSession) %> yields the following output: Am I running in a terminal server session: True Why?...

Programming .NET apps for Citrix/Terminal server: Compliance and Pitfalls

We are a bit lost here. We need to make our app installable on a network with +80 Citrix servers. Although our app is 100% valid and working .NET, we've experienced some (for us weird) behavior: You cannot use any "Documents and settings" folders for storing data or settings. Apparently these folders are virtualized and are located in ...