Windows 7 Forums


Reply
Thread Tools

create a .bat file to disable wireless when you connect to wired

 
 
TOSH1 TOSH1 is offline
New Member
Join Date: Jan 2012
Posts: 1
Thanked: 0
 
      01-10-2012
Hi

I'm new to Windows 7 and this is my first post so go easy if this a silly question.

I currenly work in an IT department and have been given this 'project'.

We have a number of users who have been given 32bit Windows 7 laptops for remote, home and office working.

I have been asked to create a batch file so that as soon as the user comes into the office they plug the laptop into the network and it should use the wired connection automatically to access the corporate LAN. As soon as they work away and need to access the corporate network remotly they do not need to press the wireless button on the laptop, when the laptop is switched and logged on i want the laptop to know that it is not on a wired network and for the wireless to kick in.

I have created two bat files -

netsh interface set interface “Wireless Network Connection” Disable

and

netsh interface set interface “Wireless Network Connection” Enable

these have been placed in task scheduler under create a basic task. I have tried both of these in cmd prompt but they still don't work.

Can anyone please advise me.

Thank you

TOSH1
 
Reply With Quote
 
 
 
 
zigzag3143 zigzag3143 is offline
Wanikiya
zigzag3143's Avatar
Join Date: Sep 2010
Location: NY USA
Posts: 247
Thanked: 75
Send a message via MSN to zigzag3143 Send a message via Yahoo to zigzag3143
 
      01-11-2012
Just curious, why do you need either. Win will default to Ethernet by itself.
 
Reply With Quote
 
Flakdot Flakdot is offline
New Member
Join Date: Jan 2012
Posts: 1
Thanked: 0
 
      01-11-2012
In the event that it the computers are choosing to log into WIFI first, the settings the user has for that wireless network probably puts it above the ethernet "queue".
 
Reply With Quote
 
zigzag3143 zigzag3143 is offline
Wanikiya
zigzag3143's Avatar
Join Date: Sep 2010
Location: NY USA
Posts: 247
Thanked: 75
Send a message via MSN to zigzag3143 Send a message via Yahoo to zigzag3143
 
      01-11-2012
Quote:
Originally Posted by Flakdot View Post
In the event that it the computers are choosing to log into WIFI first, the settings the user has for that wireless network probably puts it above the ethernet "queue".

Change the priority for the Ethernet connection (network and sharing>adapter>properties) in Properties.
 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Can't connect to wireless at library; wireless switch off or bad wireless card?? Walldog General Discussion 2 01-08-2012 12:45 AM
Can't connect to Wireless at home martina88 Windows 7 Support 7 07-23-2011 01:33 PM
connect two laptops - wireless conection jugoslav Windows 7 Support 4 02-08-2010 11:08 AM
Windows 7 install keeps rebooting Stephen47 Installation, Setup and Updates 32 05-24-2009 06:26 PM


All times are GMT +1. The time now is 05:36 AM.
W7Forums is an independent website and is not affiliated with Microsoft Corporation.

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