Kao što u naslovu piše imam problem upisivanja u registry drugog računara. Ja pristupim registry-ju i upsem da procitam ali je problem da upišem i kez i vrednost. Za čitanje koristim sledeći kod:
Code:
Dim aSubKeys() As String
Dim regKey As RegistryKey = RegistryKey.OpenRemoteBaseKey(RegistryHive.LocalMachine, txtComputerName.Text)
regKey = regKey.OpenSubKey("SOFTWARE\CS")
aSubKeys = regKey.GetSubKeyNames()
regKey.Close()
Dim aSubKeys() As String
Dim regKey As RegistryKey = RegistryKey.OpenRemoteBaseKey(RegistryHive.LocalMachine, txtComputerName.Text)
regKey = regKey.OpenSubKey("SOFTWARE\CS")
aSubKeys = regKey.GetSubKeyNames()
regKey.Close()
Poruku koju dobijam prilikom pokušaja upisa je: "Cannot write to the registry key".









Problem upisivanja u registry na remote računaru