I get, "Use the new keyword to create an object instance". And we I do use
new I get
"Microsoft.Win32.RegistryKey.OpenRemoteBaseKey(Mic rosoft.Win32.RegistryHive,
string) is a mathod but is used like a type".
This is what I'm trying to get to work:
RegistryKey Tb2Key =
RegistryKey.OpenRemoteBaseKey(RegistryHive.LocalMa chine,
textBox4.Text).OpenSubKey("Software\\Netopia\\Timb uktu Pro\\TimbuktuName");
Tb2Key.SetValue("StringValue", textBox4.Text);
RegistryKey RoKey =
RegistryKey.OpenRemoteBaseKey(RegistryHive.LocalMa chine,
textBox4.Text).OpenSubKey("Software\\Microsoft\\Wi ndows
NT\\CurrentVersion\\RegisteredOwner");
RoKey.SetValue("StringValue", textBox3.Text);
RegistryKey CNameKey =
RegistryKey.OpenRemoteBaseKey(RegistryHive.LocalMa chine,
textBox4.Text).OpenSubKey("Software\\Microsoft\\Wi ndows
NT\\CurrentVersionRegisteredOrganization");
CNameKey.SetValue("StringValue", "NeuStar Inc");
Tb2Key.Close();
RoKey.Close();
CNameKey.Close();
"Nicholas Paldino [.NET/C# MVP]" wrote:
Charles,
Any example in the documentation will do. The only thing you have to do
differently is call the static OpenRemoteBaseKey to get the hive on the
remote system you want to work with, and proceed from there.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Charles" <Ch*****@discussions.microsoft.comwrote in message
news:66**********************************@microsof t.com...
Hi:
I'm looking for an example of modifying the registry of a remote system.
Thanks much!
Charles