Good morning,<br><br>I fear the answer to this is that I just cannot do this.... <br><br>I wrote a python script that goes out to a bunch of remote machines and queries the registry for some values.  Effectively, there have been some software upgrades that have been done as the need arose but we need to do them across the organization now.  There are three, and the script checks all three and returns the values.  One of these just needs to be a registry change as it is a client server application that the server was upgraded and the clients need a change to a registry value to work.<br>
<br>Long story short, I am using _winreg to do this. <br><br>hKey = _winreg.OpenKey (keyPath, path, 0, _winreg.KEY_SET_VALUE)<br>value,type = _winreg.QueryValueEx(hKey, item)<br> if (value == wrongValue):<br>       _winreg.SetValue(hKey,'',_winreg.REG_SZ,correctValue)<br>
                <br><br>When I do this I receive the error:<br><br>_winreg.SetValue WindowsError: [Error 5] Access Denied<br><br><br>I am running this from my machine as a domain admin, connecting to the remote machine which is also on the domain.<br>
I am connecting to the remote registry with:<br><br>keyPath = _winreg.ConnectRegistry(r"\\" + ipAddress,_winreg.HKEY_LOCAL_MACHINE)<br><br><br>Thanks for any help.  <br><br clear="all">--<br>Kevin Holleran<br>Master of Science, Computer Information Systems<br>
Grand Valley State University<br>Master of Business Administration<br>Western Michigan University<br>Completion December 2009<br>CCNA, ISA, MCSA, MCDST, MCP<br><br>"We are what we repeatedly do. Excellence, then, is not an act, but a habit." - Aristotle<br>
<br>"A man flattened by an opponent can get up again. A man flattened by conformity stays down for good. " - Thomas J. Watson <br>