View Single Post
  #2 (permalink)  
Old 08-18-03, 11:47 PM
Skeleton Man Skeleton Man is offline
Community Liaison
 
Join Date: Jun 2003
Location: Australia
Posts: 406
Thanks: 0
Thanked 0 Times in 0 Posts
Change this:

Code:
if(!Win32::Lanman::NetUserAdd("\\\\doomsday", {'name' => \$name,
'password' => \$pass,
'comment' => 'perl test addition'}))
{
print "Sorry, account could not be created...";
print Win32::Lanman::GetLastError();
exit 1;
}

To this:

Code:
if(!Win32::Lanman::NetUserAdd("\\\\doomsday", {'name' => $name,
'password' => $pass,
'comment' => 'perl test addition'}))
{
print "Sorry, account could not be created...";
print Win32::Lanman::GetLastError();
exit 1;
}
Note the removal of the "\" from infront of $name and $pass..
Reply With Quote