Run registry key Windows 7 x64

0

I'm trying to run a script on start-up using:

 HKCU\Software\Microsoft\Windows\CurrentVersion\Run    Reg_SZ:"C:\Temp\File.bat"

It works fine on X32, but not on x64. Is there maybe a policy locking this from running? UAC is off.

Nimjox

Posted 2012-08-22T13:58:41.540

Reputation: 111

We need additional information. How can you tell the script is never being ran? – Ramhound – 2012-08-22T14:07:45.847

For test purposes I used a simple display which just echoed some text and paused, also I do not see a cmd.exe in the processes task window. – Nimjox – 2012-08-22T14:15:57.033

I am going to guess you using the wrong registry key. – Ramhound – 2012-08-22T14:49:56.640

I thought I must have been mistyping it, but I've triple check the directory spelling, and location. I've tried using the run key under HKCU and HKLM, like I mentioned it works fine under x32 in HKCU. – Nimjox – 2012-08-22T15:05:47.630

Answers

-1

On windows 64-bit you must always put 64 bit entries in HKEY_CURRENT_USER\Software\Wow6432Node ore one of the "Wow6432Node" folders accordingly

Hope this helps

Charles Keisler

Posted 2012-08-22T13:58:41.540

Reputation: 1