terminal-services

Javascript: why is our website extremely slow in a Terminal Services session?

血红的双手。 提交于 2019-12-12 12:24:57
问题 We created a website that relies heavily on Javascript and has quite a lot of DOM-elements. In all browsers, even IE7 and IE8, this works fine. The user experience is a bit faster and more responsive in IE9, Chrome and Firefox, but even our clients that use IE7 don't complain. BUT... clients that use a remote desktop complain that our website is much too slow, even when using IE9 on Windows 2008 Server (64-bit). Some pages that normally take only 1 second to load, now take up to 30 seconds!

Iterating arrays in a batch file

自作多情 提交于 2019-12-12 01:33:58
问题 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 lost) Display a menu of options Iterating terminal servers I have: for /f "tokens=1" %%Q in ('query termserver') do (set __TermServers.%%Q) Now, I am getting the

check if app is running already under current user

半腔热情 提交于 2019-12-11 18:03:35
问题 In a terminal server situation I want to make sure only 1 instance of the application runs for each user. What is the best way to do this? Here is what i'm currently using but it seems like it isn't working as intended. I can't be 100% on that. int SID = Process.GetCurrentProcess().SessionId; Process current_process = Process.GetCurrentProcess(); int proc_count = 0; foreach (Process p in Process.GetProcessesByName(current_process.ProcessName)) { proc_count++; if (p.SessionId.Equals(SID)) { if

How can I get the IP of a client device connected through terminal services?

戏子无情 提交于 2019-12-11 10:14:39
问题 Problem I need to get the client IP of a user connected through RDP/TS from an ASP site. Sample data The server hosting the site is at 10.1.0.1. The user's machine is connected to a terminal server whose IP is 10.2.0.1. The user is at a physical client whose IP is 10.3.0.1. Attempted solutions I have tried pulling the data from headers. Request.ServerVariables["REMOTE_HOST"] 10.2.0.1 Request.ServerVariables["HTTP_X_FORWARDED_FOR"] [blank] Request.ServerVariables["REMOTE_ADDR"] 10.2.0.1

Script works in powershell but not c#

♀尐吖头ヾ 提交于 2019-12-11 05:58:59
问题 This script works when running in PowerShell ISE (it sets the given user's Remote Desktop Services Profile settings in Active Directory): Get-ADUser FirstName.LastName | ForEach-Object { $User = [ADSI]"LDAP://$($_.DistinguishedName)" $User.psbase.invokeset("TerminalServicesProfilePath","\\Server\Share\HomeDir\Profile") $User.psbase.invokeset("TerminalServicesHomeDrive","H:") $User.psbase.invokeset("TerminalServicesHomeDirectory","\\Server\Share\HomeDir") $User.setinfo() } But when I try

How can you get the terminal service client machine name from javascript?

回眸只為那壹抹淺笑 提交于 2019-12-11 05:58:17
问题 Is it possible to get the machine name, or IP, or MAC address (basically client network information) from javascript running Internet Explorer? I found the following code that seems to accomplish this: function Button1_onclick() { var locator = new ActiveXObject("WbemScripting.SWbemLocator"); var service = locator.ConnectServer("."); var properties = service.ExecQuery("SELECT * FROM Win32_NetworkAdapterConfiguration"); var e = new Enumerator (properties); document.write("<table border=1>");

(How) Can Terminal Services / Remote Desktop be used to share an Access Database?

大憨熊 提交于 2019-12-11 03:50:01
问题 The only type of 'remote desktop' application I've used previously is VNC viewer. My understanding of this kind of application is that when multiple users log in to the same VNC server, they share the keyboard, mouse and desktop, so only one person can actually use the computer, whilst the other users can watch what is happening. This obviously has its own uses. What I want to do is have an MS Access application available on a remote server. I want 2 or 3 users to be able to simultaneously

How to use terminal services programmatically

跟風遠走 提交于 2019-12-09 23:50:43
问题 I want to access remote server using my program (C# .NET) and execute there a program in the context of connected user, just like using Remote Desktop. I don't want just run a program using some user account(like RunAs), but to have a separate execution session like Remote Desktop I guess terminal services should be used somehow, but I don't know exactly. Any help would be appreciated. 回答1: You should check out this open source project: http://www.codeplex.com/Terminals It uses Terminal

Generating RDP file on the fly

谁说我不能喝 提交于 2019-12-09 18:03:36
问题 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?? 回答1: We had to do this exact thing. private void InvokeRDPSign(String fileName, String certificateThumbPrint) { Process signingProcess = new Process(); signingProcess.StartInfo.FileName = @"rdpsign.exe"; String arguments = String.Format("/sha1 {0} {1}", certificateThumbPrint, fileName); signingProcess.StartInfo.Arguments = arguments;

Get UserToken from Logon ID (LUID) (C++)

有些话、适合烂在心里 提交于 2019-12-08 06:53:08
问题 I'm trying to understand better how Windows sessions work, so if I have some weird mistakes in the question, please, let me know. I use LsaEnumerateLogonSessions() to get all the logged on sessions in the system. Now I have LUID that represents a log-on, and if I understand correctly, it represents a user that logged on or a build it user like SYSTEM. Now, if user X starts a process, Windows gives that process a token that represents X. Is there a way (in a Windows service) to get the user's