Computing.Net > Forums > Windows Server 2003 > Disable Devices automatically

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to get for your free account now!

Disable Devices automatically

Reply to Message Icon

Name: AlterAngelus
Date: August 4, 2005 at 15:25:23 Pacific
OS: Win 2003 Server Standard
CPU/Ram: P4, 512 MB
Comment:

Is there a way to disable my wireless LAN device (rtl8180) by a batch file or something like this. The "sc" command wouldn't do it, because the driver doesn't accept pausing nor stopping. But the "disable" button of the windows menu stops this driver anyway. Can I do that automatically logging in as administrator and enabeling it again by logging off. Would be just great. Thanks.

AA



Report Offensive Message For Removal

Sponsored Link
Ads by Google

Response Number 1
Name: Curt R
Date: August 5, 2005 at 04:50:13 Pacific
Reply:

I believe you could use the netsh command to disable a NIC in a batch file.


Report Offensive Follow Up For Removal

Response Number 2
Name: AlterAngelus
Date: August 6, 2005 at 07:56:10 Pacific
Reply:

Thanks! I never got into that netsh stuff. The thing is the Help Center doesn't really list the netsh interface simple level. So I had to check out the commands using the command line help. But wors fine T=thanks a lot.

o finish up this mini thread here the batch files I made up:

echo off
msg * "Your Internet connection has been disabled"
netsh interface set interface "Wireless Network Connection" Disable

To enable the device substitute Disable with Enable. To do that automatically at logoff I put the enable script into the logoff section of the Group Policy. So it runs at logoff of every user. I couldn't find a way to run a logoff script just for one user.

AA



Report Offensive Follow Up For Removal
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows Server 2003 Forum Home


Sponsored links

Ads by Google


Results for: Disable Devices automatically

driver trouble with my scanner www.computing.net/answers/windows-2003/driver-trouble-with-my-scanner/16.html

Disable Phishing Filter in IE7 www.computing.net/answers/windows-2003/disable-phishing-filter-in-ie7/7564.html

windows classic www.computing.net/answers/windows-2003/windows-classic/1868.html