Is it possible to switch from normal mode to administrator mode in command line? I don't want to open command line by right clicking and selecting "run as administrator". Thanks
Powershell – command line – switch to administrator mode
command-line-interfacepowershellwindows-command-prompt
Related Topic
- Change a user role from command-line in Windows
- Windows – Open Elevated “Administrator:” cmd prompt instead of “cmd prompt (Running as Administrator)”
- Nagios Monitoring – How to Manually Run a Nagios Check from the Command Line
- Linux – Send file trough FTP using command line without interactive mode
- Powershell – Run Elevated Powershell prompt from command-line
- Mysql – What’s a secure alternative to using a MySQL password on the command line
Best Answer
The answer is no. The "full administrative token" is associated with an .EXE when it's launched. You need to start a new CMD.EXE to get full-admin privs. To make UAC a bit more bearable, you can enable "auto-admin approval" through group policy.