Link to home
Start Free TrialLog in
Avatar of gordonmann
gordonmannFlag for United States of America

asked on

How to end a program on terminal server

I have users working on a Terminal Server ans I need to find a waty for them to "End a Program" - the control-alt-del keys do not work from remote connections and I dare not give them access to task manager.
ASKER CERTIFIED SOLUTION
Avatar of aissim
aissim
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gordonmann

ASKER

I am aware of that but that gives them the availability of too many other items.
my only thought would be using something like taskkill.exe

taskkill /im outlook.exe
taskkill /im winword.exe
etc...

But that assumes the user knows the exe name of applications.
I will go with first solution since it is already there.
Just an FYI - taskkill.exe is included with Windows. You could save the following (very basic) vbscript to their desktop - they'd click on it and be prompted for the name of the executable to kill (again, limitation being the user knowing the .exe name); but it works pretty well:

Dim App

App = InputBox("Name of executable to kill: ")

Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "taskkill /im " & App