10130 - Run as Administrator not working for Command Prompt

Page 1 of 2 12 LastLast

  1. Posts : 14,046
    Windows 11 Pro X64 22H2 22621.1848
       #1

    10130 - Run as Administrator not working for Command Prompt


    I pinned Command Prompt to the Taskbar then changed the properties to always Run as Administrator.
    Setting took but is not obeyed:

    10130 - Run as Administrator not working for Command Prompt-cmdnotadmin.png

    When I click on the icon in the Taskbar I get:

    10130 - Run as Administrator not working for Command Prompt-cmdnotadmin2.png

    What I should get is this:
    10130 - Run as Administrator not working for Command Prompt-cmdnotadmin3.png

    This worked in previous builds including 10122.
      My Computers


  2. Posts : 3,257
    Windows 10 Pro
       #2

    This has something to do with new start menu. It seems that the new start menu creates its own shortcut copies, so when you update the shortcut in the normal location, it's not updating the shortcut that the shell is using.

    if you unpin the command prompt from the taskbar, then go into start->all apps->Windows System->Command Prompt and right click on that, then choose Open File location, then make sure the Start as Administrator is set on the link in the new folder that opens.. Then right click on that link and choose add to taskbar, then it correctly opens as administrator.
      My Computer


  3. Posts : 3,502
    Win_8.1-Pro, Win_10.1607-Pro, Mint_17.3
       #3

    Taskbar pinned itmes are stroed in

    %APPDATA%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar

    I pinned Cmd from All Apps and tried to change the property page, but all I got was open - no other choices on the context menu. But that's my system - I just spent too many hours trying to get access to the Start menu. Turns out that toggling all start settings unfroze it - or the previous attempts with just about every tool melted it a bit and the toggling jarred it free.

    Anyway, I was able to change the property page on the shortcut for Cmd on the taskbar in the folder above and it worked fine.

    Have you tried creating a shortcut and putting %windir%\system32\cmd.exe in the target field?
    Then change the run as admin option and pin that to the taskbar - that will show whether it's an issue as Mystere described or a more global issue. You'll have to unpin the first Cmd shortcut first.

    Start, after Win7, has always had some special features.
      My Computer


  4. Posts : 14,046
    Windows 11 Pro X64 22H2 22621.1848
    Thread Starter
       #4

    MS is still playing with stuff when they should be fixing problems. If you right click on Command Prompt on the Taskbar then right click on Command Prompt in the popup window, you get what looks like a single choice which is Open. Actually there is a little scroll bar on the right you can click on to move the window up, that way you can get to Run as Administrator and Properties.

    Very dumb design, I hope they get rid of it ASAP and go back to the way it's always worked.

    10130 - Run as Administrator not working for Command Prompt-cmdprop1.png

    10130 - Run as Administrator not working for Command Prompt-cmdprop2.png
      My Computers


  5. Posts : 321
    Windows
       #5

    Apologize Ztruker if not expected but
    why not just use Command Prompt (Admin) from the Win X power menu?
      My Computer


  6. Posts : 14,046
    Windows 11 Pro X64 22H2 22621.1848
    Thread Starter
       #6

    Habit more than anything.

    Mystere, that works, thanks - yet another band-aid.

    These are the kind of things MS should be focusing on, not continuing to break change what currently works.
      My Computers


  7. Posts : 3,502
    Win_8.1-Pro, Win_10.1607-Pro, Mint_17.3
       #7

    Ztruker said:
    MS is still playing with stuff when they should be fixing problems. If you right click on Command Prompt on the Taskbar then right click on Command Prompt in the popup window, you get what looks like a single choice which is Open. Actually there is a little scroll bar on the right you can click on to move the window up, that way you can get to Run as Administrator and Properties.

    Very dumb design, I hope they get rid of it ASAP and go back to the way it's always worked.
    Thanks, yeah I saw that tiny tiny dropdown box after my previous post. I agree, it's not useful if you can't see it.

    I think another part of it might be that Command is 'updated'. I recently noticed the thin border on the left and the unfinished scroll bar on the right. It just looks broken.

    10130 - Run as Administrator not working for Command Prompt-cmd-sm.png

    The other thing that's 'broken' is Command properties. Setting the window position and size used to carry over to any Command prompt; now it appears that a standard Cmd and an elevated Cmd have different property settings (I launched them both from the WinX menu). And finally, if you change the font, the window size adjusts to the font size. I don't recall that happening before.
      My Computer


  8. Posts : 11,247
    Windows / Linux : Arch Linux
       #8

    Hi there
    I use Powershell from Win+X menu --works fine -- I suspect command prompt if you haven't swapped it for powershell will also work fine from Win +X or right mouse from the start button.

    I'd leave the menu stuff as Ms are obviously still playing with it and if you apply various "mods" they probably won't work at the next build.

    Cheers
    jimbo
      My Computer


  9. Posts : 3,257
    Windows 10 Pro
       #9

    Slartybart said:
    Thanks, yeah I saw that tiny tiny dropdown box after my previous post. I agree, it's not useful if you can't see it.

    I think another part of it might be that Command is 'updated'. I recently noticed the thin border on the left and the unfinished scroll bar on the right. It just looks broken.
    10130 - Run as Administrator not working for Command Prompt-cmd-sm.png

    The other thing that's 'broken' is Command properties. Setting the window position and size used to carry over to any Command prompt; now it appears that a standard Cmd and an elevated Cmd have different property settings (I launched them both from the WinX menu). And finally, if you change the font, the window size adjusts to the font size. I don't recall that happening before.
    I'm not sure what you mean by "unfinished scroll bar", the scroll bar is there because it has scroll history by default now, and the properties apply to the shortcut you used. It does this even in Windows 8.
      My Computer


  10. Posts : 3,502
    Win_8.1-Pro, Win_10.1607-Pro, Mint_17.3
       #10

    Mystere said:
    I'm not sure what you mean by "unfinished scroll bar"
    Unfinished in that it is out of style.
    Win10 scroll bars are thin and disappear when not in focus.

    I'll have to check the visual on Win8.1 next time I boot it up. I think it still uses the previous window style

    Until I get around to that though, here's what a PS window looks like in 8.1
    -> basically the same windowing for all 8.1 desktop apps-close enough to exemplify the 8.1 Cmd prompt window

    10130 - Run as Administrator not working for Command Prompt-x2.png

    It's not about the scrollbar, it's about the visual - the Win10 rendition looks unfinished (sort of like a builder's square)

    In Win8.1 - when you set the properties in a std Cmd window, they apply to an Admin Cmd window as well. It's the same exe just ruining with different privileges. Not sure what's going on in Win10 - yet.

    I'm looking into more serious issues than that - so this is back burner stuff.
      My Computer


 

  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 23:31.
Find Us




Windows 10 Forums