Windows 10: Run as Administrator in Windows 10  

Page 3 of 3 FirstFirst 123
  1.    09 Dec 2015 #20

    Brink said: View Post
    This below will give you a Open Command Window Here as Administrator context menu that will hopefully help.

    Open Command Window Here as Administrator - Windows 7 Help Forums
    Brink I am sure you agree with me that many users open a great number of console instances in a working day. Windows 10 seems to sacrifice convenient comparing to the mighty windows 7. I am a developer more than 20 years and I am forced to spend my time to find solutions to such common issues. It looks again that the windows 10 team borrowed bad decisions from windows 8 and they need to reconsider. For me and all my colleagues using mouse is not an option.
      My ComputerSystem Spec

  2.    01 Mar 2017 #21

    I have a bat file that i need to be launched at each reboot. However, it works only with admin rights.

    So what's the code i should type in it so it automatically gets admin rights? Without it, it won't work on 10!
      My ComputerSystem Spec


  3. Posts : 29,304
    64-bit Windows 10 Pro build 17672
    Thread Starter
       01 Mar 2017 #22

    unko said: View Post
    I have a bat file that i need to be launched at each reboot. However, it works only with admin rights.

    So what's the code i should type in it so it automatically gets admin rights? Without it, it won't work on 10!
    Hello unko,

    By default, Windows will not run anything elevated at startup for security reasons.

    You might see if you may be able to use the method in the tutorial below instead to do what you're wanting though. It'll show you how to create an elevated task to run the commands you need, create an elevated shortcut of this task, and place the shortcut in your Startup folder to have it run elevated at startup for you.

    Elevated Shortcut without UAC - Create in Windows 10
      My ComputersSystem Spec

  4.    31 Jan 2018 #23

    What happens internally when you click the "Run as Administrator" checkbox in the "Change settings for all users" dialog?

    I check the box and the registry key is created. I uncheck the box and the registry key is removed. I add the registry key and the box is checked. I remove the registry key and the box is unchecked.

    However... while changing the registry key does change the checkbox, the file's behavior doesn't change.

    This means if I create the registry key, the file won't be run as an administrator even though the box is now checked. If I remove the registry key, the file will be run as an administrator even though the box is now unchecked. Checking or unchecking the box manually is the only way to affect the behavior, which means if I want the file to be run as an administrator for example I have to uncheck the box and then check it again, since it's already checked.

    Is this some kind of Windows bug? Or is the "real" setting stored somewhere else?
      My ComputerSystem Spec


  5. Posts : 29,304
    64-bit Windows 10 Pro build 17672
    Thread Starter
       31 Jan 2018 #24

    Hello Kyle,

    This also depends on if the app requests elevation natively by default or not.

    Please go ahead and post a screenshot showing your registry settings for this app like in Option Eleven to see if anything may stand out.
      My ComputersSystem Spec

  6.    31 Jan 2018 #25

    By the way, I forgot to say it... great guide!

    Here's a screenshot as requested. I don't believe it reveals anything my comment does not.

    Click image for larger version. 

Name:	Chrome RUNASADMIN.jpg 
Views:	21 
Size:	261.6 KB 
ID:	174931

    To provide more information, the faulty behavior applies only to HKEY_LOCAL_MACHINE. HKEY_CURRENT_USER behaves as expected.

    I'm not the only one who has encountered this problem, so please test it for yourself. Change the HKEY_LOCAL_MACHINE value for some standard exe (I tried Chrome) and then try running that exe.

    EDIT: In case you're going to comment on the missing tilde, that makes no difference. The tilde is just used to indicate that a value should append rather than replace. And yes, of course I've tried it both ways.
      My ComputerSystem Spec


  7. Posts : 29,304
    64-bit Windows 10 Pro build 17672
    Thread Starter
       31 Jan 2018 #26

    Normally, you wouldn't want to have a web browser "Run as administrator" for security reasons.

    It's odd that it would work for you if set via properties, but not via regedit since it's the same settings.

    If anything is set in HKLM, it would override HKCU.

    Did you already try restarting the computer after setting HKLM to see if that may help?
      My ComputersSystem Spec

  8.    31 Jan 2018 #27

    Yes, restarting does nothing. And never mind the web browser thing. Please try it with any program.

    Here's an example of other people noticing that it doesn't work with HKLM specifically: How to access the value of
      My ComputerSystem Spec


  • Posts : 29,304
    64-bit Windows 10 Pro build 17672
    Thread Starter
       31 Jan 2018 #28

    Hmm, I'm seeing the same thing when manually setting HKLM.

    It appears something has changed for HKLM, but I'm not seeing anything else different than what's in the tutorial when monitoring with Process Explorer.

    For now, it would be best to set HKLM via properties instead.
      My ComputersSystem Spec


  •  
    Page 3 of 3 FirstFirst 123

    Tutorial Categories

    Run as Administrator in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Xbox Windows Phone


    Related Threads
    How to Enable or Disable Built-in Elevated Administrator Account in Windows 10 This tutorial will show you how to enable or disable the hidden built-in elevated Administrator account in Windows 10. You must be signed in as an administrator...
    Administrator Account Dumbed Down in Win10 in User Accounts and Family Safety
    Starting to find that the built-in Administrator account is a bit crippled - "This app can't open ... can't be opened using the Built-in Administrator account. Sign in with a different account and try again." (I always log in with the built-in...
    administrator group in AntiVirus, Firewalls and System Security
    I forget; how do i make my user a member of the administrator group?
    I pinned Command Prompt to the Taskbar then changed the properties to always Run as Administrator. Setting took but is not obeyed: 20287 When I click on the icon in the Taskbar I get: 20288 What I should get is this:
    Solved Appointing System Administrator in Windows Updates and Activation
    I can't change my Windows Update settings. It says 'Some settings are managed by your system administrator' How do I become the System Administrator? My user account type is Administrator! My problem may be linked to the fact that I deleted...
    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:10.
    Find Us