In all supported Windows versions it is possible to run applications on behalf of another user (Run As) in the current session. This allows you to run a script (.bat, .cmd, .vbs, .ps1), an executable (.exe) or an application installation (.msi, .cab) with another user (usually elevated) privileges.
For example, you can use the RunAs to install apps or run MMC snap-ins under the administrator account in an unprivileged user session. The opportunity to run a program as a different user may be useful when an application is configured under another user (and stores its settings in another user’s profile, which the current user cannot access), but it must be started with the same settings in another user’s session.
In Windows 10 there are several ways to run a program/process on behalf of another user.
The Secondary Log-on service (seclogon) is responsible for the ability to run programs as different user in Windows. If this service is stopped, all of the described RunAs methods won’t work. You can check that the service is started with the following PowerShell command:
How to Run an App as Different User from File Explorer?
The easiest way to run an application on behalf of another user is to use the Windows File Explorer GUI. Just find an application (or a shortcut) you want to start, press the Shift key and right-click on it. Select Run as different user in the context menu.
If the menu item “Run as different user” is missing, see the next section.
In the next window, specify the name and password of the user under whose account you want to run the application and click OK. If you need to specify a domain user, one of the following formats of the name is used: [email protected] or DomainNameUserName.
Running the program on behalf of different user is possible if the account has a password. Using RunAs for a user with an empty password won’t work.
Open the Task Manager and make sure that the application is running under the specified user account.
“Run As Different User” Option is Missing in Windows 10
If there is no Run as different user option in the File Explorer context menu, open the Local Group Policy Editor (gpedit.msc) and make sure that the Require trusted path for credential entry policy is disabled (or not configured) in Computer Configuration -> Administrative Templates -> Windows Components -> Credential User Interface.
Using the RunAs Command to Run a Program as Another User from CMD
You can use the Windows built-in cli tool runas.exe to run apps applications as a different user from the command prompt. The runas command also lets you to save the user’s password to the Windows Credential Manager so that you don’t have to enter it every time.
Open the command prompt (or the Run window by pressing Win+R). To start the Notepad.exe under the administrator account, run this command:
runas /user:admin “C:Windowsnotepad.exe”.
If the username contains spaces, put quotes around it:
runas /user:”antony jr” notepad.exe
In the next window, the prompt “Enter the password for admin” appears, where you have to enter the user’s password and press Enter.
Your application should open. In my case, this is cmd.exe. The window title says “running as PCNameusername“:
For example, you can open the Control Panel under a different user:
runas /user:admin control
If you need to run a program under a domain user, use the following name format: [email protected] or DomainNameUserName. For example, to open a text file using notepad on behalf of a domain user, use the command:
runas /user:corpserver_admin “C:Windowssystem32notepad.exe C:psregion.txt”
Enter the password for corpserver_admin:
Attempting to start C:Windowssystem32notepad.exe C:psregion.txt as user “corpserver_admin ” …
Sometimes you need to run a program as a domain user from a computer that is not joined to the AD domain. In this case, you need to use the following command (It is assumed that the DNS server specified in your computer’s network settings can resolve this domain name):
runas /netonly /user:contosobmorgan cmd.exe
If you don’t want to load user profile when starting the program as different user, use the /noprofile parameter. This allows the application to launch much faster, but may cause incorrect operation of programs that store app data in the user’s profile.
How to Use RunAs Without Password Prompt?
You can save the user credentials (with password) that you enter. The /savecred parameter is used for this.
runas /user:admin /savecred “C:Windowscmd.exe”
After specifying the password, it will be saved to the Windows Credential Manager.
The next time you run the runas command under the same user with the /savecred key, Windows will automatically use the saved password from the Credential Manager without prompting to enter it again.
To display a list of saved credentials in Credential Manager, use the following command:
rundll32.exe keymgr.dll, KRShowKeyMgr
However, using the /savecred parameter is not safe. Because a user, in which profile it is saved, can use it to run any command with these privileges and even change another user password. Also, it is easy to steal passwords saved in the Credential Manager so it is recommended to prevent a Windows from saving passwords (and never save the password of the privileged administrator accounts). In addition, /savecred doesn’t work in Windows Home edition.
How to Create a Shortcut to Run As Different User?
You can create a shortcut on your desktop that allows you to run the program as a different user. Just create a new shortcut, and specify the runas command with the necessary parameters in the Location field
When you run such a shortcut, you will be prompted to enter a user password.
If you additionally specify the /savecred parameter in the runas shortcut, then the password will be prompted only once. The password will be saved in Credential Manager and automatically used when you running the shortcut without prompting for a password.
Such shortcuts are quite often used to run programs that require elevated permissions to run.
How to Run MMC Snap-Ins As a Different User?
In some cases, you have to run one of Windows management snap-ins as a different user. For example, you can use the following command to run the Active Directory Users and Computers (ADUC) RSAT snap-in as a different user:
runas.exe /user:DOMAINUSER “cmd /c start “” mmc %SystemRoot%system32dsa.msc”
In the same way you can run any other snap-in (if you know its name).
Add “Run As” Option to Start Menu in Windows 10
By default in Windows 10 Start Menu items do not have the “Run As” option. To add the context menu “Run as different user”, enable the “Show Run as different user command on Start” policy in User Configuration -> Administrative Templates ->Start Menu and Taskbar section of the Local Group Policy Editor (gpedit.msc).
Or, if the gpedit.msc is missing, create a new DWORD parameter with the name ShowRunasDifferentuserinStart and value 1 in the registry key HKEY_CURRENT_USERSoftwarePoliciesMicrosoftWindowsExplorer. You can use the following PowerShell command to add the reg parameter:
New-ItemProperty -Path “HKCU:SoftwarePoliciesMicrosoftWindowsCurrentVersionExplorer” -Name ShowRunasDifferentuserinStart -Value 1 -PropertyType DWORD -Force
Update the Group Policy settings (gpupdate /force) and make sure that a new context menu More -> Run as different user has appeared for the programs in the Start menu.
Frequently Asked Questions
How do I run a program as another user in Windows 10?
How do I allow a standard user to run a program with administrator rights Windows 10?
› Forums › windows › en-US
Last month, Tradelize and Cointelegraph collaborated in a contest to collect your craziest crypto-currency stories, highlighting your biggest successes and failures.
You didn’t disappoint… and it was impossible to pick a winner. So we chose two – the lucky winners shared the $5,000 prize.
The first story is about Timofey, who received $100 from his grandmother in Russia. He decided to invest it in cryptocurrencies – while in film school pursuing his dream of becoming a filmmaker.
Timofey was able to use the profits from the investment to finance a film he was making for his class, with his grandmother as the main producer. His work is a success – it was not only presented at a Swiss film festival, but also at the Museum of Modern Art in Moscow.
It’s a live stream because I wasn’t expecting anything, he wrote on his account.
His grandmother lives in a remote village with limited internet access. So he has to put his cell phone in a clay jar to get a signal. Today Timothy says he’s a prudent trader who wants to make a graduation film. He could also return $100 to his grandmother and buy a television for her birthday.
At the end of his powerful story, he wrote: I don’t always do good business, but I manage to hold my own and learn from my mistakes, step by step. For me, the stock market graph is a metaphor for life, with its ups and downs. Good investments, watch the art film and take care of your grannies!
The other winner selected by Cointelegraph is Kryptonaut, who participated in local cons tournaments in internet cafes in 2011, when bitcoin was still trading around $1.
He wrote: My team and I made it to the finals after some exciting matches. In a two-on-one situation, I accidentally killed a teammate with friendly fire. Needless to say, we lost the game.
The winning team can count on $500 in cash. As finalists, we received 20 BTC each. At the time, I didn’t know what a crypto-currency was. I ended up trading my 20 BTC for a gaming mouse pad.
Kryptonaut still has a mouse pad – but of course, he’s thinking about what could have been. Had he kept his cryptocurrency stash, it would have been worth more than $1.2 million at the time of writing….. 2,400 times the value of $500.
Executives from Tradelize and its partner Wootrade also shared their experiences. Anton Zapolsky told us how he discovered bitcoin, while Jack Tan shared a lighthearted story from the dark days of crypto winter 2018.
Christina Lucretia Korner, editor-in-chief of Cointelegraph, explains that selecting the winners was no easy task.
She added: We all know that cryptocurrency markets have had many ups and downs over the past decade, and this competition with Tradelize shows that early adopters have had many ups and downs as well. We have seen stories of people who have achieved financial independence using Bitcoin….. and of people who missed out on life-changing gains by selling out in the early days. With a total market size of $2 trillion, the next chapter of the crypto revolution has only just begun, and the rest of the story is still unwritten.
You can view the list of winners on Tradelize’s website. Prizes will be distributed in the coming week.
new cryptocurrency,cryptocurrency prices,bitcoin news today,is bitcoin safe,Privacy settings,How Search works