Get registry keys over wmi on a remote host?

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
 
V

Volkan Senguel

Thank you Mark, i know how to use google ;)

But the most examples and tips doesnt really work with remote clients...

maybe another aproach: how can i get from a remote client the installed
software list?

thank you
Volkan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top