SteveS832001 has asked for the wisdom of the Perl Monks concerning the following question:

Could someone show me a working script using win32::netadmin::CreateUser(); and what kind of settings do you need for it to work on a pc and a server Thank you much

2006-02-27 Retitled by g0n, as per Monastery guidelines
Original title: 'UserCreate'

Replies are listed 'Best First'.
Re: Creating user account on Win32
by bowei_99 (Friar) on Feb 27, 2006 at 18:17 UTC
Re: Creating user account on Win32
by zer (Deacon) on Feb 28, 2006 at 05:27 UTC
    what version of windows are you using?
    As an alternate you can use the 'net' command line program. This should work on win 2000 and up

    the command is:
    NET USER
    [username * options] /DOMAIN
    username {password | *} /ADD options /DOMAIN
    username /DELETE /DOMAIN

    This didnt display entirely so use your command line interface to see it:
    'net help user'
    the system perl command can get this done for you nice and quickly without modules

Re: Creating user account on Win32
by planetscape (Chancellor) on Mar 01, 2006 at 09:07 UTC