How to open command prompt as run as administrator to perform administrative tasks on any windows operating system, here are the simple steps one can follow.
Windows System Administrator has the highest privileges than other normal users on the system, sometimes we have to run the applications with administrator privileges to execute the task, it may command prompt or any other system application, here are the simple steps to open any application with run as administrator.
CMD Run as Administrator
Click on the start menu and search with a key work cmd and right click and click run as administrator, see the screenshot below.
1. Search for CMD
3. An elevated command prompt opens up as below.
Using Command Prompt
runas /user:<localmachinename>\administrator cmd
we need to pass administrator credentials to open the cmd as run as administrator.
If you are an active directory user then here is the syntax.
runas /user:<DomainName>\<AdministratorAccountName> cmd
Thank you for reading this article, if you have any questions please let us know.
Thank you for visiting my site, for any scripts in these articles you are testing please make sure you have tested this script in our lower environment before you run in production.
Leave a Reply Cancel reply