Daniel Fisher (lennybacon.com)

SOA, DATA & THE WEB

Disabling Registry-System-Redirection on 64bit

x64 view from x86:

using Microsoft.Win32;
using(var registryKey = 
    RegistryKey.OpenBaseKey(
	    RegistryHive.LocalMachine, 
		RegistryView.Registry64
    ).OpenSubKey(@"Software\Microsoft\InetStp\Components"))
{
    var value = registryKey.GetValue(@"WMICompatibility");
}

x86 view from x64:

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft

Comments

Write a comment