cmd run as administrator command code example
Example 1: run cmd elevated command line
Execute the following in Run (Ctrl+R)
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
Example 3: run command for admin cmd
win + x + a