terminal-services

Isolated Named Pipes in Terminal Server Sessions

天大地大妈咪最大 提交于 2020-06-27 07:18:24
问题 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 named pipes are system wide, so that I must change the startup logic to not give focus to instances of other users (what certainly not will work but break my

Delphi 2007 : How to Set TSAWARE?

妖精的绣舞 提交于 2020-01-22 19:52:08
问题 In Delphi 2009 and up you can add this line to your project .dpr to set the TSAWARE PE flag in your application executable: {$SetPEOptFlags IMAGE_DLLCHARACTERISTICS_TERMINAL_SERVER_AWARE} I thought (wrongly) that this syntax is not supported in Delphi 2007. I have an application that I cannot port from 2007 to a newer Delphi version just yet (the task is underway, but it will not be done in the next few months). Update it was simply that Windows must be added to the project .dpr also. 回答1: My

Delphi 2007 : How to Set TSAWARE?

痞子三分冷 提交于 2020-01-22 19:52:07
问题 In Delphi 2009 and up you can add this line to your project .dpr to set the TSAWARE PE flag in your application executable: {$SetPEOptFlags IMAGE_DLLCHARACTERISTICS_TERMINAL_SERVER_AWARE} I thought (wrongly) that this syntax is not supported in Delphi 2007. I have an application that I cannot port from 2007 to a newer Delphi version just yet (the task is underway, but it will not be done in the next few months). Update it was simply that Windows must be added to the project .dpr also. 回答1: My

On Terminal Server, how does a service start a process in a user's session?

旧街凉风 提交于 2020-01-16 05:14:29
问题 From a Windows Service running on a Terminal Server (in global space), we would like to be able to start up a process running a windows application in a specific user's Terminal Server sessions. How does one go about doing this? The Scenerio: the windows service starts at boot time. After the user has logged into a Terminal Server user session, based on some criteria known only to the windows service, the windows service wants to start a process in the user's session running a windows

How can I query teminal services activity remotely?

六月ゝ 毕业季﹏ 提交于 2020-01-06 05:41:10
问题 I want to query our servers to see look for disconnected/idle sessions. I know I can use 'query.exe', but I'd prefer something that's easier to work with from code. WMI would be my preference. Thanks. 回答1: If you are using a .NET language, you might try Cassia. In C#, the code would be: using System; using Cassia; namespace CassiaSample { public static class Program { public static void Main(string[] args) { ITerminalServicesManager manager = new TerminalServicesManager(); using

How can I query teminal services activity remotely?

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-06 05:41:05
问题 I want to query our servers to see look for disconnected/idle sessions. I know I can use 'query.exe', but I'd prefer something that's easier to work with from code. WMI would be my preference. Thanks. 回答1: If you are using a .NET language, you might try Cassia. In C#, the code would be: using System; using Cassia; namespace CassiaSample { public static class Program { public static void Main(string[] args) { ITerminalServicesManager manager = new TerminalServicesManager(); using

How to stop initial form maximising when run as startup RDP program?

杀马特。学长 韩版系。学妹 提交于 2020-01-04 06:32:15
问题 The startup form in my VB6 app is behaving strangely when started in a Terminal Services (Remote Desktop) session, with both the host and client being XP Pro machines. The form is meant to be centered but it actually maximises and its content goes to the top left and it looks very strange. Note, this only happens when the app path is used for the "Start the following program on connection" field under the Program tab in the RDP client. Apparently there is a solution if you are running Server

Add logon program for TSclients in environment tab user adsi in Powershell

一世执手 提交于 2019-12-30 12:21:26
问题 Hi I'm tring to set a logon program parameter for remote clients that will be created using a powershell script. As shown below I managed to get a logon script to set in the profile tab using $objUser.PSBase.InvokeSet('LoginScript', "logoff.cmd") As seed in this thread here The problem is I can't find the attribes in ADSIedit also some attrribes that I use and work aren't shown in ADSIedit such as PasswordExpired which leads me to believe the attribute does exsist. Below is my code

Add logon program for TSclients in environment tab user adsi in Powershell

旧时模样 提交于 2019-12-30 12:21:02
问题 Hi I'm tring to set a logon program parameter for remote clients that will be created using a powershell script. As shown below I managed to get a logon script to set in the profile tab using $objUser.PSBase.InvokeSet('LoginScript', "logoff.cmd") As seed in this thread here The problem is I can't find the attribes in ADSIedit also some attrribes that I use and work aren't shown in ADSIedit such as PasswordExpired which leads me to believe the attribute does exsist. Below is my code

What does an application have to do in order “support” Remote Desktop Services?

别等时光非礼了梦想. 提交于 2019-12-29 10:59:46
问题 I have a Delphi program that needs to be run via Remote Desktop Services. What should I look out for that would stop it running properly ? 回答1: In addition to the answers above, see also my answer to this question: Does anyone know about issues between Citrix and Delphi 2007 applications? (And perhaps other development languages?) EDIT: On my blog I have a caterogy for Application Compatibility issues, they are real life stories of applications that behave badly on RDS/Citrix. Might be useful