Avoid Registry Wow6432Node Redirection

前端 未结 4 1437
-上瘾入骨i
-上瘾入骨i 2020-11-30 07:16

I\'m trying to insert some simple registry keys using Microsoft.Win32.RegistryKey in c# but the path automatically changes from:

HKEY_LOCAL_MACHINE\\SOFTWARE         


        
4条回答
  •  心在旅途
    2020-11-30 08:02

    I don't know how to solve it using a .reg file. But only in a BAT file, as follow:

    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

提交回复
热议问题