<div>Hi ,</div>
<div> </div>
<div>I'm trying to connect to a remote windows machine's registry using ConnectRegistry and try to get the process architecture information.</div>
<div> </div>
<div> </div>
<div>Here is the code snippet for it</div>
<div>#processRegKey = "System\CurrentControlSet\Control\Session Manager\Environment"<br>#processRegValue = "PROCESSOR_ARCHITECTURE"<br>#try:<br># regHandle = ConnectRegistry(r"<a href="file://atom%22,hkey_local_machine/">\\atom",HKEY_LOCAL_MACHINE</a>)<br>
# regHandleObj = OpenKey(regHandle, processRegKey)<br># processType = QueryValueEx(regHandleObj, processRegValue)[0].split(" ")[0]<br># print processType<br>#except Exception, erno:<br># print "Exception:"<br>
# print erno</div>
<div> </div>
<div>but it fails with access denied errors.</div>
<div>I assume that there is credentials issue.</div>
<div>but i have the credential, but where should i have to provide this.</div>
<div> </div>
<div> </div>
<div>Please help in accesing remote machine adderss.</div>
<div>Also the machine might be in another domain.</div>
<div> </div>
<div>i know that we have wmi module. just try to achive it with win32 Api.</div>
<div> </div>
<div>Thanks,</div>
<div>sid.</div>