Actually, isn't the "=>" the same as a "," and don't you need to put /%{} around it??
As well, Privilege isn't a variable...
Win32::RasAdmin::UserSetInfo($Domain, $User, /%{'Privilege', 9});
Steven
-----Original Message-----
From: Paul Popour [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 14, 2000 3:04 PM
To: Bateman John Austin-IS
Cc: 'perl-win32-adminlistserv1ActiveStatecom'
Subject: Re: Trouble using Win32::RasAdmin
----- Original Message -----
From: "Bateman John Austin-IS" <[EMAIL PROTECTED]>
To: "'Paul Popour'" <[EMAIL PROTECTED]>
Cc: "'perl-win32-adminlistserv1ActiveStatecom'"
<[EMAIL PROTECTED]>
Sent: Tuesday, November 14, 2000 4:45 PM
Subject: RE: Trouble using Win32::RasAdmin
> I tried this using the code below:
> Win32::RasAdmin::UserSetInfo($Domain, $User, $Privilege, 9);
> -as well as-
> Win32::RasAdmin::UserSetInfo($Domain, $User, $Privilege=>9);
> both seem to run fine (I get no errors and the program completes) but the
> privilege is not changed.
>
> If I manually force it in user manager and then run a getuserinfo it does
> return privilege as 9 so I think this is the right flag as well, just
can't
> get the set info quite right.
Try Win32::RasAdmin::UserSetInfo($Domain, $User, 'Privilege' => '9');
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin
