
Use this option if you are using smart cards for authentication Save the password in the user’s profile so it can be used later (security risk!) Use the current network environment instead of user’s local environment Specifies the user account that you want to useĭon’t load the user’s profile, this will make the application load faster. There are a couple of parameters that we can use with the runas command: Parameter With the basics explained, lets take a closer look at the different options we have. Runas /user:admin cmd runas administratorĪfter you have typed the command, you will be prompted for the password after which the command will be executed. To open the command prompt as administrator we only need to specify the user, in this case, the local admin account, and the program that we want to run, cmd in this case. But before we dive into the different options, let’s first take a look at a quick example of how to execute a command as administrator.

The RunAs command comes with different parameters that we can use to execute programs as a different user. In this article, we are going to take a look at how to use the Runas command. But the command is not limited to admins, you can also use the command to execute programs as another user. Which is basically the same behavior.Īdministrators often use runas to execute commands or other tasks with admin privileges while they are logged in to an account without administrator privileges. You can often right-click on a program in the user interface and select “Run as administrator”. Runas can be used on all Windows versions and dates back to Windows 2000. The command RunAs can be used to execute programs and commands as a different user than the one signed in.
