Published by


Brink's Avatar
Administrator

Posts: 23,704

Show Printable Version 


How to Create an Elevated Command Prompt Shortcut in Windows 10

information   Information
A command prompt is an entry point for typing computer commands in the Command Prompt window. By typing commands in an elevated command prompt, you can perform tasks that require administrator rights on your computer without using the Windows graphical interface.

This tutorial will show you how to create an elevated command prompt shortcut in Windows 10.

You must be signed in as an administrator to be able to use this shortcut.


EXAMPLE: Elevated command prompt
Click image for larger version. 

Name:	Elevated_command_prompt.png 
Views:	82 
Size:	23.2 KB 
ID:	113549


Here's How:

1. Right click or press and hold on an empty area on your desktop, and click/tap on New and Shortcut.

2. Enter either command below into the location area, and click/tap on Next. (see screenshot below)

%ComSpec% /k

OR

%windir%\System32\cmd.exe /k

Name:  Elevated_command_prompt_shortcut-1.png
Views: 470
Size:  12.5 KB

3. Enter a name (ex: "Elevated Command Prompt") you want for the shortcut, and click/tap on the Finish button. (see screenshot below)

Click image for larger version. 

Name:	Elevated_command_prompt_shortcut-2.png 
Views:	114 
Size:	43.0 KB 
ID:	113551

4. Right click or press and hold on the new shortcut, and click/tap on Properties.

5. Click/tap on the Shortcut tab, then click/tap on the Advanced button. (see screenshot below)

Click image for larger version. 

Name:	Elevated_command_prompt_shortcut-3.png 
Views:	101 
Size:	67.3 KB 
ID:	113552

6. Check the Run as administrator box, and click/tap on OK. (see screenshot below)

Click image for larger version. 

Name:	Elevated_command_prompt_shortcut-4.png 
Views:	91 
Size:	55.0 KB 
ID:	113553

7. Click/tap on the Change Icon button. (see screenshot below)

Click image for larger version. 

Name:	Elevated_command_prompt_shortcut-5.png 
Views:	74 
Size:	67.6 KB 
ID:	113554

8. In the line under "Look for icons in this file", copy and paste the location below, and press Enter. (see screenshot below)

%SystemRoot%\System32\imageres.dll

Click image for larger version. 

Name:	Elevated_command_prompt_shortcut-6.png 
Views:	97 
Size:	152.4 KB 
ID:	113555

9. Select the icon highlighted in blue above, and click/tap on OK. (see screenshot above)
NOTE: You could use any icon that you would like instead though.

10. Click/tap on OK. (see screenshot below step 7)

11. If you like, you can Pin to Taskbar, Pin to Start, add to All apps, add to Quick Launch, assign a keyboard shortcut to, or move this shortcut to where you like for easy use.


That's it,
Shawn