Page 1 of 2 12 LastLast
  1.    30 May 2015 #1
    Join Date : Apr 2014
    Space coast of Florida
    Posts : 5,373
    Windows 10 Pro X64 16299.19

    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:

    Click image for larger version. 

Name:	cmdNotAdmin.png 
Views:	792 
Size:	86.0 KB 
ID:	20287

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

    Click image for larger version. 

Name:	cmdNotAdmin2.png 
Views:	30 
Size:	6.8 KB 
ID:	20288

    What I should get is this:
    Click image for larger version. 

Name:	cmdNotAdmin3.png 
Views:	22 
Size:	6.9 KB 
ID:	20289

    This worked in previous builds including 10122.
      My ComputersSystem Spec
  2.    30 May 2015 #2
    Join Date : Sep 2014
    Nashville, TN
    Posts : 3,143
    Windows 10 Pro

    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 ComputerSystem Spec
  3.    31 May 2015 #3
    Join Date : Oct 2013
    Penns Forrest
    Posts : 3,506
    Win_8.1-Pro, Win_10.1607-Pro, Mint_17.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 ComputerSystem Spec
  4.    31 May 2015 #4
    Join Date : Apr 2014
    Space coast of Florida
    Posts : 5,373
    Windows 10 Pro X64 16299.19
    Thread Starter

    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.

    Click image for larger version. 

Name:	CmdProp1.png 
Views:	571 
Size:	10.4 KB 
ID:	20367

    Click image for larger version. 

Name:	CmdProp2.png 
Views:	573 
Size:	12.7 KB 
ID:	20368
      My ComputersSystem Spec
  5.    31 May 2015 #5
    Join Date : Jan 2015
    Posts : 273
    w7 pro - ( Server 2012 build 9200 ) - Server 2016 - Mint 18.2

    Apologize Ztruker if not expected but
    why not just use Command Prompt (Admin) from the Win X power menu?
      My ComputerSystem Spec
  6.    31 May 2015 #6
    Join Date : Apr 2014
    Space coast of Florida
    Posts : 5,373
    Windows 10 Pro X64 16299.19
    Thread Starter

    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 ComputersSystem Spec
  7.    01 Jun 2015 #7
    Join Date : Oct 2013
    Penns Forrest
    Posts : 3,506
    Win_8.1-Pro, Win_10.1607-Pro, Mint_17.3

    Quote Originally Posted by Ztruker View Post
    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.

    Click image for larger version. 

Name:	cmd-sm.PNG 
Views:	554 
Size:	4.9 KB 
ID:	20431

    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 ComputerSystem Spec
  8.    01 Jun 2015 #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 ComputerSystem Spec
  9.    01 Jun 2015 #9
    Join Date : Sep 2014
    Nashville, TN
    Posts : 3,143
    Windows 10 Pro

    Quote Originally Posted by Slartybart View Post
    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.
    Click image for larger version. 

Name:	cmd-sm.PNG 
Views:	554 
Size:	4.9 KB 
ID:	20431

    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 ComputerSystem Spec
  10.    01 Jun 2015 #10
    Join Date : Oct 2013
    Penns Forrest
    Posts : 3,506
    Win_8.1-Pro, Win_10.1607-Pro, Mint_17.3

    Quote Originally Posted by Mystere View Post
    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

    Click image for larger version. 

Name:	x2.PNG 
Views:	19 
Size:	17.4 KB 
ID:	20491

    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 ComputerSystem Spec

 
Page 1 of 2 12 LastLast


Similar Threads
Thread Forum
General Tips Open Command Prompt in Windows 10
How to Open a Command Prompt in Windows 10 A command prompt is an entry point for typing computer commands in the Command Prompt window. By typing commands at the command prompt, you can perform tasks on your computer without using the Windows...
Tutorials
Command Prompt Experimental changes
Anyone figured out a use for the Opacity setting for Command Prompt on the Experimental tab? I've tried it at many different settings and I just can't see a use for it.
General Support
SFC wont run from boot command prompt, says ....
SFC wont run from boot command prompt, says there are other pending actions and needs to reboot. Rebooting does no good. in other win OS this command, dism.exe /image:c:\/cleanup-image /revertpendingactions would fix this issue. Edit: I just...
General Support
Command Prompt gets welcome improvements in Windows 10
Read more...
Windows 10 News
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:59.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums