Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


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

09 Jan 2012   #1
TOSH1

windows 7 32 bit
 
 
create a .bat file to disable wireless when you connect to wired

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 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


My System SpecsSystem Spec
.
09 Jan 2012   #2
DeaconFrost

Windows 7 Ultimate x64 SP1
 
 

Many corporate laptops have included utilities from the OEM that do this automatically.
My System SpecsSystem Spec
09 Jan 2012   #3
TOSH1

windows 7 32 bit
 
 

The laptops we are using are HP ProBook 5330m.

If a user comes into the office and decides to work in the kitchen or canteen where there is no network connection, I want them to be able to switch the laptop on and for the laptop to automatically connect to our corporate wireless without user intervention. Our helpdesk is currently recieving a huge amount of tickets from users who are not computer friendly stating that their laptops are not working or on wireless.

Where can I find if our range of laptops do this automatically as currently ours do not.
My System SpecsSystem Spec
.

09 Jan 2012   #4
DeaconFrost

Windows 7 Ultimate x64 SP1
 
 

I would check the drivers and downloads page from HP to see what is available. Any Dell I've worked on out of the box has this functionality.

I have 30 employees who aren't tech savvy, and I have simply taught them how to use the wireless switch. In our common areas, I have displays with our wireless name and passkey. If a mobile corporate employee doesn't know how to join a wireless network when given the info, they should lose the right to be mobile.
My System SpecsSystem Spec
Reply

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




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Windows 7 Ultimate x64 will not connect wired or wireless
I have tried searching everywhere to find an end to my head ache, but nothing has worked. Everything was going fine until one day my wired connection stopped seeing the there was a connection. Everything is working I am able to browse the internet and do things online but the problem really got...
Network & Sharing
wireless and wired network connect simultaneously?
Hello I have a question. I have windows XP mode installed on Windows 7 Enterprise and running Windows XP ofcorce. I need to connect my laptop to wired network and in some time to connect wireless for XP mode using. What I mean : I want to use wired internet for my Windows 7 and in same time...
Network & Sharing
Wired and wireless computers won't connect to each other
First off, hi there :) I've been trying to sort this myself for about an hour now with no luck. I've already searched the internet, used google and tried various things to get my network to work. I've been trying to create a homegroup which my laptop (wireless) and my computer (wired) will...
Network & Sharing
Laptop cannot connect to either wireless or wired networks
Hello, I have had a Acer Aspire 5742-6814 for a month or so now. Yesterday it suddenly would not connect to the wireless network in my apartment and won't connect to a wired network either. It says that the wireless drivers are up to date and it just stopped working out of nowhere. I tried...
Network & Sharing
Can't connect to the internet wired, only wireless
My comcast cable modem went kaput a few days ago. I bought a new motorola surf modem. I just purchased a new d-link dir 825 modem today as I thought my other router went bad too. I am able to access the internet on the wireless portion but cannot connect wired. The router is connected to a 24 port...
Network & Sharing
How to connect wired and wireless simultaneously?
Sorry if this is a n00b question, but FWIW I did search and also I looked through the tutorials on this site - and I Googled for an answer. However, others seem to have different questions or problems. Here is my problem: when I use my wired adapter on my laptop, there is no obvious way for me...
Network & Sharing


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 03:01.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App