If you find yourself opening administrative command prompts all the time, you can create a shortcut on the taskbar:
- Find Command Prompt in the search results. (Searching for
cmd
works.) - Right-click it and choose Pin to taskbar.
- Open the taskbar shortcut's properties by right-clicking the icon, then right-clicking the Command Prompt entry that appears and choosing Properties.
- On the Shortcut tab, click the Advanced button.
- Check Run as administrator and OK out of the properties window.
You can now activate that shortcut by holding the Windows key and pressing the number that represents the position of that icon (not including the standard Windows 10 desktop switcher icon). For example, if your command prompt icon is the second pinned item, pressing Windows+2 would activate it. Pressing Alt+Y accepts the UAC prompt. That's just two keyboard commands, for a total of four keys, no mouse.