Search code examples
cmdcommand-promptadministrator

How to convert opened CMD to Administrator CMD?


I am trying to open a Command Prompt as administrator, (elevated), from a normal user privileged Command Prompt.

I searched Google a lot, but cannot find a method to achieve it.

Is there any CLI command, to open an Administrator: Command Prompt, from a normal Command Prompt?

Thanks in advance!


Solution

  • I don't know the meaning or any other explanation for this command but, it works with all Windows Operating system's (Windows 7,8,8.1,10,11 - Tested). Run this command in your normal user privileged Command Prompt Which will open another Administrator: CMD window.

    powershell -Command "Start-Process cmd -Verb RunAs"
    

    I got this Command from Google while searching on the Internet. If anybody know the meaning of this command plz update (Edit) my Answer!