Re: [python-win32] logon remote machine

2011-11-14 Thread pacopyc pacopyc
: pacopyc pacopyc paco...@gmail.com To: python-win32@python.org Subject: [python-win32] logon remote machine Message-ID: CAJDkAOH-mFBTtMKF_jx85=t41_bo6hpq9fxgum_gyg4gdbe...@mail.gmail.com Content-Type: text/plain; charset=iso-8859-1 Hi, I must get OS and logged user on remote machine

[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: