You are using an out of date browser. It may not display this or other websites correctly. You should upgrade or use an alternative browser.
runas command
About this tag
The runas command allows users to execute programs or commands with different credentials, typically to elevate privileges or run tasks under a different user account. In Windows, it is often used from the command line or scripts to launch applications as an administrator or another domain user. Common issues include incorrect passwords, account lockouts, or permission errors, as seen when attempting to run cmd.exe as administrator. The command is also useful in dual-boot or network scenarios where specific programs require domain security rights without joining the domain. Troubleshooting runas involves verifying credentials, account status, and ensuring the target user has the necessary permissions.
I am trying to elevate a command given (in this case just another cmd.exe) if the user is not admin. However i get the error:
C:\Users\metul_000>runas /user:administrator cmd.exe
Enter the password for administrator:
Attempting to start cmd.exe as user "WINDOWS8\administrator" ...
RUNAS ERROR...
admin rights
administrator
cmd
command prompt
debugging
elevate command
permissions
python
runascommandrunas error
scripting
security
system administration
user account control
user privileges
windows 8
Hi this is probably not windows 7 specific however I am trying to accomplish it in Windows 7 so I'll ask. I have decided to dual boot one of my PC's at work. I am testing 7 out for a few programs that are specifically used with my company.
Here is the issue: I am only testing just a few things...