1.    19 Oct 2015 #1
    Join Date : Oct 2015
    Posts : 6
    Win10

    Switch to non-elevated program from elevated prompt


    Hi,

    I use an administrative mode (elevated) command prompt to maneuver through most of my day. I have a code editor (in this case, Crimson Editor) open at all times, and when I need to edit a file quickly, I simply type
    cedt <filename>
    at the command prompt.

    What is happening in Win10 - which is different behavior from Win7 - is... nothing! Crimson Editor was started from the Startup folder as non-elevated, and so when I type that command in the administrative prompt, focus changes to Crimson Editor, but the requested file is not loaded!

    If I open a regular cmd prompt and try the above command, it runs as expected, and as it did in administrator mode in Win7. Is there some setting I can add/change to make this work?

    I also note that Win10 does not start programs from the startup folder if they have been set (in Properties) to run as Administrator, so starting Crimson Editor by hand at every reboot is possible but annoying. Thanks!
      My ComputerSystem Spec
  2.    19 Oct 2015 #2
    Join Date : Aug 2015
    Posts : 68
    Windows 7 & 10

    Quote Originally Posted by cniggeler View Post
    I also note that Win10 does not start programs from the startup folder if they have been set (in Properties) to run as Administrator, so starting Crimson Editor by hand at every reboot is possible but annoying. Thanks!
    That sounds like a UAC issue rather than a Windows 10 problem, did you have UAC disabled in Windows 7 by any chance? In any case, you can use task scheduler as a workaround for starting programs with administrative privileges at boot, for example see the instructions here: http://www.peerblock.com/userguide/h...accountcontrol
      My ComputerSystem Spec
  3.    19 Oct 2015 #3
    Join Date : Oct 2013
    Posts : 25,711
    64-bit Windows 10 Pro build 17046

    Hello cniggeler, and welcome to Ten Forums.

    If you like, you can use the same method in the tutorial below to create an elevated shortcut of the app that won't get a UAC prompt, and place that elevated shortcut in your Startup folder to have it run elevated at startup.

    Elevated Program Shortcut without UAC Prompt - Create - Windows 7 Help Forums
      My ComputersSystem Spec
  4.    19 Oct 2015 #4
    Join Date : Oct 2015
    Posts : 6
    Win10
    Thread Starter

    Thank you both for your replies. I will try out the Tutorial and link you each provided. I did not know how to run an elevated program from Startup before!
      My ComputerSystem Spec
  5.    19 Oct 2015 #5
    Join Date : Jul 2015
    Posts : 3,808
    10 Pro

    You can also do it the other way around and start a program as your normal user from a elevated cmd prompt using the runas command.

    If you use the /savecred parameter you'll only be asked for your password once.

    For example with your forum name and notepad
    Code:
    C:\WINDOWS\system32>runas /user:cniggeler /savecred notepad
    or to open a certain file with your program (for example C:\Windows\WindowsUpdate.log)
    Code:
    C:\WINDOWS\system32>runas /user:cniggeler /savecred "notepad \C:\Windows\WindowsUpdate.log"
    Last edited by lx07; 19 Oct 2015 at 10:25. Reason: removed added link as it is other way around
      My ComputerSystem Spec
  6.    19 Oct 2015 #6
    Join Date : Oct 2015
    Posts : 6
    Win10
    Thread Starter

    Quote Originally Posted by halasz View Post
    You can also do it the other way around and start a program as your normal user from a elevated cmd prompt using the runas command.
    I like this one too - thanks!
      My ComputerSystem Spec

 


Similar Threads
Thread Forum
General Tips Open Elevated Command Prompt in Windows 10
How to Open an Elevated Command Prompt in Windows 10 A command prompt is an entry point for typing computer commands in the Command Prompt window. By typing commands in an elevated command prompt, you can perform tasks that require...
Tutorials
General Tips See if Process is Running as Administrator (elevated) in Windows 10
How to See if Process is Running as Administrator (elevated) in Windows 10 Some legitimate applications require a full administrator access token (elevated) to perform their functions or tasks. For example, when a program that you are trying to...
Tutorials
Solved Get elevated command prompt to open in my user directory
I changed Command Prompt on my Taskbar so when I click on it, it opens as Administrator. That sets the default directory as C:\WINDOWS\system32 which I don't like, since any files I create that do not have a path specified will be created there. ...
General Support
Elevated firefox webcam overlay
so in ten (for some unholy reason) When anything in firefox uses the webcam there's a horrible and pointless overlay of the firefox logo next to a generic camera picture surrounded by orange. Any way to stop this or delete the associated overlays...
Customization
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 14:12.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums