Python System Administration

Robin Becker robin at jessikat.fsnet.co.uk
Sat Feb 2 11:30:05 EST 2002


In article <ac5588024b.tim at worthy.demon.co.uk>, Tim Howarth
<tim at worthy.demon.co.uk> writes
.....
>> but if it's easy with win32net what's the easy way?
>
>import win32net
>
>userinfo=win32net.NetUserGetInfo('','tim',2)
>userinfo['password']='secret'
>win32net.NetUserSetInfo('','tim',2,userinfo)
>
>
>'' is server name, in this case server it is run on (no need for name)
>2 is data level - what to get/set
....
I'll give that a whirl and see how it works. Thanks. I use the win32com
stuff quite a lot, but it never occurred to me that there might be
something equivalent to unix passwd. The GUI centricity of windows must
be rotting my brain.
-- 
Robin Becker



More information about the Python-list mailing list