how to run cmd in windows 10 as administrator code example
Example 1: run cmd as administrator command line
powershell -command "start-process cmd -verb runas"
Example 2: how to run cmd run administrator using script
@echo off
break off
title C:\Windows\system32\cmd.exe
cls
:cmd
set /p cmd=C:\Enter Command:
%cmd%
echo.
goto cmd