win32net.NetUserGetInfo error
Mark Hammond
MarkH at ActiveState.com
Sun Jul 15 05:39:01 EDT 2001
Peder Jakobsen wrote:
> import win32api
> import win32net
>
> userName=win32api.GetUserName()
> info=win32net.NetUserGetInfo(None, userName, 1)
>
> I get the following error
Works for me. I guess you have a domain controller, or the username
actually exists on another server. Off the top of my head I can't
recall exactly how to determine the controllers on the network -
hopefully someone else will help.
Mark.
More information about the Python-list
mailing list