Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > SetGateways method and user rights

Reply
Thread Tools Display Modes

SetGateways method and user rights

 
 
Mario - Roma
Guest
Posts: n/a

 
      09-11-2009
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


 
Reply With Quote
 
 
 
 
Dusko Savatovic
Guest
Posts: n/a

 
      09-11-2009
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
>
>

 
Reply With Quote
 
Gene E. Bloch
Guest
Posts: n/a

 
      09-11-2009
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.

--
Gene Bloch 650.366.4267 lettersatblochg.com


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: tool for user profiles migration Meinolf Weber [MVP-DS] Windows Server 0 07-11-2009 11:32 AM
Vista Ultimate 32-Bit to 64-Bit Seidell23231 Windows 64 Bit 21 04-06-2008 05:26 PM
User profiles in Student Labs - best method Dave Fitton Windows Server 1 05-05-2006 11:56 PM
local user profile after domains migration France Windows Server 12 08-27-2005 11:00 PM
EFS - Encryption and User Migration Damon Birrell Windows Server 32 04-11-2005 09:18 PM



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 47 48 49 50 51 52 53 54 55 56 57 58 59