Prev: Rendering list items differently based on object
Next: An attempt was made to access a socket in a way forbidden by its accesspermissions
From: Volkan Senguel on 6 Apr 2010 11:03 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 |