If you're just trying to create a user on the machine, you might take a look at Win32API::Net <http://search.cpan.org/%7Ejdb/libwin32-0.28/APINet/Net.pm>. Something like the following may be what you need (I tried it on an XP machine):
use strict; use Win32API::Net qw/UserAdd USER_PRIV_USER UF_DONT_EXPIRE_PASSWD/; my $info_level = 1; my %params = ( name => 'Username', password => 'password', passwordAge => 0, priv => USER_PRIV_USER(), homeDir => '', comment => 'User Comment', flags => UF_DONT_EXPIRE_PASSWD(), scriptPath => '', ); my $error = 0; my $computer = 'remote_computer'; userAdd($computer, $info_level, \%params, $error); Jeremy On Wed, Mar 19, 2008 at 3:47 PM, Christopher Rosen <[EMAIL PROTECTED]> wrote: > > I'm looking for a script to read the hostname, username, and password from > a file, remotely connect to that Windows machine, and create a new account. > Reading the file will be easy, but I can't find anything on remote logon > via the default Windows installation. Thanks. > > Regards, > > Christopher Rosen, MCSA, MCSE, CCNA > IBM SWG/Tivoli Systems > IT Specialist > Tivoli IT Security & Tools Development > [EMAIL PROTECTED] > 919-224-2226 Office > > http://swgsupport.raleigh.ibm.com/w3rtp/rtpsite.nsf/main?open&ospatches > _______________________________________________ > Perl-Win32-Admin mailing list > Perl-Win32-Admin@listserv.ActiveState.com > To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs > >
_______________________________________________ Perl-Win32-Admin mailing list Perl-Win32-Admin@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs