How to Set Up Command Prompt and PowerShell Keyboard/Desktop Shortcuts

How to Set Up Command Prompt and PowerShell Keyboard/Desktop Shortcuts:

Command Prompt and PowerShell are two essential tools for the command line user on Windows PC. If you access these tools frequently, you can add Command Prompt and PowerShell shortcuts to your desktop for quick access.

You can also assign a keyboard shortcut these apps.

Create Command Prompt Desktop Shortcut on Windows 10

You can add a Command Prompt shortcut to your desktop the same way you add any other shortcut. Once you’ve added the shortcut, you can Change its name and icon to your liking.

to start:

  1. open to start menu and search command prompt.
  2. right click command prompt Select more in search results open file Location.
  1. A File Explorer window opens with a Command Prompt shortcut. Here, right-click command prompt shortcut again and select open file Location.
  1. Now you should see a file named cmd.exe, which is a command prompt executable file. right-click cmd.exe file and select sending > Desktop (create shortcut).
  1. Access your desktop, and you should find a new shortcut called cmd.exe – shortcut are you there Double-click on this shortcut to open Command Prompt.
  1. To rename a shortcut, right-click the shortcut, select change name, enter a new name, and press recorded.

Run Command Prompt Shortcut with Administrator Rights

To run certain commands, you will need administrative privileges in the Command Prompt. You can configure your desktop Command Prompt shortcut so that it always opens the tool with administrator privileges.

To do this:

  1. right-click command prompt shortcut on your desktop and select a quality.
  1. On a quality window, select short road tab at the top.
  2. In short road tab, select the button that says advanced.
  1. A new window opens on your screen. Here, enable run as administrator checkbox and select Okay on the bottom.
  1. back to back a quality window, select applicable and then choose Okay on the bottom.
  1. double click command prompt shortcut, and it should now open with administrative privileges.

Create a Keyboard Shortcut to Launch Command Prompt

You can make it even easier to open Command Prompt assign keyboard shortcuts On the desktop shortcut of the tool. Windows allows you to choose a custom combination of keys for the shortcut.

To assign a shortcut:

  1. right-click command prompt shortcut on your desktop and select a quality.
  2. Choose short road tab on top of a quality Window.
  1. In short road pick up the tab shortcut key field. Know that whatever keyboard shortcut you assign here, Windows will prefix it with Ctrl + Alt.
  2. Press the key you want to assign to the Command Prompt shortcut. For example, press C. shortcut key field should be displayed Ctrl + Alt + C.
  1. Then, choose applicable after Okay Click below to save your changes.

Add Command Prompt Shortcut to Windows Taskbar

You may want to pin command prompt your taskbar To open the tool with one click:

  1. right-click command prompt shortcut on your desktop and select pin to Taskbar.
  1. The tool is now on your taskbar.
  2. To remove this taskbar shortcut, right-click on the shortcut and select unpin from taskbar.

Create PowerShell Desktop Shortcuts on Windows 10

if you use powershellAdding a shortcut to PowerShell to your desktop is as easy as adding a shortcut to any other app.

  1. launch start menu and search windows powershell.
  2. right click windows powershell Select more in search results open file Location.
  1. On the following screen, right-click windows powershell choose more open file Location.
  1. now you should see powershell.exe. Right-click on this file and select sending > Desktop (create shortcut).
  1. now you have one powershell shortcut on your Windows desktop.

run powershell shortcut with administrator rights

If you run commands that require administrative privileges, configure the PowerShell shortcut to always open the tool with administrator rights.

  1. right-click powershell shortcut on your desktop and select a quality.
  1. Choose short road tab in a quality.
  2. Choose advanced button in short road tab.
  1. In advanced properties Activate the window that opens run as administrator box and then select Okay on the bottom.
  1. Choose applicable and then choose Okay under the window.
  2. your powershell The shortcut will now always open with administrator rights.

Create a Keyboard Shortcut to Launch PowerShell

You can assign a shortcut to the PowerShell desktop so that the tool opens with a keystroke.

  1. right-click powershell shortcut on your desktop and select a quality.
  1. Choose short road tab in a quality.
  2. Choose shortcut key field and type the keyboard shortcut you want to use. Note that your shortcut will be preceded by Ctrl + Alt.
  3. For example, if you assign p, Windows will treat it as Ctrl + Alt + p.
  1. Choose applicable and then choose Okay at the bottom to save your shortcut.

Add PowerShell Shortcuts to Windows Taskbar

For quick access, you can add PowerShell shortcut to your taskbar.

  1. right-click powershell shortcut on your desktop and select pin to Taskbar.
  1. A PowerShell icon has now been added to your taskbar.
  2. To remove this shortcut, right-click the shortcut on the taskbar and select unpin from taskbar.

Bonus Tip: Open Command Prompt or PowerShell’s Taskbar Shortcut With a Keyboard Shortcut

By default, Windows 10 assigns a keyboard shortcut to each app on the taskbar. These shortcuts use a numerical system. Here, the app on the far left of the taskbar is assigned a number, and then two, three, and so on.

To use this shortcut, you would press windows key and then the number of your app on the taskbar. For example, if the Command Prompt is the fifth numbered shortcut on the taskbar, you would use windows + 5 To open the utility.

You can drag the icons on the taskbar in any direction (left or right), and their shortcuts will change accordingly.