• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Batch Command help - Enable/Disable connection

brad310

Senior member
Hey Guys,

I have a user that has both a wired and wireless connections, from 2 different providers.

When they need to check their email (outlook 2k7), it tries to use the wired connection by default. Outlook does not let me specify which connection to use, so instead of having the user disable and enable the connection manually each time they want to check email, I think I can do that for them with a .bat command.

I did some googling and found some suggestions, but nothing is working yet.

The command:
"netsh interface set interface "Local Area Connection" admin=DISABLED connect=DISCONNECTED newname="Local Area Connection""

...fails...but is as close as i have came to a working solution.

Does anyone have any suggestions on the .bat command syntax? Or a better solution I havent thought of?

Thanks
 
If it is a ?leech on my neighbor? connection it might be that the ISP?s email rules are blocking none native ISP email server.

To make any use from two-bonnafide Internet connection one is better off with Dual Wan Router otherwise it is a waste of money.

Using the Metrics can some time help too, http://www.ezlan.net/metrics.html

 
Originally posted by: JackMDS
If it is a ?leech on my neighbor? connection it might be that the ISP?s email rules are blocking none native ISP email server.
One connection allows use of a certain application hosted by someone outside of our control. All other applications will use our connection. They are both legitimate.

 
The priority of the connection usage is controlled by the metrics (link in my post above).

You can make a batch file that changes the metrics before invoking a Network related application.

http://support.microsoft.com/kb/894564

Ignore the speed issue in the linked page smaller metrics would be the connection of choice.
 
thanks troy.

i got it done with the static route. my first time having to do anything like that. One thing that wasnt very clear to me on the microsoft's help page is that you have to add a -p switch so the table doesnt clear on reboot.
 
Back
Top