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: http://gallery.technet.microsoft.com/scriptcenter/en-us/ http://www.windowsnetworking.com/kbase/WindowsTips/Windows2000/AdminTips/Administrator/ActiveDirectoryRemoteAdminScripts.html -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. _______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32