Running an app as a different user in Windows 11 lets you launch a program with another account’s credentials without signing out of your current session. This is useful for testing permissions, accessing restricted resources, or using a separate admin account for specific tasks. You can do this with a built-in trick or a PowerShell command, and you’ll need the target account’s username and password.
What You’ll Need
- A Windows 11 PC with at least two user accounts (the one you’re currently signed in with and the one you want to run the app as).
- The password for the target account.
- If the target account is a Microsoft account, you’ll need its email and password.
- Administrator rights on the current account (not always required, but recommended for the Shift+Right-click method).
Step-by-Step
- Find the app’s executable file. Most apps are in
C:\Program Files\orC:\Program Files (x86)\. Look for the.exefile (e.g.,notepad.exe,chrome.exe). You can also search for the app in the Start menu, right-click it, and select “Open file location” to jump to its shortcut, then right-click the shortcut and choose “Open file location” again to get the actual executable. - Hold Shift and right-click the executable. In File Explorer, navigate to the .exe file. Press and hold the Shift key, then right-click on the file. The context menu will show an extra item: “Run as different user”. Click it.
- Enter the target account’s credentials. A Windows Security dialog appears. Type the username (or email for a Microsoft account) and password for the account you want to use. If the account is on this PC only, use the local account name. You can also click “More choices” and then “Use a different account” if needed.
- Click OK. The app will launch with the permissions and profile of that user. You’ll see the app window, but it will run under the other account’s context.
- Alternative: Use PowerShell. If the Shift+right-click method isn’t available (e.g., for Store apps or some system tools), open PowerShell as an administrator and use the command:
runas /user:ComputerName\Username "path\to\app.exe". For example:runas /user:DESKTOP-ABC123\John "C:\Program Files\Notepad++\notepad++.exe". You’ll be prompted for the password, then the app launches. - For Microsoft accounts: In the runas command, use the full email address:
runas /user:user@example.com "C:\path\to\app.exe".
Common Mistakes
- Typing the wrong username format. For local accounts, use
ComputerName\Usernameor justUsernameif you’re on the same PC. For Microsoft accounts, use the full email address. - Forgetting the Shift key. Without holding Shift, the “Run as different user” option doesn’t appear.
- Using the wrong path. If you type the path in the runas command, make sure it’s the full path to the .exe, including quotes if there are spaces.
- Not having permission. If the target account doesn’t have permission to run the app (e.g., it’s installed only for your user), the launch will fail.
Tips
- Use the “Run as different user” option for quick tests. It’s faster than switching users entirely.
- For admin tasks, consider using “Run as administrator” instead. That uses the current account but with elevated privileges, which is often what you actually need.
- If you frequently run apps as another user, create a shortcut. Right-click the executable, choose “Send to” > “Desktop (create shortcut)”, then right-click the shortcut, go to Properties, and in the Shortcut tab, you can’t set a different user directly, but you can use the runas command in a batch file.
- Remember that the app will use the other user’s settings and files. For example, if you run Chrome as another user, it will open that user’s bookmarks and history.
Troubleshooting
- “Run as different user” is greyed out or missing. This can happen if the app is a Windows Store app or a system component. Try the PowerShell runas method instead. Also, ensure you’re holding Shift before right-clicking.
- “The user name or password is incorrect” error. Double-check the username and password. For local accounts, try the exact username (case-sensitive). For Microsoft accounts, use the email and the account’s password (not your PIN). If you use a PIN to sign in, that won’t work; you need the actual password.
- App launches but immediately closes. The app might not support running under a different user, or it might require the user to have a profile on the PC. Try creating a profile for that user first (Settings > Accounts > Other users > Add account).
- Access denied when using runas. Make sure you have permission to run the app for that user. If the app is installed only in your user folder (e.g.,
C:\Users\YourName\AppData\Local\Programs), the other user may not have access. Install the app for all users or place it in a shared location. - Password prompt doesn’t appear. If you’re using runas and it fails silently, try running PowerShell as administrator and ensure you’re typing the command correctly. Also check that the target account is enabled (not disabled in Computer Management).
Frequently Asked Questions
Can I run a Windows Store app as a different user?
Generally, no. Store apps (UWP) are sandboxed and don’t support the “Run as different user” option. You can try the runas command, but it often fails because Store apps require the user to be signed in to the Store.
Do I need to be an administrator to use “Run as different user”?
Not necessarily. You just need to know the target account’s credentials. However, if the app requires admin rights, the target account must be an administrator.
What’s the difference between “Run as administrator” and “Run as different user”?
“Run as administrator” elevates the current user’s privileges to admin level. “Run as different user” switches to an entirely different account, with that account’s permissions and profile.
Can I run a program as a different user without knowing the password?
No, you must have the password or be able to provide the credentials for that account. There’s no way around this for security reasons.
Why does the app open with a different look or missing files?
Because it’s using the other user’s profile. Each user has their own settings, app data, and sometimes installed programs. If the app isn’t installed for all users, it may not work correctly.
Is there a way to run as a different user from the Start menu?
Yes, but it’s not obvious. Search for the app in the Start menu, hold Shift, and right-click on the app icon. You should see “Run as different user” in the context menu.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- How to Create App Shortcuts in Windows 10 Start Menu
- How to Rename a SQL Server Database
- Fix Google Calendar Not Syncing on iPhone
- Fix Skype Microphone Not Working on Windows
- Google Docs Landscape: Change Page Orientation
- Recover Deleted Admin Account in Windows 11