SetGateways method and user rights

Run with elevated permissions. Open Command Prompt with "Run As Administrator". Execute your script from elevated Command Prompt. "Mario -...
SetGateways method and user rights
Run with elevated permissions.
Open Command Prompt with "Run As Administrator".
Execute your script from elevated Command Prompt.

"Mario – Roma" <> wrote in message
news:…
> I created a VBscript to change the default gateway using the SetGateways
> Method of the Win32_NetworkAdapterConfiguration.
> It works fine in my Windows XP PCs.
> If I use the same script in Vista (Vista Business) it works fine only if I
> logon as user "Administrator" (after enabling it).
> If I log on as any other user, even member of all the administrative user
> groups, I get an error 67.
> How can I make my script work in Vista?
> Regards
> Marius
>
>

We will be happy to hear your thoughts

Leave a reply

TechEggs
Logo