Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

reg file by .bat in windows x64

I run reg file by .bat in windows x64 but my reg file add to wow6432node, and i want Add to : HKEY_LOCAL_MACHINE\SOFTWARE\Myproject in windows x64 .

My .bat file command :

%windir%\System32\regedt32.exe e5.reg

please help me

Thank you

like image 842
user2436375 Avatar asked Nov 17 '25 00:11

user2436375


1 Answers

I don't know how to solve it using a .reg file. But only in a BAT file, as fallow:
You must add /reg:64 at the end of the command line. ex:

REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\Background" /v "OEMBackground" /t REG_DWORD /d 0x00000001 /f /reg:64
Source: Wow6432Node and how to Deploy Registry settings to 64 bit systems via Sccm

like image 163
Pedro77 Avatar answered Nov 19 '25 14:11

Pedro77