View Full Version : How does the Driver Station fiddle the network settings?
fovea1959
28-10-2013, 10:44
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
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
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
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
Can you provide the link to the script?
A few people have provided scripts or tools:
http://www.chiefdelphi.com/forums/showthread.php?t=115088&highlight=netsh
http://www.chiefdelphi.com/forums/showthread.php?t=111648&highlight=netsh
http://www.chiefdelphi.com/forums/showthread.php?t=110302&highlight=netsh
http://www.chiefdelphi.com/forums/showthread.php?t=102980&highlight=netsh
fovea1959
31-10-2013, 18:56
Joe, once again, thanks.
All: Joe's information is what we've worked off of.
fovea1959
31-10-2013, 19:22
...and Greg, thanks for the answer!
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.