?
Solved

Is there a way to start a process remotely using the user's credentials?

Posted on 2015-02-05
5
Medium Priority
?
134 Views
Last Modified: 2015-02-05
We have a problematic software installed in some of user's PC. This software records the users calls through a usb device connected to the phone. Once in a while, this software continuously records even though the users already hang up the phone. The recording would go on and on for several hours and sometimes days until I notice it by checking at the users recording folder. The only way to stop it remotely is to login to the user's pc through psexec and kill the process. My problem is that the process needs to be started again and although I could do it, it gets started under my account and the recorder would not work because it would only recognize the user that is logged in currently to run the application properly, so I have to call the user and ask them to start the program.
Is there a way that I could remotely run/start the program that it would look as if the user started it?   If I try the runas command, I would need to provide the user's password which obviously I would not know.
I have already reported this bug to the recorder's vendor support but while I wait for their reply, I would like to have the workaround.
0
Comment
Question by:Kai Watanabe
[X]
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
5 Comments
 
LVL 92

Expert Comment

by:nobus
ID: 40590512
can you not use teamviewer or this ?
www.teamviewer.com
0
 

Author Comment

by:Kai Watanabe
ID: 40590543
I haven't tried the teamviewer, but from the looks of it I would have to do some authentication on both sides.
I would like to have a solution where it is completely silent to the user. He/she will not even know that the
program has been stopped/started on the background.
0
 
LVL 3

Expert Comment

by:Mike Sun
ID: 40590575
You may like to try a BATch running a combination of  pskill and psexec utilities. They allow you to execute remotely using any valid login credentials.

 A listing and description of these Sysinternals Process Utilities can be found here.

https://technet.microsoft.com/en-gb/sysinternals/bb795533.aspx
0
 
LVL 85

Accepted Solution

by:
oBdA earned 1500 total points
ID: 40591165
Not possible, sorry. If it's supposed to run in the user's context, the user will have to start it.
You can give the user a small batch file that will kill the process and restart it, so the user would just have to do a double-click:
@echo off
setlocal
set Program=C:\Windows\system32\calc.exe
for %%a in ("%Program%") do (
	set Process=%%~nxa
	set ProgramFolder=%%~dpa
)
taskkill.exe /IM "%Process%" /FI "USERNAME eq %UserName%" /f
start "" /d "%ProgramFolder%" "%Program%"

Open in new window

0
 

Author Comment

by:Kai Watanabe
ID: 40592792
oBdA, thanks for your comment. I am now convinced that this really would not work. I have tried as Mike Sun commented, create a bat file using a combination of sysinternals tools but it did not work.
Thanks for the batch file you have included. That would probably be the only way to go for me.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

This article describes how to set permissions to allow a limited-permissions user to start and stop a particular System Service.   It is always best to give users only the permissions that they need to perform their job, so tweaking particular permi…
I have a Synology DS212+ NAS.  These are not only great for backup and normal NAS stuff, but also for delivering media throughout your home or LAN via DLNA.  I copied my whole audio collection from iTunes over to the box, but couldn't figure out how…
Viewers will learn how to use LFOs to modulate the sound of their Sampler instruments. Click the Modulation tab in Sampler: Choose one (or more) of the three available LFOs, and click the respective button to turn it on: Select a waveform, an LF…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
Suggested Courses

764 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