Run as Administrator in Windows 10  

Page 3 of 5 FirstFirst 12345 LastLast

  1. Posts : 4
    windows 10
       #20

    Brink said:
    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 Computer


  2. Posts : 164
    Windows 10 x64
       #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 Computer

  3. Brink's Avatar
    Posts : 56,204
    64-bit Windows 10 Pro for Workstations build 21354
    Thread Starter
       #22

    unko said:
    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 Computers


  4. Posts : 13
    Windows 10
       #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 Computer

  5. Brink's Avatar
    Posts : 56,204
    64-bit Windows 10 Pro for Workstations build 21354
    Thread Starter
       #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 Computers


  6. Posts : 13
    Windows 10
       #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.

    Run as Administrator in Windows 10-chrome-runasadmin.jpg

    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 Computer

  7. Brink's Avatar
    Posts : 56,204
    64-bit Windows 10 Pro for Workstations build 21354
    Thread Starter
       #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 Computers


  8. Posts : 13
    Windows 10
       #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 Computer

  9. Brink's Avatar
    Posts : 56,204
    64-bit Windows 10 Pro for Workstations build 21354
    Thread Starter
       #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 Computers


  10. Posts : 1
    windows 10
       #29

    So I have an instance where an add-on in Excel requires right-clicking and having the Excel program run as administrator. I was trying to bypass this by letting the shortcut always run as admin, but when I got to that page under advanced, both of the options in that box are greyed out and inaccessible. This machine is on a domain and the user has domain admin access. UAC is turned off. Can you think of a reason as to why the advanced shortcut properties for Excel would be greyed out. It is Office 2016 Pro +.
      My Computer


 
Page 3 of 5 FirstFirst 12345 LastLast

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 Mixed Reality Phone


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




Windows 10 Forums