V
Volkan Senguel
Hi, i need a way to get the keys from the uninstall registry path for a
inventory tool.
Localy is no problem with this sample code:
RegistryKey localmachine = Registry.LocalMachine;
RegistryKey Uninstall =
localmachine.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Uninstall");
foreach (string key in Uninstall.GetSubKeyNames())
{
RegistryKey activeKey = Uninstall.OpenSubKey(key);
string displayName =
(string)activeKey.GetValue("DisplayName");
if (!String.IsNullOrEmpty(displayName))
{
Console.WriteLine(displayName);
}
}
But, how can i read a remote registry over wmi???
thanx for any help
volkan
inventory tool.
Localy is no problem with this sample code:
RegistryKey localmachine = Registry.LocalMachine;
RegistryKey Uninstall =
localmachine.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Uninstall");
foreach (string key in Uninstall.GetSubKeyNames())
{
RegistryKey activeKey = Uninstall.OpenSubKey(key);
string displayName =
(string)activeKey.GetValue("DisplayName");
if (!String.IsNullOrEmpty(displayName))
{
Console.WriteLine(displayName);
}
}
But, how can i read a remote registry over wmi???
thanx for any help
volkan