Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

How to Pin Command Prompt to the Taskbar and Run It as Administrator

Pin Command Prompt in Windows, elevate it for a single task, or configure its shortcut to request administrator access each time.

Table of Contents

Search for Command Prompt from Start, then choose Pin to taskbar if that option appears. Keep the pinned shortcut for normal commands and request administrator access when a task requires it.

Pin Command Prompt

  1. Open Start and type cmd. In the result’s menu, choose Pin to taskbar if available.
  2. If you don’t see that option, open Command Prompt, right-click its taskbar icon, and choose Pin to taskbar. On newer Windows 11 systems, the running window may be hosted by Windows Terminal. If the icon belongs to Terminal, use the Start result or a dedicated cmd.exe shortcut to pin Command Prompt itself.

How to pin Command Prompt to the Taskbar and run it with Admin rights Picture 1

How to pin Command Prompt to the Taskbar and run it with Admin rights Picture 2

How to pin Command Prompt to the Taskbar and run it with Admin rights Picture 3

Open one administrator session

Search for Command Prompt in Start, right-click the result, and choose Run as administrator. Review the User Account Control prompt and approve it when you intended to elevate. A standard account may need a valid administrator’s credentials. For ordinary diagnostics such as ping, a normal Command Prompt usually works.

Make a dedicated shortcut request elevation each time

  1. Right-click the pinned Command Prompt icon, then right-click Command Prompt in the menu and choose Properties. If you can’t reach shortcut properties from the pin, create a desktop shortcut with %SystemRoot%System32cmd.exe as its target and open that shortcut’s properties.
  2. In the Shortcut tab, choose Advanced, select Run as administrator, and confirm the changes.
  3. Close the old window and launch the configured shortcut. Approve the prompt when appropriate and look for Administrator in the window title. Clear the same checkbox if you want the shortcut to open normally again.

How to pin Command Prompt to the Taskbar and run it with Admin rights Picture 4

How to pin Command Prompt to the Taskbar and run it with Admin rights Picture 5

How to pin Command Prompt to the Taskbar and run it with Admin rights Picture 6

How to pin Command Prompt to the Taskbar and run it with Admin rights Picture 7

How to pin Command Prompt to the Taskbar and run it with Admin rights Picture 8

Shortcut elevation still uses Windows User Account Control. If administrator access is unavailable, see how Windows administrator permissions work.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.