> Hi All,
>
> I have trawled the archives for 2 days looking for the answer
> to this problem.
>
> I want to add a global group into the Administrators Local
> group on a list of servers. I am attaching to each server
> with a variety of admin accounts hence the ConnectIPC subroutine.
>
> The Win32::Lanman::GetLastError function always returns a
> 2226 error; pretty much regardless of what combination of '
> or " or backslashes I use to send me variables to the
> Win32::Lanman::NetLocalGroupAddMembers function, I even get
> the same code using the similar NetAdmin and Win32API
> functions which I have commented out.
>
> what im I doing wrong?
> Can anyone tell what this 2226 error is?
> or where I can find out what it means?
>
> any other tips warmly received, im pretty new to this perl malarkey..
>
>
> many thanks.
>
> Conal.

Hi,

      I haven't take a look to the code, but I can tell you what the 2226
error means:

c:\>net helpmsg 2226

This operation is only allowed on the primary domain controller of the
domain.


EXPLANATION

The specified server is not the domain controller, so you cannot update its
security database.

ACTION

Run the command on the domain controller. If you are using User Manager,
set
the focus on the domain controller, and then retry the command.

      I hope this helps.

Take care.

Lucas.




_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to