win32net.NetUserSetInfo for Windows Terminal Services information

Larry Bates lbates at swamisoft.com
Fri Feb 21 16:00:37 EST 2003


Background:

I have written a Python service that uses win32net.NetUserSetInfo that
currently can
add users, change passwords, remove users to my Windows 2000 server from
information that is maintained in an external SQL database.  Everything
seems to
be working fine except for:

Problem:

I need to set several items that appear under the Environment tab (this
controls
settings for Terminal Services users information) of  Add/Modify
Users program.  I need to be able to programmatically turn on "Start the
following
program at logon" as well as setting "Program filename" and "Start in"
directories
for each user that I add to the system.  I scanned all the USER_INFO
structures
on MSDN and didn't find anything the provided access to these fields.  There
are also MANY other fields that don't seem to be available that I would be
interested in know how to access.

Any help would be greatly appreciated.

Regards,
Larry Bates

email: lbates at swamisoft.com






More information about the Python-list mailing list