[python-win32] administration script

2010-03-24 Thread pacopyc pacopyc
Hello, I'm a NT domain system administrator and I'd like develop simple administration scripts with Python. I'm not expert and then I need some examples to understand. Initially I must listing all LAN's PC, for each PC get users and password, change password local administrator, run shutdown

[python-win32] disable network interface

2010-06-10 Thread pacopyc pacopyc
Excuse me, I'd like to disable network interface of a remote host. I'm thinking to use Win32_NetworkAdapter. What do you think? How can I do? Is it possible disable network interface? Can you help me? I found in Internet this code: import wmi; c = wmi.WMI() o = c.query(select * from

Re: [python-win32] disable network interface

2010-06-10 Thread pacopyc pacopyc
Ok, thank you. But I'd like to block network access to a remote host while it is working ... without execute shutdown. Is it possible? I want that it could continue working but without network access. ___ python-win32 mailing list python-win32@python.org

[python-win32] retrieve microsoft office product key

2011-10-26 Thread pacopyc pacopyc
Hi, I'd like monitor microsoft office licences on my LAN (about 50 PC). Can I retrieve product key with python script? Thank you pacopyc ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

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

Re: [python-win32] logon remote machine

2011-11-14 Thread pacopyc pacopyc
replying, please edit your Subject line so it is more specific than Re: Contents of python-win32 digest... Today's Topics: 1. logon remote machine (pacopyc pacopyc) -- Message: 1 Date: Fri, 11 Nov 2011 13:33:07 +0100 From

[python-win32] send message remote host

2011-12-16 Thread pacopyc pacopyc
Hi, I'd like send a message to remote host. I want that remote host's user read my short message immediately. I have remote host administrator credentials. Can you help me? ___ python-win32 mailing list python-win32@python.org

Re: [python-win32] send message remote host

2011-12-17 Thread pacopyc pacopyc
Yes, I'm thinking about net send of Windows ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

[python-win32] get model PC

2012-01-10 Thread pacopyc pacopyc
Hi, how can I get the model of remote computers? es. HP Compaq 6510b, IBM 2653, Toshiba Satellite Pro L670-11E, Thanks. pacopyc ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

[python-win32] share remote drive

2012-02-22 Thread pacopyc pacopyc
Can I share a remote drive? How? Thank pacopyc ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32