Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroups > Vista General

Vista - SetGateways method and user rights

Reply
 
Old 09-11-2009   #1 (permalink)
Mario - Roma


 
 

SetGateways method and user rights

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



My System SpecsSystem Spec
Old 09-11-2009   #2 (permalink)
Dusko Savatovic


 
 

Re: 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" <mario@xxxxxx> wrote in message
news:exdro7tMKHA.4004@xxxxxx
Quote:

> 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
>
>
My System SpecsSystem Spec
Old 09-11-2009   #3 (permalink)
Gene E. Bloch


 
 

Re: SetGateways method and user rights

Here's what Mario - Roma wrote on 9/11/09:
Quote:

> 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.

--
Gene Bloch 650.366.4267 lettersatblochg.com


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
SetGateways Method, Vista and user rights VB Script
user rights Vista account administration
User rights System Security
user access rights problem Vista security
User rights Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46