windows run cmd as administrator code example
Example 1: how to activate administrator account in windows 10 command prompt
net user administrator /active:yes
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