top of page

Log in to another network user in Command Prompt (cmd)

To log in to another network user in Command Prompt (cmd), you can use the `runas` command. Here's how to do it:

1. Open Command Prompt:

   - Press `Windows key + R` on your keyboard to open the Run dialog box.

   - Type `cmd` and press Enter. This will open the Command Prompt.

2. Run Command as Another User:

   - In the Command Prompt window, type the following command:

runas /user:<username> cmd

 Replace `<username>` with the username of the user account you want to log in to.

3. Enter User Password:

   - After executing the command, you will be prompted to enter the password for the specified user account. Type the password and press Enter.

4. Authenticate:

   - If the entered password is correct, a new Command Prompt window will open, logged in as the specified user.

5. Execute Commands:

   - You can now execute commands in the new Command Prompt window under the context of the specified user.

Using the `runas` command allows you to run programs or Command Prompt sessions under a different user account while logged in to your current user account. This can be useful for troubleshooting or performing administrative tasks that require elevated privileges.

Comments


bottom of page