run command 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 activate administrator account in windows 10 command prompt
net user administrator /active:yes