[python-win32] administration script

Tim Roberts timr at probo.com
Thu Mar 25 00:58:21 CET 2010

pacopyc pacopyc wrote:
> 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 machines after 21:00 (also printer), get
> listing installed software, change PC's name.

Although much of what you ask can be done, you cannot get user
passwords.  The unencrypted passwords are simply not stored anywhere. 
As soon as you enter a password, it is encrypted.  If a password is
forgotten, you have no choice but to change it to something else.

There are many, many web sites devoted to scripts for Windows system
administration.  Many of them are VBScript, but it's not too hard to
convert those to Python.  You would do much better to search through
those resources first.  Here are two good examples:


Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.

More information about the python-win32 mailing list