Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   How does the Driver Station fiddle the network settings? (http://www.chiefdelphi.com/forums/showthread.php?t=120992)

fovea1959 28-10-2013 10:44

How does the Driver Station fiddle the network settings?
 
We wrote a script last year that uses netsh to fix up our network configuration when it gets hosed (our development PCs have two NICs, one to the school network, one dedicated for robots). We have the fun wrinkle that our school is using 10.x.x.x, so when the Driver's Station changes the network mask for the robot NIC to 255.0.0.0, we lose Internet.

We are getting school PCs moved over to Windows 7, and we can no longer use the "netsh" command to fix up addresses and network masks (unless run as administrator).

The Driver Station is able to fiddle with the network settings on W7: how does it do that? We need to emulate it....

Greg McKaskle 28-10-2013 15:13

Re: How does the Driver Station fiddle the network settings?
 
It is allowed to do so because it is signed and has a manifest that gives it admin privileges. My search results indicate that runas may allow you to do the equivalent things as sudo to your script.

Good luck.
Greg McKaskle

FIRSTgenius 28-10-2013 18:11

Re: How does the Driver Station fiddle the network settings?
 
fovea1959, can you provide a link to the script? This would be so helpful for our team.

Thank you.

FIRSTgenius 28-10-2013 18:12

Re: How does the Driver Station fiddle the network settings?
 
Quote:

Originally Posted by fovea1959 (Post 1298818)
We wrote a script last year that uses netsh to fix up our network configuration when it gets hosed (our development PCs have two NICs, one to the school network, one dedicated for robots). We have the fun wrinkle that our school is using 10.x.x.x, so when the Driver's Station changes the network mask for the robot NIC to 255.0.0.0, we lose Internet.

We are getting school PCs moved over to Windows 7, and we can no longer use the "netsh" command to fix up addresses and network masks (unless run as administrator).

The Driver Station is able to fiddle with the network settings on W7: how does it do that? We need to emulate it....

Can you provide the link to the script?

Joe Ross 28-10-2013 19:05

Re: How does the Driver Station fiddle the network settings?
 
Quote:

Originally Posted by FIRSTgenius (Post 1298920)
Can you provide the link to the script?

A few people have provided scripts or tools:
http://www.chiefdelphi.com/forums/sh...ighlight=netsh
http://www.chiefdelphi.com/forums/sh...ighlight=netsh
http://www.chiefdelphi.com/forums/sh...ighlight=netsh
http://www.chiefdelphi.com/forums/sh...ighlight=netsh

fovea1959 31-10-2013 18:56

Re: How does the Driver Station fiddle the network settings?
 
Joe, once again, thanks.

All: Joe's information is what we've worked off of.

fovea1959 31-10-2013 19:22

Re: How does the Driver Station fiddle the network settings?
 
...and Greg, thanks for the answer!


All times are GMT -5. The time now is 09:53.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi