How do I Auto run command prompt as administrator already on taskbar?

Page 2 of 3 FirstFirst 123 LastLast

  1. Posts : 68,880
    64-bit Windows 11 Pro for Workstations
       #11
      My Computers


  2. Posts : 68
    Windows 10 Professional 21H1
    Thread Starter
       #12

    Paul Black said:
    Excellent news.
    Perhaps you could share which solution worked for you so that anyone with the same problem coming across this thread can also benefit.

    Thanks.
    I created a command prompt shortcut on my desktop. Then I went to properties, then the Advanced tab and checked "Run as Administrator". This was all on the desktop so far. Then I pinned that onto the taskbar and deleted the desktop shortcut. So at that point, I had a command prompt on the task bar that had Admin privileges.

    bob

    PS The registry tweak (Item 11 in the tutorial) did not work in my case.
      My Computer


  3. Posts : 1,807
    Windows 10 Pro 21H1 19043.1348
       #13

    Berton said:
    I open a Command Prompt as Administrator then right-click that icon on the Taskbar and choose Pin to taskbar.
    Attachment 326766
    Berton's method has always worked for me.

    I've always added this taskbar shortcut for Administrative Command Prompt since I started using Windows 10.
      My Computer


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

    bobhurd said:
    PS The registry tweak (Item 11 in the tutorial) did not work in my case.
    Hello Bob,

    Which part in step 11 didn't work for you?

    Create Elevated Command Prompt Shortcut in Windows 10
      My Computers


  5. Posts : 68
    Windows 10 Professional 21H1
    Thread Starter
       #15

    Brink said:
    Hello Bob,
    Which part in step 11 didn't work for you?
    Create Elevated Command Prompt Shortcut in Windows 10
    I made the regedits as instructed and typed them in carefully and I still didn't have Admin privileges. So I thought maybe I need to reboot then that will get it to work. Nope. Didn't work for me. So the other method I described above did and I was happy about that.
      My Computer


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

    bobhurd said:
    I made the regedits as instructed and typed them in carefully and I still didn't have Admin privileges. So I thought maybe I need to reboot then that will get it to work. Nope. Didn't work for me. So the other method I described above did and I was happy about that.
    If steps 4 to 6 were done on the shortcut, it should prompt with UAC to run as administrator.

    Create Elevated Command Prompt Shortcut in Windows 10
      My Computers


  7. Posts : 68
    Windows 10 Professional 21H1
    Thread Starter
       #17

    Brink said:
    If steps 4 to 6 were done on the shortcut, it should prompt with UAC to run as administrator.
    Create Elevated Command Prompt Shortcut in Windows 10
    I don't mind clicking the UAC. I do mind having to click Run as administrator every time I open a command prompt.
    That's the problem that was solved here. Thank you and the others, of course, for helping me get this to work!
      My Computer


  8. Posts : 21,421
    19044.1586 - 21H2 Pro x64
       #18

    Bree said:
    Unfortunately for @bobhurd while you can create a shortcut on your desktop to launch an admin command prompt, you cannot pin a shortcut to the taskbar.


    Attachment 326760
    Sure you can. I just did it now and have done it in the past. Dragging it is equivalent to pinning the shortcut on the taskbar.
      My Computer


  9. Posts : 1,807
    Windows 10 Pro 21H1 19043.1348
       #19

    Bree said:
    Unfortunately for @bobhurd while you can create a shortcut on your desktop to launch an admin command prompt, you cannot pin a shortcut to the taskbar.
    Attachment 326760

    I use the method Berton described.

    How do I Auto run command prompt as administrator already on taskbar?-0410-cmd-taskbar-shortcut.jpg

    How do I Auto run command prompt as administrator already on taskbar?-0410-acp-window.jpg


    I suppose drag n drop to the taskbar is impossible.
      My Computer


  10. Posts : 31,622
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #20

    W10 Tweaker said:
    I use the method Berton described.
    .....I suppose drag n drop to the taskbar is impossible.
    Yes, that's impossible. That was the method I tried and got the red 'not allowed' sign.

      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 18:57.
Find Us




Windows 10 Forums