win32net.NetUserGetInfo error

Peder Jakobsen pjakobsen at blueairnetworks.com
Fri Jul 13 23:01:38 CEST 2001


Hi:

Hi!  I'm running Windows 2000, and I'm calling:

import win32api
import win32net

userName=win32api.GetUserName()
info=win32net.NetUserGetInfo(None, userName, 1)

I get the following error

Traceback (most recent call last):
  File "<interactive input>", line 1, in ?
api_error: (2221, 'NetUserGetInfo', 'The user name could not be found.')

Any ideas

Many thanks,

Peder Jakobsen
Python Newbie in Ottawa



More information about the Python-list mailing list