[python-win32] creating user accounts

Wolf Logan wolf@circle-cross.org
Sat, 8 Feb 2003 19:35:23 -0800


a convenient way to create new user accounts (the "recommended" way for
admins) is to create a "template" user, then copy that user to create new
accounts. the copy inherits all the rights and memberships of the template,
so your new users are properly configured as soon as you create them.
however, I don't know the proper sequence to do that copying
programatically.

----- Original Message -----
From: "Mark Hammond" <mhammond@skippinet.com.au>
Sent: Saturday, February 08, 2003 3:05 PM


> My guess is that your local policy disables this right by default.  You
will
> need to determine which attribute of the user you need to set to give this
> permission, and set this up in the same structure you setup the rest of
the
> user data.
>
> > -----Original Message-----
> > From: python-win32-admin@python.org
> > Sent: Saturday, 8 February 2003 9:10 AM
> >
> > Hi, I tryied the example in Marks Hammond & Andys Robinsons book
> > for creating user accounts (script on page 295) on Winows 2K
> > server, but I cann't log on on the account PythonTestUser. When I
> > try to log on I get this message:
> >
> > Logon failure: the user has not been granted the requested logon
> > type at this computer
> >
> > I would be thankfull for any help, what more do I need to set in
> > the dictionary to construct a correct user (for loging in)