Elevate cmd to admin with command prompt? [duplicate]
Is there anyway to enable administrator access instead of having to right click command prompt and run as administrator?
I tried runas /user:administrator CMD (prompts for password) net user administrator /active:yes (System error 5 has occurred. Access is denied.) runas /user:administrator luaexec.exe -w -f cmd.exe /k
This is on my local machine running windows 8 and have no passwords on any accounts
You can't change the permission from a current CMD.exe. You have to restart it. This is a Windows limitation. I use NirCmd with the elevate switch to start tools elevated.