How do I open a Command Prompt as Administrator in one click?


  1. Posts : 5,048
    Windows 10/11 Pro x64, Various Linux Builds, Networking, Storage, Cybersecurity Specialty.
       #1

    How do I open a Command Prompt as Administrator in one click?


    Hi.

    I think that I was able to do this before and now I can't.

    What I would like to do is twofold -

    1) Have a desktop shortcut for the Command Prompt on the desktop to open as Administrator.

    2) Be able to use Windows+X and have the capability to open a normal Command Prompt and also a pick to open as Administrator.
    PowerShell has this capability, but not the Command Prompt.

    I found this older article, but to no avail:

    How to Open the Command Prompt as Administrator in Windows 8 or 10

    Thanks, folks.

      My Computer


  2. Posts : 68,946
    64-bit Windows 11 Pro for Workstations
       #2

    Hey Brian,

    For a desktop shortcut: Create Elevated Command Prompt Shortcut in Windows 10

    If you like, you can have both command prompt options show in the Win+X menu instead of PowerShell.

    Show Command Prompt or Windows PowerShell on Win+X menu in Windows 10

    OR

    Add Custom Shortcuts to Win+X Quick Link Menu in Windows 10
      My Computers


  3. Posts : 5,048
    Windows 10/11 Pro x64, Various Linux Builds, Networking, Storage, Cybersecurity Specialty.
    Thread Starter
       #3

    Hi Shawn -

    Yep. That would do it.

    How about PowerShell and Command Prompt, both non-Admin and Admin? (Four picks.)

    Thanks!
      My Computer


  4. Posts : 68,946
    64-bit Windows 11 Pro for Workstations
       #4

    You could use the second tutorial below to choose between have the admin and non-admin command or powershell on the Win+X menu....


    .... or add custom shortcuts for them to the Win+X menu with the last tutorial.
      My Computers


  5. Posts : 5,048
    Windows 10/11 Pro x64, Various Linux Builds, Networking, Storage, Cybersecurity Specialty.
    Thread Starter
       #5

    Brink said:
    You could use the second tutorial below to choose between have the admin and non-admin command or powershell on the Win+X menu.... .... or add custom shortcuts for them to the Win+X menu with the last tutorial.
    Great stuff.

    Thanks, Shawn!
      My Computer


  6. Posts : 68,946
    64-bit Windows 11 Pro for Workstations
       #6

    You're most welcome Brian.
      My Computers


  7. Posts : 32
    Windows 10 Pro x64 (build 20262)
       #7

    I use powershell as admin by right clicking start and choosing the option.
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 09:18.
Find Us




Windows 10 Forums