Re: [python-win32] logon remote machine

2011-11-14 Thread pacopyc pacopyc
- > > Message: 1 > Date: Fri, 11 Nov 2011 13:33:07 +0100 > From: pacopyc pacopyc > To: python-win32@python.org > Subject: [python-win32] logon remote machine > Message-ID: > > > Content-Type: text/plain

[python-win32] logon remote machine

2011-11-11 Thread pacopyc pacopyc
Hi, I must get OS and logged user on remote machine. I use this functions: 1) THIS FUNCTION IS OK (ALWAYS!!!) def getOperatingSystem(self,host): try: c = wmi.WMI(host, user="domain\user", password="password") os = c.win32_OperatingSystem()[0] except: