Hola a todos.
Necesito escribir en el REGISTRO de Windows pero de un ordenador Remoto,
como puedo hacerlo?. Puedo LEER sin problema siempre y cuando el sistema
operativo sea Windows 2000 server o Windows 2003 Server, cuando se trata de
XP profesional no puedo leer el registro.
El Siguiente codigo es para escribir en el registro remoto, pero no me
permite:
..
RegistryKey dnsKey = null;
string remoteName = "\\\\" + _ip;
if (_ip != "")
{
try
{
//Open Key "HKLM\\Software\\MIEMPRESA\\DNS"
dnsKey =
RegistryKey.OpenRemoteBaseKey(RegistryHive.LocalMachine,
remoteName).OpenSubKey(key);
}
catch (IOException e)
{
MessageBox.Show(e.GetType().Name + ": " + e.Message);
}
dnsKey.SetValue("Serial", value);//INTENTO ESCRIBIR EN EL
REGISTRO REMOTO PERO NO ME PERMITE.
}
// Close the registry key remote.
dnsKey.Close();
..
Necesito de su ayuda, gracias.
Leer las respuestas