win32net.NetUserSetInfo

NetUserSetInfo(server, username, level, data)

Sets information about a particular user account on a server.

Parameters

server : string/PyUnicode

The name of the server, or None.

username : string/PyUnicode

The user name

level : int

The information level contained in the data

data : mapping

A dictionary holding the user data in the format of PyUSER_INFO_*

Win32 API References

Search for NetUserSetInfo at msdn, google or google groups.