Or how to run a command with elevated privileges on Windows.
Tried to run a
chkdsk this morning via a Windows account that wasn’t in the Administrators group and found out that I couldn’t do so. This was when I chanced, by searching t’internet, upon the Control (Ctrl), Shift and Enter magic key combination, never heard of this! Using these keys, instead of just Enter, runs the selected command with Admin privileges, fab!
Try this solution, posted as a fix for Windows 7 but worked for me under Windows 10.
Press Windows key and R, a command box should appear.
Into this box, the “Open:” field, type
control userpasswords2 and hit the enter key.
This should display the “User Accounts” screen, in Windows 7. From here select the user name, in the main table, and uncheck the “Users must enter a user name and password to use this computer.”
A click on the Apply button will open the “Automatically Log On” window. Enter the password, and confirm it, to add the password to the system so that it does not need to be entered during startup.