in reply to Need help understanding Win32:NetAdmin

win32 netadmin UserCreate:

Win32 Perl - The Perl Journal, Fall 1997

Just a few notes about the Win32::NetAdmin::UserCreate() function shown above: $Domain can be a domain name, a server or an empty string (the default domain); $PasswordAge is ignored and will not be used; the privilege must be USER_PRIV_USER (administrator privileges are assigned by group membership); and for the flags you must at specify at least these two flags ORed together: UF_NORMAL_ACCOUNT and UF_SCRIPT. Other flags that you can use are:
UF_ACCOUNTDISABLE Disable the account UF_PASSWD_NOTREQD No password is required UF_PASSWD_CANT_CHANGE User can't change the password

Replies are listed 'Best First'.
Re^2: Need help understanding Win32:NetAdmin
by Eagle_f91 (Acolyte) on Oct 10, 2009 at 16:50 UTC
    Thanks but what about homeDir and comment? Also I don't have any scripts to be ran by the user so would I just leave it an empty script or would that screw up the login?

      This are fields that can be set for Windows users. If you leave them empty it should not be a problem for you.

        Cool, thanks.