Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Difference Process Service Windows: Step-by-Step Guide

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To run a process as a different user on Windows (for example, to test an app under another account or to start a service with specific credentials), you can use the built-in Run as different user feature, the runas command, or the Services snap-in for services. This guide covers all three methods, what each achieves, and the exact steps. No extra tools are needed—everything uses Windows built-in features.

What You'll Need

  • A Windows PC (the steps work on Windows 10 and Windows 11; some labels may differ slightly by version).
  • The username and password of the account you want to run the process as. If it's a domain account, you'll need the domain name too.
  • For services, you need administrator rights on the PC.

Step-by-Step

Method 1: Run an Application as a Different User (GUI)

  1. Locate the application's shortcut or executable file (e.g., on the Desktop or in the Start Menu).
  2. Hold down the Shift key and right-click the shortcut or .exe file.
  3. From the context menu, select Run as different user. (If you don't see this option, it's because the app is a Microsoft Store app or a Windows system app—those don't support this feature. Use Method 2 instead.)
  4. In the Windows Security dialog, enter the username and password of the account you want to use. For a Microsoft account, use the full email address. For a local account, use the local username.
  5. Click OK. The application will launch under that user's context.

Method 2: Use the runas Command (Command Prompt)

  1. Open Command Prompt (press Win + R, type cmd, and press Enter).
  2. Type the following command and press Enter:
    runas /user:DOMAIN\Username "C:\Path\To\App.exe"
    Replace DOMAIN\Username with the actual domain and username (for a local account, use ComputerName\Username or just ."Username"), and replace the path with the full path to the executable.
  3. When prompted, type the password for that user and press Enter.
  4. The app will start in a new window. Note: the app runs with the user's normal privileges, not elevated. If you need admin rights, use runas /user:... /savecred (but be careful—this stores the password) or use the Services method below.

Method 3: Run a Service as a Different User

  1. Press Win + R, type services.msc, and press Enter to open the Services snap-in.
  2. Find the service you want to change. Right-click it and select Properties.
  3. Go to the Log On tab.
  4. Select This account, then click Browse to pick the user, or type the account name manually (e.g., DOMAIN\Username).
  5. Enter the password for that account in both the Password and Confirm password fields.
  6. Click OK. You may be prompted to restart the service—click Yes to apply the change immediately.

Method 4: Run a Process as a Different User via Task Scheduler (for non-interactive or one-off tasks)

  1. Press Win + R, type taskschd.msc, and press Enter.
  2. In the right pane, click Create Task.
  3. On the General tab, give the task a name.
  4. Under Security options, select Run whether user is logged on or not and check Run with highest privileges if needed.
  5. Click Change User or Group and enter the target account.
  6. On the Triggers tab, create a trigger (e.g., At startup, or On a schedule).
  7. On the Actions tab, click New, then browse to the program you want to run.
  8. Click OK to save the task. To run it immediately, right-click the task and select Run.

Common Mistakes

  • Using the wrong username format—for a Microsoft account, you must use the full email address; for a local account, use the PC name followed by a backslash (e.g., DESKTOP-ABC123\John).
  • Forgetting that runas doesn't elevate privileges—if the app needs admin rights, runas alone won't work unless you use the /savecred option, which stores the password (not recommended for security).
  • Not having the “Run as different user” option—it only appears for classic desktop apps, not for UWP/Store apps.
  • Setting a service to run as a user without the “Log on as a service” right—Windows will give an error. You must grant that right via Local Security Policy (secpol.msc) or use the Services snap-in which usually does it automatically, but if not, you'll need to add it manually.
  • Entering the password wrong twice in the service properties—Windows will not validate until you click OK, and you'll get a “The specified password is invalid” error.

Tips

  • Use the runas command with /netonly if you only need network access with the other account, but want to run the app under your own profile. Example: runas /netonly /user:DOMAIN\User "C:\App.exe".
  • For services, always test the service after changing the logon account—many services fail if the account lacks permissions to the service's data folders.
  • If you frequently run a specific app as another user, create a shortcut with the command: runas /user:DOMAIN\User "C:\Path\App.exe" and place it on your desktop.
  • To avoid typing the password every time, you can use /savecred once, but be aware it stores the password in Windows Credential Manager—only do this on a private, secure PC.
  • When running a service as a domain user, make sure the password doesn't expire—you'll have to update it manually when it does.

Troubleshooting

If “Run as different user” is missing: The app is likely a Microsoft Store app or a system app. Use the runas command instead, or use Task Scheduler to create a task that runs the app under the target user.

If runas says “The user account is not authorized to run this program”: The target user may not have permission to execute that file. Check the file's security settings (right-click > Properties > Security) and grant read/execute permissions to that user.

If the service fails to start after changing the logon account: Check the Windows Event Viewer (Event Viewer > Windows Logs > System) for error details. Often it's a missing “Log on as a service” right or the user lacking permissions to the service's executable or data directory.

If you get “The password is invalid” when setting a service account: Double-check the password, and ensure the account isn't locked out or expired. For domain accounts, the domain controller must be reachable.

If the app runs but has no network access: If you used runas without /netonly, the app runs under the target user's network identity. If that user lacks network permissions, you'll see issues. Use /netonly to keep your own network access.

If the app runs but crashes: The target user may not have a proper user profile (e.g., if they've never logged on interactively). Log on once with that user, or create a profile via System Properties > Advanced > User Profiles.

Frequently Asked Questions

Can I run a process as SYSTEM or Administrator?

Yes, for SYSTEM you can use psexec -s (from Sysinternals) or create a scheduled task with “SYSTEM” as the user. For Administrator, use the “Run as administrator” option (Ctrl+Shift+Enter) or the runas /user:Administrator command.

Does runas work with Microsoft accounts?

Yes, but you must use the full email address as the username. For example: runas /user:user@example.com "C:\App.exe".

Why does the “Run as different user” option not appear for some apps?

It only appears for classic (Win32) desktop applications. Universal Windows Platform (UWP) apps from the Microsoft Store don't support that feature; use Task Scheduler instead.

Can I run a service as a normal user without admin rights?

No, changing a service's logon account requires administrative privileges. You must be an admin on the PC.

Is there a way to run a process as another user without typing the password?

Yes, you can use runas /savecred once to cache the password, or use Task Scheduler with the “Run whether user is logged on or not” option, which stores the password encrypted. However, both store credentials on disk—use with caution.

What's the difference between runas and the Services logon account?

runas runs a single application in the foreground with the target user's identity, and you must type the password each time (unless you use /savecred). The Services logon account permanently assigns a user to a service, so the service always runs as that user in the background, without needing a password at each start (it's stored securely by Windows).