Python Forum
[Python3.X] [Windows] Remote Registry Access (like WMI or other) - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Networking (https://python-forum.io/forum-12.html)
+--- Thread: [Python3.X] [Windows] Remote Registry Access (like WMI or other) (/thread-11041.html)



[Python3.X] [Windows] Remote Registry Access (like WMI or other) - ManuHry - Jun-19-2018

I am facing to a problem, there aren't many sources on the web...

I want to access to the Windows registry of a remote machine. I use the winreg module, but it seems that it doesn't support Active Directory domains.

I found the wmi module, but I don't think it can be very useful.

Have you any idea to gain access to the registry of a remote computer ? Thanks :)

Regards (and sorry for my poor english, I am a f*ckin' french)

Here is my code :



RE: [Python3.X] [Windows] Remote Registry Access (like WMI or other) - Larz60+ - Jun-19-2018

have you tried:
rem_reg = ConnectRegistry("remotename", HKEY_LOCAL_MACHINE)
rem_reg.OpenKey( ...
see: https://docs.python.org/2/library/_winreg.html