HKCU\Run does not work, but HKLM\Run does

Orland

New Member
Messages
1
Hello,

I'm having some issues with a Windows 8.1 Pro computer.
I have a batch file which I'd like to add it to startup when a user logs in. Created a new value in HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run and restarted windows. The script does not start.

However, if I put in HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run everything works OK.
I tried this on domain computers, and workgroups and the behaviour is the same.

Can anyone shed some light? I don't understand why HKCU doesn't work.

Thank you
 

My Computer

System One

  • OS
    Windows 8.1 Pro
Hello,

I'm having some issues with a Windows 8.1 Pro computer.
I have a batch file which I'd like to add it to startup when a user logs in. Created a new value in HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run and restarted windows. The script does not start.

However, if I put in HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run everything works OK.
I tried this on domain computers, and workgroups and the behaviour is the same.

Can anyone shed some light? I don't understand why HKCU doesn't work.

Thank you

Hey, Orland

You have to look at the registry branch "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer"
There are two DWORD-parameters: "DisableCurrentUserRun" and "DisableCurrentUserRunOnce".
They should be equals 0 to run programs when user log in, not 1.

(actually just found it in my w10 pro with same issue)
 

My Computer

System One

  • OS
    Windows 10 Pro
    Computer type
    PC/Desktop
    System Manufacturer/Model
    handmade
    CPU
    i5 3470
    Motherboard
    Asus
    Memory
    32Gb
    Graphics Card(s)
    GTX980
    Browser
    IE
    Antivirus
    Defender
Back
Top