Solved

Call an executable in the context of a different user

Posted on 2011-02-23
3
236 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
[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
3 Comments
 
LVL 3

Accepted Solution

by:
OrenRozen earned 125 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 125 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

OfficeMate Freezes on login or does not load after login credentials are input.
When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

738 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