Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
foreach $server(@server) { %account = ( server => "\\\\$server", user => "Test", password => "12345678", homedir => "", priv => "USER_PRIV_USER", flags => "UF_SCRIPT |UF_TEMP_DUPLICATE_ACCOUNT", comment => "Test", logon => "", ); unless (Win32::NetAdmin::UserCreate($account{server}, $account{use +r}, $account{password}, 0, $account{priv}, $account{homedir}, $accoun +t{comment}, $account{flags}, $account{logon})) { print LOG "$server,Problem,Unable To Create Account,".Win32::N +etAdmin::GetError().",".localtime()."\n"; ++$errorct; } else { print LOG "$server,Good,Added Account,".localtime()."\n"; ++$goodct; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: NetAdmin::UserCreate
by clscott (Friar) on Nov 04, 2004 at 18:13 UTC | |
by Anonymous Monk on Nov 04, 2004 at 18:31 UTC | |
by clscott (Friar) on Nov 08, 2004 at 12:25 UTC | |
by Anonymous Monk on Nov 08, 2004 at 18:29 UTC |