Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Call an executable in the context of a different user

Posted on 2011-02-23
3
Medium Priority
?
241 Views
Last Modified: 2012-05-11
How do I call an executable in the context of a user other than the current login?
0
Comment
Question by:jdana
3 Comments
 
LVL 3

Accepted Solution

by:
OrenRozen earned 500 total points
ID: 34961057
you can use the 'runas' command.
from the command line type runas /? for more information

for example, the following command will open the notepad with user ben:
runas /user:ben@mydomain.com notepad
0
 
LVL 3

Assisted Solution

by:Dave4125
Dave4125 earned 500 total points
ID: 34961065
You can also right-click on the item or a shortcut to the item while holding the [Shift] key and choose Run as from there.
0
 

Author Closing Comment

by:jdana
ID: 35045823
Perfect.  Thanks!
0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

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

In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Suggested Courses

824 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