terminal-services

TerminalServicesManager().CurrentSession.ClientName

泄露秘密 提交于 2019-12-24 20:12:18
问题 I am trying to figure out what clients are connected to my machine using remote desktop. I read about Cassia and the Cassia.TerminalServicesManager, but I can't wrap my mind around it... I thought that Cassia.TerminalServicesManager().CurrentSession.ClientName would give me a name of the client, but what if there are more? I looked at the references, but I am still confused. Can someone help me out? Thanks 回答1: It sounds like you're looking for something like this: var manager = new

WTSQuerySessionInformation() is failing on windows server 2008 R2

强颜欢笑 提交于 2019-12-24 19:25:43
问题 I have written win32 application. I'm using WTSQuerySessionInformation() function to query clientprotocoltype . it works fine but during log-off if i call this function, its getting failed with error code 2. this is happening only on windows server 2008R2 x64 VM machine. It works fine with rest OS during logoff. I've not find any relevant solution to troubleshoot this issue. Kindly help me... 回答1: In my experience, it's quite common to see WTSQuerySessionInformation return errors when you're

MSI Install on Terminal Server - getting error Custom Action Server rejected - Wrong Context

僤鯓⒐⒋嵵緔 提交于 2019-12-24 08:15:57
问题 When trying to install a software on a terminal server, we get the following error. Any help is appreciated. msi install log shows the following error: MSI (s) (1C:04) [07:27:28:750]: Executing op: ActionStart(Name=InstallODBC,Description=Installing ODBC components,) Action 7:27:28: InstallODBC. Installing ODBC components MSI (s) (1C:04) [07:27:28:750]: Executing op: ODBCInstallDriver(DriverKey=Microsoft FoxPro VFP Driver (*.dbf),Component={612B3EFA-F178-4C50-A049-B99BE6DCACE0},Folder=C:

is there online citrix testing available?

北慕城南 提交于 2019-12-23 19:35:43
问题 Is there any way to access CITRIX remotely for doing some simple QE testing, our customer has a compatibility issue with our product and we dont have CITRIX in house PS: Also VMWARE image would be an option 回答1: A VMware appliance from Citrix would be a great idea. Also, they used to have a developer version but appreciate it's not trivial to set-up. 回答2: Check out the Citrix Ready virtual lab and test kit available from http://community.citrix.com/citrixready Citrix owns the Xen hypervisor

How can i get the Client Computer name

被刻印的时光 ゝ 提交于 2019-12-22 00:43:06
问题 I am using C# Framework 4.0 Windows Form. My program is installed on a server TSE. There are 11 light clients that connect to this server. When one of these clients launches my progam, how can I get his PC name ? 回答1: Assuming you are using Terminal Services and Remote Desktop, you can check the CLIENTNAME environment variable to retrieve the client machine's name, although some people report problems with it. You can get the value with Environment.GetEnvironmentVariable, eg var clientName

How to read TermainsServices IADsTSUserEx Property from LDAP in C#?

风流意气都作罢 提交于 2019-12-19 10:24:06
问题 I have read the following properties from AD, TerminalServicesProfilePath TerminalServicesHomeDirectory TerminalServicesHomeDrive I've tried DirectoryEntry and DirectorySearcher. But they does not include the properties. I found some example in vbscript and VC to read them. However I failed to make it working in C#. Am I missing some tricky thing? EDIT: Am I have to run it on "Windows Server" to make it works? Can it be read from win XP? 回答1: I don't remember exactly, but it's something like

Delphi applications and the TSAWARE header flag [closed]

∥☆過路亽.° 提交于 2019-12-19 06:13:18
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . Could this problem also apply to Delphi applications running on Terminal Servers? As the MSDN article "An Office 2007 or Office 2003 application that is running on an RD Session Host server may close unexpectedly in Windows Server 2008 R2" explains This issue occurs because of the Tsappcmd.dll component. This

Terminal session when minimized\disconnected returns a blank screen upon capturing desktop snapshot

痞子三分冷 提交于 2019-12-18 12:18:28
问题 I am using the below JAVA code to capture the desktop of a remote machine Robot robot = new Robot(); BufferedImage screenShot = robot.createScreenCapture(new Rectangle(Toolkit.getDefaultToolkit().getScreenSize())); ByteArrayOutputStream imageBytes = new ByteArrayOutputStream(); ImageIO.write(screenShot, "PNG", imageBytes); return imageBytes.toByteArray(); However the captured image is blank, when the terminal session to the remote machine is either minimized or disconnected. I appreciate your

Runas in another Windows terminal session

我是研究僧i 提交于 2019-12-18 03:41:22
问题 For simplicity, let's say the user Administrator is logged in in terminal session 2 . Another user Boda is logged in terminal session 3 . Is it possible to runas a program in session 3 from session 2 ? For simplicity, let's say I want to start calc.exe in session 3 (in Boda's session). How do I do that? Can it be done with runas ? 回答1: Like Harry Johnston suggested in a comment you can do this using the psexec tool available on TechNet. I've tried it using a Windows 2008 Server running

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

ⅰ亾dé卋堺 提交于 2019-12-12 17:21:37
问题 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, and do not need any controls drawn with themes. 回答1: Visual styles are the colors, fonts, and other visual elements that form an operating system theme. Controls will draw with visual styles if the control and the operating system support it. To