SetGateways method and user rights

M

Mario - Roma

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
 
D

Dusko Savatovic

Run with elevated permissions.
Open Command Prompt with "Run As Administrator".
Execute your script from elevated Command Prompt.
 
G

Gene E. Bloch

Here's what Mario - Roma wrote on 9/11/09:
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

Just to clarify: the Administrator Accounts are not the Administrator
Account (thank you, Microsoft!).

They are accounts with *some* Administrator privileges.

The choice of names is very misleading, IMHO.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top