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