terminalservices

How can I get/set default printers on a per-user basis in Terminal Services with C#?

I want to be able to get and set the default printer for users within Windows Terminal Services, but I don't see any relevant functions. (The closest I've seen is RDS User Config, but it doesn't appear to do what I need.) It can be done by name or by ID (however necessary). For example, something like this pseudocode: For each user, u: ...

Problem deploying VSTO add-in in 64 bit Windows Server 2003 Terminal Server environment

Hi, We are having a problem deploying a VSTO 2005 Second Edition Add-In and would appreciate any help with this. We previously successfully deployed this add-in onto a 32bit Windows 2003 terminal service environment. By default VSTO installs on a per-user basis. But we got around this limitation by creating a custom CASPOL script which...

Correct Detecting of the Terminal Services

I've been trying to detect whether or no the Terminal Services are running. I tried to use MSDN Way: OSVERSIONINFOEX osVersionInfo; DWORDLONG dwlConditionMask = 0; memset( &osVersionInfo, 0, sizeof( osVersionInfo ) ); osVersionInfo.dwOSVersionInfoSize = sizeof( osVersionInfo ); osVersionInfo.wSuiteMask = VER_SUITE_TERMINAL; VER_SET_CO...

Isolated Named Pipes in Terminal Server Sessions

If my application starts, I check first if there is already an instance of the app and if yes, I give focus to the running instance and terminate the newly created process. I make this with a named pipe that is registered through WCF. That works fine so far. Now my app will also be used in a terminal server environment. Is it right that...

Identify Terminal on WTS from Web Server/Javascript

I have a web server that shows an application that in turn manages some networked devices. Previously, the application was used by "fat clients", and it was trivial to associate a fat client with the device - by means of the fat clients' IP address. Now, in a Terminal Server environment with "real" thin clients (Wyse Terminals, e.g.) sh...

ClickOnce deployment for Terminal Service Recieving COM Error

I've deployed a desktop application utilizing 3rd party dll's to a test terminal server in order to report its viablity. In my testing I've received this error: An unhandled exception of type 'System.IO.FileNotFoundException' occurred in General Purpose.dll Additional information: Creating an instance of the COM component with CLSID {8...

How can we overwrite EXE files while users are running them?

Background: Our companies internal user's run our .Net programs on 10-20 windows terminal servers. The executables are all stored on a central file server running windows 2003. Some of the terminal servers are running windows 2003 and some are running 2008. Issues: When we release a new version of one of our programs we renamed the ...

How to detect, from browser, if user is running in Remote Desktop session?

Is there a ways to check inside a browser (e.g. javascript) if the user is running inside a Remote Desktop session? If the user is running their browser inside a Remote Desktop (i.e. Terminal Services), i want to disable animations on the web-site. If this were a native application, as opposed to a web-site, i could perform this che...

C# asp.net Disconnecting users terminal service session via loacl intranet

I have written code that uses a .bat file (code: rwvinstat /server:servername) that populates a DataGrid of users logged in to a terminal service session in c#. The .bat lives on the server with the app. files and will run properly if executed manually on the server .Also if i run the app. locally and call the .bat file on the server it...

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? ...

how to open a user's clipboard from session 0

i need to perform this operation for a user in a session from a service running in session 0: 1. RegisterClipboardFormat 2. IsClipboardFormatAvailable ...

How to determine whether gina.dll is loaded inside a remote desktop session?

I am developing a custom version of a gina.dll for Windows XP, it has to behave differently when someone attempts to log on via RDP. The problem is in figuring out whether I am inside an RDP session or not. After researching this matter and reviewing various discussions, I established that the following approaches do not work: Check ...

Terminal service regional setting

Hi, Is it possible for the terminal service to automatically change its own regional settings based from the settings of user who instantiate the remote connection ? For example, a TS setup is in French(Switzerland), then I'm on English(US), if I start a remote session the TS will automatically inherit my regional settings. ...