I ran into the same problem and the only way I was able to open the CMD as administrator from CMD was doing the following:
- Open CMD
- Write
powershell -Command "Start-Process cmd -Verb RunAs"
and press Enter - A pop-up window will appear asking to open a CMD as administrator
More Related Contents:
- Command to run a .bat file
- How to run a command on command prompt startup in Windows
- Batch program to to check if process exists
- How does the Windows Command Interpreter (CMD.EXE) parse scripts?
- How do I get current date/time on the Windows command line in a suitable format for usage in a file/folder name?
- What is the reason for “X is not recognized as an internal or external command, operable program or batch file”?
- Symbol equivalent to NEQ, LSS, GTR, etc. in Windows batch files
- Windows batch files: .bat vs .cmd?
- How to delete files/subfolders in a specific directory at the command prompt in Windows
- How do I use spaces in the Command Prompt?
- How do I escape ampersands in batch files?
- Batch script: how to check for admin rights
- Setting a system environment variable from a Windows batch file?
- Windows XP or later Windows: How can I run a batch file in the background with no window displayed?
- How to correct variable overwriting misbehavior when parsing output?
- FORFILES date -after- (date calc in cmd file)
- Create an empty file on the commandline in windows (like the linux touch command)
- What is the proper way to test if a parameter is empty in a batch file?
- XCOPY still asking (F = file, D = directory) confirmation
- Creating a file name as a timestamp in a batch job
- What is the Windows equivalent of the diff command?
- Is there an equivalent source command in Windows CMD as in bash or tcsh?
- How to echo “2” (no quotes) to a file, from a batch script?
- Rename all files in a directory with a Windows batch script
- Cannot run Maven using `mvn -D` argument within Microsoft Powershell, but works in Command Prompt
- Batch file encoding
- Finding parent process ID on Windows
- UTF-8 in Windows 7 CMD [duplicate]
- windows batch file with goto command not working
- ERRORLEVEL vs %ERRORLEVEL% vs exclamation mark ERRORLEVEL exclamation mark