Share via

Is there a way to login into users using command prompt?

Anonymous
2024-04-10T13:32:04+00:00

As you can tell by the title, Is there a way to login into users using command prompt? You can also give code to a script. Anything helps. Thanks!

Windows for home | Windows 11 | Accounts, profiles, and login

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

4 answers

Sort by: Most helpful
  1. Anonymous
    2024-06-26T18:57:52+00:00

    It doesn't really work, because then it asks about password and doesn't let you type anything(

    6 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2024-04-10T15:34:04+00:00

    Hello Muhammad, sorry about your problems. My name is Marco and I will do my best to help you.

    Yes, you can log into user accounts using the Command Prompt in Windows, but with some limitations.

    The primary method for doing this involves using the runas command, which allows you to run specific programs and utilities as different users. However, it's important to note that runas does not fully log you into the user account in the same way that you would experience by logging in through the Windows sign-in screen. Instead, it allows you to execute commands or applications under the credentials of another user.

    Here's a basic example of how to use the runas command:

    runas /user:domain\username "cmd"

    Replace "domain\username" with the appropriate domain (if applicable) and the username of the account you want to run the command prompt as. If the user is a local account, you can simply use the computer name or .\username.

    This command will prompt you for the password of the user account. After entering the password, a new Command Prompt window will open running under the credentials of the specified user.

    More infos here: https://lazyadmin.nl/it/net-user-command/

    https://www.linkedin.com/pulse/20-net-user-comm...

    https://www.wikihow.com/Add-Users-from-CMD

    _________________________________________________

    Note: This is a non-Microsoft website. The page appears to be providing accurate, safe information. Watch out for ads on the site that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the site before you decide to download and install it.

    3 people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2024-08-13T16:46:48+00:00

    I tried this as well and got the same thing. Asked me to type in a password and immediately returned to prompt

    2 people found this answer helpful.
    0 comments No comments
  4. Anonymous
    2024-09-24T11:07:44+00:00

    As you can tell by the title, Is there a way to login into users using command prompt? You can also give code to a script. Anything helps. Thanks!

    Okay thank

    0 comments No comments