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.
elevate command
About this tag
The elevate command tag covers discussions about running commands with administrative privileges in Windows, particularly through the command line. Users often seek methods to elevate a command via cmd.exe, such as using runas or other techniques, and encounter errors like incorrect password prompts or access denied. Common troubleshooting includes verifying admin credentials, understanding User Account Control (UAC) settings, and exploring alternative elevation methods like creating scheduled tasks or using PowerShell. The tag is relevant for IT professionals and power users managing Windows systems who need to execute elevated commands for scripting, system administration, or software installation.
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
elevatecommand
permissions
python
runas command
runas error
scripting
security
system administration
user account control
user privileges
windows 8