Windows 10: HKLM Run key doesn't seem to be triggering on W10 - but works on W7

Discus and support HKLM Run key doesn't seem to be triggering on W10 - but works on W7 in Windows 10 Support to solve the problem; Hello folks. I could use a sanity check on this one. I've got an AutoIt EXE that I've built to accomplish a couple of simple tasks, and I need this... Discussion in 'Windows 10 Support' started by FlatJackBob, Jan 23, 2018.

  1. HKLM Run key doesn't seem to be triggering on W10 - but works on W7


    Hello folks.

    I could use a sanity check on this one. I've got an AutoIt EXE that I've built to accomplish a couple of simple tasks, and I need this to run when a user logs into the machine. So I've got the EXE tucked away at "C:\Windows\Temp\EXEname.exe"

    I've got a registry value in HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run to launch the EXE. On Windows 7, this runs without an issue - on Windows 10, following a reboot the key doesn't seem to be triggered. There are no other Run or RunOnce keys in HKLM\SOFTWARE or HKLM\SOFTWARE\Wow6432Node.

    A couple of things I've tried verifying
    • The path in the registry value is correct - I can launch the EXE from this path manually
    • The EXE is not being launched by Windows (verified through observance and use of procmon)
    • I've tried manually granting full control on the C:\Windows\Temp to a user account for testing and then logging in with that user to verify it's not a permissions issue.

    Any other ideas for troubleshooting, or any ideas on changes between W7 and W10?

    :)
     
    FlatJackBob, Jan 23, 2018
    #1

  2. Dual boot W7 and W10 activation

    I have been running a W7 Pro OS for some years now. I have three hard drives installed.

    I created a seperate 25GB partition (H) on one of the spare hard drives that was not the C drive.

    I installed W10 from a downloaded "setup" app from MS.

    On turning on the PC I get the choice of what OS to run, W7 or W10.

    W7 runs just as it used to.

    W10 loads and opens as I would expect, but is apparently not activated. It will not accept the W7 Key, and I don't know how to obtain the W10 activation Key. I had assumed that as W7 is activated and associated with the same mother board, that would allow
    me to use W10 fully activated as well. Can I activate W10 or must I puschase an activation key for W10 Pro, which seems to go against the MS offer of a free OS upgrade to holders of W7/8 licences.

    Thanks for your help,

    Regards

    David D
     
    DavidDownes, Jan 23, 2018
    #2
  3. WINDOWS 10 ACTIVATION WOES

    Yes I've tried the original w7 key plus about 4 or 5 other w7 keys and three w10 keys

    manual activation doesn't work it keeps coming up with error codes and saying unable to

    reach activation servers
     
    George_Reynolds, Jan 23, 2018
    #3
  4. dalchina New Member

    HKLM Run key doesn't seem to be triggering on W10 - but works on W7

    Hi, I note:
    I have some entries there, but of course it depends what you have installed:

    HKLM Run key doesn't seem to be triggering on W10 - but works on W7 [​IMG]


    - but all that says is, well, surprise, they're used in Win 10 as you'd expect.

    You could try putting a shortcut here:
    C:\Users\-name-\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

    or here
    = any
    C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp
     
    dalchina, Jan 23, 2018
    #4
  5. Thanks for the reply!

    I need this to run for all users - so C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup would be a better option - however, I'm more concerned with determining why this key isn't firing off when it should, as opposed to finding another way to launch the EXE.
     
    FlatJackBob, Jan 23, 2018
    #5
  6. dalchina New Member
    Suggest you post a screenshot of your reg. key.

    Is the entry still there after you reboot?
     
    dalchina, Jan 23, 2018
    #6
  7. lx07 Win User
    If you mean here:


    HKLM Run key doesn't seem to be triggering on W10 - but works on W7 [​IMG]


    The HKLM, "Software\Microsoft\Windows\CurrentVersion\Run(or RunOnce) definitely work under Windows 10. I in fact changed the authority to read only so Windows 10 would not be able to add (and then re-open) apps after a restart which is something I don't like.

    If it isn't running make sure you are doing restart not shutdown. If that works then turn off fast startup and/or check authority on the keys.

    It works the same as in 7 (or at least it should). Make sure your .exe isn't trying to run under admin privileges - that will not work (but I don't think it did in 7 either).
     
  8. Callender Win User

    HKLM Run key doesn't seem to be triggering on W10 - but works on W7

    Callender, Jan 23, 2018
    #8
  9. lx07 Win User
    You could. Or you could schedule it through Task Scheduler. Depends what you want to do.

    If the OP wants it to be for all users it would have to be %ProgramData%\Microsoft\Windows\Start Menu\Programs\StartUp
    not %appdata%\Microsoft\Windows\Start Menu\Programs\StartUp though.

    In any case, any of these methods will only work if your user is part of the Administrators group. You can't run Admin tasks for a standard user at logon or startup. The OP hasn't said if the exe requires admin rights and if the user is a standard or admin user although I read from "a simple task" "when a user logs on" it doesn't require admin rights and is for any user (not just a specific one).

    In that case sticking a value "Whatever" with Value Data "C:\Temp\Whatever.exe" in HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run should definitely work (it does for me).

    The only issue I can think is the OP is using C:\Windows\Temp\Whatever.exe and perhaps C:\SomewhereElse\Whatever.exe would be better (i.e. not using the Windows directory). That is only a guess though but sticking an exe in a temp folder seems a bit weird as a long term solution as something like Disk Cleanup would presumably delete it eventually.
     
  10. dalchina New Member
    We'll know more if @FlatJackBob posts a screenshot- a bit more info.
     
    dalchina, Jan 23, 2018
    #10
  11. For clarification, this wasn't an issue of "we have no Run/RunOnce keys" or "none of our Run/RunOnce keys work" it was an issue with a specific Run key for an app that was developed in-house.

    I discovered this to be the issue before heading out for lunch today. We run a locked down image in our labs which has UAC disabled on W7. While we have neutered its ability to notify users on W10, we haven't fully disabled it. While we have it set to Never Notify, we don't want to break any of the Win10 apps, so we can't modify the EnableLUA registry value.

    In this instance, the AutoIt EXE we crafted required admin rights to properly detect elements inside a software installer GUI. Since UAC was disabled on 7, it would elevate itself and run. On 10, we were running into UAC not displaying a notification (as our settings intended) but even though an Administrator was logging in, they weren't trying to run the program specified by the key as an Administrator.

    After working out the cause of the issue we elected to go with a scheduled task that was configured to run the EXE with the highest level of permissions available when a user logs in. Almost all of our software is deployed during the initial rollout of a machine while an Administrator service account is logged in, so things are running smoothly. Well, as smoothly as they can when a software vendor decides to address HIPAA compliance issues by building a new version of their software that cannot be traditionally deployed.
    As mentioned above, this EXE was built as a helper for deploying a PITA installer for software that can no longer be automated by command line switches, is on too many workstations for us to push manually, and for reasons chosen by the software developers cannot be recaptured (securely) into an MSI with a product like AdminStudio. We've got this helper self-deleting upon a successful completion, and as you've mentioned it would be cleaned up automatically as we run Disk Cleanup at the tail end of our machine rollout.
     
    FlatJackBob, Apr 4, 2018
    #11
Thema:

HKLM Run key doesn't seem to be triggering on W10 - but works on W7

Loading...
  1. HKLM Run key doesn't seem to be triggering on W10 - but works on W7 - Similar Threads - HKLM Run key

  2. W10 from W7

    in Windows 10 Software and Apps
    W10 from W7: Cant seem to get W10 to install. it loads up perfectly fine, up until blue screen. then it just... stops. the pop up i get says ''Windows 10 installation has failed.'' ive tried everything the internet has to offer and nothing works. help me out here......
  3. Product key W7 to W10

    in Windows 10 Gaming
    Product key W7 to W10: I had a laptop with Windows 7, change it for free to windows 10 when there was the chance. My laptop broke and I only have the number key that was in the back of it, the windows 7 key. There is any way to know if that key is available for another PC? Or maybe if I buy a new...
  4. Product key W7 to W10

    in Windows 10 Software and Apps
    Product key W7 to W10: I had a laptop with Windows 7, change it for free to windows 10 when there was the chance. My laptop broke and I only have the number key that was in the back of it, the windows 7 key. There is any way to know if that key is available for another PC? Or maybe if I buy a new...
  5. Product key W7 to W10

    in Windows 10 Updates and Activation
    Product key W7 to W10: I had a laptop with Windows 7, change it for free to windows 10 when there was the chance. My laptop broke and I only have the number key that was in the back of it, the windows 7 key. There is any way to know if that key is available for another PC? Or maybe if I buy a new...
  6. W7 to W10 retail version product keys.

    in Windows 10 Updates and Activation
    W7 to W10 retail version product keys.: Hi forum members. I'm hoping that someone here can shed some light on a problem I have identifying which W10 Pro upgrades I can reuse. I used to have a number of Windows7 PC's with retail Pro licenses which have now been dismantled. I had taken advantage of the free Windows10...
  7. upgrading w7 to w10

    in Windows 10 Installation and Upgrade
    upgrading w7 to w10: hello, this not my first round of trying fix windows over the years. got a older toshiba laptop L755 had windows 7 home prem. i like window 10. stupid me thinking upgrade. what could go wrong ???? made a usb drive boot for window 10. put in the laptop to totally new...
  8. upgrading W7 to W10

    in Windows 10 Installation and Upgrade
    upgrading W7 to W10: Hi. This will probably be a common question. My wife uses W7. Does not want W10. I have been told that I can copy my W10 from my PC to a USB stick and install W10 like that on to her Laptop.. Is this possible please. If so, is there any set proceedure like which files to...
  9. W7 or W10

    in Windows 10 Drivers and Hardware
    W7 or W10: Hi everyone, I have got W10 for a while. Now I have upgraded my PC. But, Lots of part of the motherboard / sound, graphic / can't work properly, because their drivers were writing for W7. Under W10 they just work on basic level. The issue about the compatibility makes lags...
  10. Upgrade W10 Edition with W7 key, possible?

    in Windows 10 Updates and Activation
    Upgrade W10 Edition with W7 key, possible?: Hello, I was sure I would be able to use W7 Pro OEM key I have spare to upgrade my W10 Home to Pro (preinstalled OEM OA), but when I try to change product key in Settings> Updates> Activation, the W7 key is refused with 0x004f210 error. Did I misunderstood the process or is...