in reply to Need help understanding Win32:NetAdmin
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 | |
by Herkum (Parson) on Oct 11, 2009 at 14:16 UTC | |
by Eagle_f91 (Acolyte) on Oct 11, 2009 at 14:42 UTC |