Search the Community
Showing results for tags 'terminal server'.
I hoping some of you young people can help an old man get off the nickel... I have a small project I'd like to complete before I retire. My problem is that on a terminal server environment I need to be able to detect the PID of a process by 'process name' AND 'process owner' so I can kill that specific process and not affect others who may be running the same process in another session. I can seem to do one or the other but not both. Can anyone please point me in the right direction? Thanks very much in advance. -Glen
Hi, I would like to automate Putty commands whereby it will select my saved telnet session (so open Putty Configuration and select session) and afterwards it will open the Putty-prompt and will do next commands: <Enter> ACCESS <Enter> 'UserName' <Enter> SET Priv <Enter> 'Password' <Enter> LOG PORT ALL <Enter> And close Putty Kind of new in AutoIT so all help is welcome ! Thanks in advance, Regards,
This Function gets the Hostname of the Client on the Terminal Server, can be used to determine the correct std printer near the location of the client while working on the terminal server session. Func _GetWTSClientName($sid) Local $result = DllCall("Wtsapi32.dll", "int", "WTSQuerySessionInformation", "Ptr", 0, "int", $sid, "int", 10, "ptr*", 0, "dword*", 0) If @error Or $result = 0 Then Return SetError(1, 0, "") Local $ip = DllStructGetData(DllStructCreate("byte[" & $result & "]", $result), 1) DllCall("Wtsapi32.dll", "int", "WTSFreeMemory", "ptr", $result) Return Stri