Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Is there a way to send a "close program" command via remote session?

Posted on 2016-09-27
4
69 Views
Last Modified: 2016-09-27
Here's the scenario:
About half of our Windows workstations are running in a kiosk type environment where the shell has been replaced (no longer explorer.exe).  Generally, the only thing running on the PC is a program with nothing but a login field.  There's no X to click on and Task Manager has also been disabled (to be clear Ctrl+Alt+Del still works, but Task Manager has been removed as an option).  The workstations are setup in such a way so that they can only be used to run this one program.  They use a touch screen and generally don't have a keyboard connected to them.

To gain administrator access to the workstation, we generally have to close the one program that's running.  In the past, I've been able to do this from a remote session, by using the on-screen keyboard (OSK) and clicking ALT+F4 while the remote session is the top window.  Now however, this is no longer working for some reason (nothing happens that I can see).  If I recall correctly, I was able to do this in both Remote Desktop (RDP) as well as Dameware.  Further complicating the issue is I have to remote to a "jump server" before I can reach the workstation in question (hence the use of OSK).

If anyone can recommend how to send a close program command via a remote session, I'd very much like to know how.
0
Comment
Question by:Palaceit
  • 2
4 Comments
 
LVL 24

Accepted Solution

by:
NVIT earned 500 total points
ID: 41818645
How about TASKLIST to list the program and TASKKILL to close the program?
TASKLIST /? for help
TASKLIST /s hostname /u domain\adminname /p password

Open in new window

...shows all running processes. To find a certain process, e.g. outlook.exe...
TASKLIST /s hostname /u domain\adminname /p password | find /i "outlook"

Open in new window


Once you get the process ID...
TASKKILL /s hostname /u domain\adminname /p password /pid number /f /t 

Open in new window

0
 

Expert Comment

by:jdmailny
ID: 41818987
You can use the start and stop service command from a dos prompt with the drive mapping in the command.
0
 

Author Closing Comment

by:Palaceit
ID: 41819059
This worked well.  Thanks!
Only caveat I might add is that in my case I had to run it from the subnet where the host resided.  Otherwise I was getting bad account/password errors.
0
 
LVL 24

Expert Comment

by:NVIT
ID: 41819085
Thanks for the tip, Palaceit!
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Remote Desktop Shadowing often has a lot of benefits. When helping end users determine problems, it is much easier to see what is going on, what is being slecected and what is being clicked on. While the industry has many products to help with this,…
When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
This Micro Tutorial will teach you how to the overview of Microsoft Security Essentials. This is a free anti-virus software that guards your PC against viruses, spyware, worms, and other malicious software. This will be demonstrated using Windows…
This Micro Tutorial will give you basic overview of the control panel section on Windows 7. It will depth in Network and Internet, Hardware and Sound, etc. This will be demonstrated using Windows 7 operating system.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question