How to "Run As..." another user


Recommended Posts

OK, people, if this is already out there, I declare myself unfit to find it :cry:

I NEED to be able to run any shortcut or executable file as another user, while being logged on with certain account.

For instance, if I have "User A" logged on at the moment, I need to be able to do something like this: "Right click on the program.exe file, select Run As... and then enter my credentials for User B".

Is this possible in any way? :cry:

Link to comment
https://www.neowin.net/forum/topic/556870-how-to-run-as-another-user/
Share on other sites

  Enzo Marinelli said:
OK, people, if this is already out there, I declare myself unfit to find it :cry:

I NEED to be able to run any shortcut or executable file as another user, while being logged on with certain account.

For instance, if I have "User A" logged on at the moment, I need to be able to do something like this: "Right click on the program.exe file, select Run As... and then enter my credentials for User B".

Is this possible in any way? :cry:

This should be available by using a command prompt. For instance, with a little registry modification you could add "Run as another user..." to your context menu specifically for EXE's and shortcuts, which would pop up a command prompt window asking you for the password. It's not exactly the cleanest solution but it should work.

In Windows Vista, it would seem that the "Run as.." option was changed specifically for "Run as administrator", at least when running under a normal Administrator account with User Account Control enabled. The password prompt behavior may be different on standard user accounts.

  iCeFuSiOn said:
This should be available by using a command prompt. For instance, with a little registry modification you could add "Run as another user..." to your context menu specifically for EXE's and shortcuts, which would pop up a command prompt window asking you for the password. It's not exactly the cleanest solution but it should work.

In Windows Vista, it would seem that the "Run as.." option was changed specifically for "Run as administrator", at least when running under a normal Administrator account with User Account Control enabled. The password prompt behavior may be different on standard user accounts.

The problem with that is that the only thing I can "Run As..." is the command prompt, 'cause if I try to "Run As..." any other executable, I get a message saying that RUNAS is disabled :cry:

  Enzo Marinelli said:
The problem with that is that the only thing I can "Run As..." is the command prompt, 'cause if I try to "Run As..." any other executable, I get a message saying that RUNAS is disabled :cry:

What other executables? You mean you get that message if you right-click and select Run As Adminstrator? Or if you try and change the properties to always run elevated?

  Brandon Live said:
What other executables? You mean you get that message if you right-click and select Run As Adminstrator? Or if you try and change the properties to always run elevated?

I believe they mean "RUNAS.EXE" from a command prompt is not working correctly, not the elevation stuff from within the Windows shell itself.

  Brandon Live said:
What other executables? You mean you get that message if you right-click and select Run As Adminstrator? Or if you try and change the properties to always run elevated?
  iCeFuSiOn said:
I believe they mean "RUNAS.EXE" from a command prompt is not working correctly, not the elevation stuff from within the Windows shell itself.

Let's see if I can make myself clear:

If I go to the command line, I can do this, and it works OK:

runas /user:"MyPC\Username" cmd

That would open another command line, being run as "Username"

However, if I do this:

runas /user:"MyPC\Username" "C:\Program files\Internet Explorer\iexplore.exe"

I get this message:

post-34358-1177847698.jpg

  Enzo Marinelli said:
Let's see if I can make myself clear:

If I go to the command line, I can do this, and it works OK:

runas /user:"MyPC\Username" cmd

That would open another command line, being run as "Username"

However, if I do this:

runas /user:"MyPC\Username" "C:\Program files\Internet Explorer\iexplore.exe"

I get this message:

Does the RUNAS command work for any other executable, for instance "%ProgramFiles%\Movie Maker\MOVIEMK.EXE"? By the look of it, you can not use the RUNAS command with Internet Explorer any more, perhaps this is due to Protected Mode.

  iCeFuSiOn said:
Does the RUNAS command work for any other executable, for instance "%ProgramFiles%\Movie Maker\MOVIEMK.EXE"? By the look of it, you can not use the RUNAS command with Internet Explorer any more, perhaps this is due to Protected Mode.

WOW, MAN, YOU ARE AN ABSOLUTE GENIOUS!!! I LOVE YOU icon12.gif

That must be it, since I was able to run Windows Movie Maker...

Now, should I disable Protected Mode for Internet Explorer on MY account, or the account I'm trying to run from?

By the way, thank you very much, iCeFuSiOn :)

  Enzo Marinelli said:
Now, should I disable Protected Mode for Internet Explorer on MY account, or the account I'm trying to run from?

What could possibly compell you to want to run IE as a admin? That's always a bad idea. They put it in an ultra sandboxed mode for a reason.

  MioTheGreat said:
What could possibly compell you to want to run IE as a admin? That's always a bad idea. They put it in an ultra sandboxed mode for a reason.

I don't want to run it as admin, but as another standard user...

  Enzo Marinelli said:
WOW, MAN, YOU ARE AN ABSOLUTE GENIOUS!!! I LOVE YOU icon12.gif

That must be it, since I was able to run Windows Movie Maker...

Now, should I disable Protected Mode for Internet Explorer on MY account, or the account I'm trying to run from?

By the way, thank you very much, iCeFuSiOn :)

Seeing as Internet Explorer is detecting the RUNAS command I'd try disabling Protected Mode on the target account (the one you are trying to launch Internet Explorer with using RUNAS). If that doesn't work, try disabling it on your current user account as well.

Note that I would not recommend disabling Protected Mode Internet Explorer for any extended amount of time and should only be done to test out whatever you are testing.

  iCeFuSiOn said:
Seeing as Internet Explorer is detecting the RUNAS command I'd try disabling Protected Mode on the target account (the one you are trying to launch Internet Explorer with using RUNAS). If that doesn't work, try disabling it on your current user account as well.

Note that I would not recommend disabling Protected Mode Internet Explorer for any extended amount of time and should only be done to test out whatever you are testing.

OK, I'll try it that way then!

Yeah, I'll be reenabling it once I'm done... thanx again!

  iCeFuSiOn said:
Does the RUNAS command work for any other executable, for instance "%ProgramFiles%\Movie Maker\MOVIEMK.EXE"? By the look of it, you can not use the RUNAS command with Internet Explorer any more, perhaps this is due to Protected Mode.

It didn't work :(

I tried disabling Protected Mode on IE for both accounts, and it doesn't open...

RUNAS also wont open the explorer.exe program from another account :cry:

What if you use "Runas" to start a new CMD window, and then run iexplore.exe from that window?

Then again - why are you trying to do this in the first place? What difference does it make which account you're running under if they're both standard users? Are you trying to hide your tracks from someone or something like that?

Usually when you want to do something as another user, you'd just switch users... that's what Fast User Switching is for.

Brandon,

As I said in this post, I'm developing some ActiveX and I don't want to mess my personal account.

No, both accounts are not standard users. One is Administrator, the other standard.

See, this is strange. I could launch, for instance, Word, from a RUNAS cmd window. From there, I could run iexplorer.exe, right clicking on it :s BUT, I haven't been able to run other processes, such as explorer.exe...

  Brandon Live said:
Wait what? Why would you try to run another copy of the shell as another user? That's probably not a good idea. And I bet it's not starting because it's detecting that Explorer is already running...

Weird, you could do just that on Windows < Vista... :/

No you couldn't. Not by just typing "explorer.exe" in a command window, that would not spawn a new process. There's an option ("launch folder windows in a seperate process") which is not enabled by default, which could maybe let you achieve this. But it's really not something I'd recommend, the shell isn't really meant to run like that.

  Brandon Live said:
No you couldn't. Not by just typing "explorer.exe" in a command window, that would not spawn a new process. There's an option ("launch folder windows in a seperate process") which is not enabled by default, which could maybe let you achieve this. But it's really not something I'd recommend, the shell isn't really meant to run like that.

Thank you, I'll try that.

By the way, you COULD do that in Windows < Vista (XP/2003/2000/Me/98SE/98/95). I could send you a video of me doing it if you want ;)

That's the whole point of this thread: I could do all this in previous versions of Windows, and now in Vista I'm having these issues.

The way I did it was right clicking on any program or shortcut, Run As, then entering credentials for ANY other user, and no matter which program it was (explorer.exe included) it ran perfectly.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • What is happening in the WNBA!    
    • RapidRAW 1.3.5 is out.
    • Microsoft Edge 139.0.3405.86 by Razvan Serea Microsoft Edge is a super fast and secure web browser from Microsoft. It works on almost any device, including PCs, iPhones and Androids. It keeps you safe online, protects your privacy, and lets you browse the web quickly. You can even use it on all your devices and keep your browsing history and favorites synced up. Built on the same technology as Chrome, Microsoft Edge has additional built-in features like Startup boost and Sleeping tabs, which boost your browsing experience with world class performance and speed that are optimized to work best with Windows. Microsoft Edge security and privacy features such as Microsoft Defender SmartScreen, Password Monitor, InPrivate search, and Kids Mode help keep you and your loved ones protected and secure online. Microsoft Edge has features to keep both you and your family protected. Enable content filters and access activity reports with your Microsoft Family Safety account and experience a kid-friendly web with Kids Mode. The new Microsoft Edge is now compatible with your favorite extensions, so it’s easy to personalize your browsing experience. Microsoft Edge 139.0.3405.86 changelog: Fixes Fixed an issue where MIP-protected PDF files from different sovereign cloud environments (including GCCH) failed to open and instead displayed the error message: “Need permissions. Contact the owner of the file to give you permissions.” Fixed an issue, which affected IE mode, including errors when displaying PDF files, running Java applets, and showing the Information Bar in IE mode. Improved reliability Fixed a browser crash that occurred on first launch when the BrowserSignin policy was enabled and configured to "Force (2) = Force users to sign-in to use the browser (all profiles)." Feature updates Open external links in another profile when recommended by external applications. When Microsoft Edge is set as the default browser to open external links from applications, Microsoft Edge must determine which profile to open the links. Users can control which profile to use through the “Default profile for external links” setting. Applications such as Microsoft Teams or Outlook can also recommend a profile for the links. Currently, the user setting is prioritized over application recommendations. With this feature, the application recommended profile is given priority, instead of the profile selected in the setting. Admins can control the availability of the feature using the EdgeOpenExternalLinksWithAppSpecifiedProfile policy. Note: This is a controlled feature rollout. If you don't see this feature, check back as we continue our rollout. Changes to Wallet in Microsoft Edge. Wallet is being phased out to support a streamlined experience within Microsoft Edge. This affects the Wallet feature in Settings and the Mini Wallet found by clicking the profile icon in the top banner. Users are directed to the new Passwords, Payment, and Personal Information management experience in Settings. Also, a new Password management experience is available in Settings. For more information, see Changes to Wallet in Microsoft Edge. Note: This is a controlled feature rollout. If you don't see this feature, check back as we continue our rollout. Introducing a new policy that can enable/disable Microsoft 365 Copilot Chat in Edge for Business from showing in the toolbar. Edge for Business now has a dedicated policy, Microsoft365CopilotChatIconEnabled, to enable and disable Copilot in Edge from showing in the Edge toolbar. When both this policy and HubsSidebarEnabled are configured, this policy takes precedence in determining whether Copilot appears in the toolbar. If this policy isn't configured and HubsSidebarEnabled is disabled, Copilot will remain hidden. In a future release, this policy is the sole control for managing Copilot's visibility in the toolbar. Real-time notifications for compromised passwords. Microsoft Edge is integrating an in-context password breach notification system. This feature proactively informs users if their saved login credentials have been compromised in known data breaches, enabling them to take immediate action to secure their accounts. Admins can control availability to this feature using the PasswordMonitorAllowed policy. Note: This is a controlled feature rollout. If you don't see this feature, check back as we continue our rollout. Edge Settings Improvements. Edge Settings is migrating to WebUI2 to boost page responsiveness and introducing a series of minor visual and content upgrades to improve overall usability and utility. This includes optimizing for concise wording of individual settings, simplifying the number of pages and reorganizing content, and creating a cohesive user interface. New Autofill Personal Information Settings Configuration. A web form field collection consent toggle will be available in Autofill settings (edge://settings/autofill/personalInfo). This allows users to consent to Microsoft Edge collecting web form field labels (e.g., "First Name," "Email") to improve Autofill suggestion accuracy. Only field labels are collected and not user-entered data. The web field labels are stored securely per Microsoft's privacy standards. This new setting is manageable via existing policies in Autofill (e.g., AutofillAddressEnabled), EdgeAutofillMlEnabled. AutofillAddressEnabledis the parent setting forEdgeAutofillMlEnabled. The EdgeAutofillMlEnabled policy is the parent of this new setting, thus turning off the EdgeAutofillMlEnabled policy turns off this setting. Web AI APIs for prompt and writing assistance. Microsoft Edge now implements the Writing Assistance APIs and the Prompt API (for Edge extensions) with a local language model, Phi-4-mini, that is built into the browser. These easy-to-use JavaScript APIs are made available via Edge flags (set to Enabled, by default only for the Summarizer and Prompt API for extensions) so that sites and extensions can apply AI capabilities on the web. The small language model is downloaded as the first time any of these APIs is used and later shared across all domains, serving local AI use-cases with reduced cost, network independence, and increased privacy (since data input to the model doesn't leave the user’s device). Admins can control the availability of these APIs via the GenAILocalFoundationalModelSettings policy. These APIs are currently not implemented in China. Read the announcement here, and feel free to provide feedback. Enhancements to Performance and Secure network. Browser essentials is now separated into two distinct experiences (Performance and Secure Network) - both available from the Settings and more menu (“…” on the menu bar). Reset Microsoft Edge enterprise sync. For users having problems syncing browsing data across other signed-in devices, they can reset sync data from the Microsoft servers via Edge Settings edge://settings/profiles/sync/reset. This option should only be used if the sync data is available on one of the user's devices or if they want to delete all sync data from the servers. Note: In Microsoft Edge 139, reset sync is enabled for users encountering a "No permissions" MIP error and in Microsoft Edge 140, reset sync is enabled for users encountering a "Service disabled" MIP error. Update to Microsoft AutoUpdate policy. The MAUEnabled policy allowed admins to continue using Microsoft AutoUpdate on macOS. Since Microsoft Edge now uses EdgeUpdate, the MAUEnabled policy is planned to be obsoleted in Microsoft Edge version 140. Policy updates / New policies EdgeOpenExternalLinksWithAppSpecifiedProfile - Prioritize App specified profile to open external links EnableUnsafeSwiftShader - Allow software WebGL fallback using SwiftShader MandatoryExtensionsForInPrivateNavigation - Specify extensions users must allow in order to navigate using InPrivate mode Microsoft365CopilotChatIconEnabled - Control whether Microsoft 365 Copilot Chat shows in the Microsoft Edge for Business toolbar OnSecurityEventEnterpriseConnector - Configuration policy for Microsoft Edge for Business Reporting Connectors Obsoleted policies KeyboardFocusableScrollersEnabled - Enable keyboard focusable scrollers (obsolete) SelectParserRelaxationEnabled - Controls whether the new HTML parser behavior for the SELECT element is enabled (obsolete) Download: Microsoft Edge (64-bit) | 180.0 MB (Freeware) Download: Microsoft Edge (32-bit) | 163.0 MB View: Microsoft Edge Website | Release History Get alerted to all of our Software updates on Twitter at @NeowinSoftware
  • Recent Achievements

    • Week One Done
      harveycoleman123 earned a badge
      Week One Done
    • First Post
      EzraNougat earned a badge
      First Post
    • One Month Later
      westDvina earned a badge
      One Month Later
    • Community Regular
      Bern@rd went up a rank
      Community Regular
    • Week One Done
      Joey Solo earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      663
    2. 2
      +FloatingFatMan
      192
    3. 3
      ATLien_0
      154
    4. 4
      Xenon
      132
    5. 5
      wakjak
      98
  • Tell a friend

    Love Neowin? Tell a friend!