Solved

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

Posted on 2015-02-05
5
129 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
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 83

Accepted Solution

by:
oBdA earned 500 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Log files are useful in diagnosing and repairing problems.  This is a list of common log files and their standard locations that I've compiled.   While this is not exhaustive, it is a pretty good list that I've found to be useful.  I may update it f…
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
Viewers will learn the basics of creating custom device Racks in Ableton Live. Place instrument(s) and effects onto a track, and select them all by holding the Shift key and clicking on the device title bars: Group them by typing Command-G (Ctrl-G…
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…

815 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now