home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Networking and Internet
Ask a Tech Support Question (free)!

Enable/Disable NIC

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 1967
Discussions: 200,936, Posts: 2,379,225, Members: 246,301
Old August 11th, 2004, 12:36 PM   Digg it!   #1 (permalink)
Retired mostly.
 
Join Date: Oct 2001
Location: Finland
Posts: 5,144
Enable/Disable NIC

I have an annoying problem.

The nic I have wants every now and then lock itself up, refusing to work at all.
If then I go to device manager, disable and enable it, it will work again.

How would I go about making something that will with single click disable/enable it? Now I need to open up device manager, browse to the device and then disable/enable it.
--edit--
Or, to be even cooler, don't nics send stuff around to see if anyones alive or something? Would it be possible to tell it that if noone responds, disable/enable yourself?
--end edit--

Or, if someone would how to repair it, that would be good, too.

The nic is integrated, 'VIA Rhine II Fast Ethernet Adapter'.
Drivers are WHQL ver 3.32.0.417.
muno is offline   Reply With Quote
Old August 11th, 2004, 03:12 PM     #2 (permalink)
addicted
 
DVNT1's Avatar
 
Join Date: Oct 2001
Location: Ohio
Posts: 6,103
if XP then this might work for you...
Code:
'======== ToggleLanConnection.vbs========

Const ssfCONTROLS = 3

sConnectionName = "Local Area Connection"

sEnableVerb = "En&able"
sDisableVerb = "Disa&ble"

set shellApp = createobject("shell.application")
set oControlPanel = shellApp.Namespace(ssfCONTROLS)

set oNetConnections = nothing
for each folderitem in oControlPanel.items
  if folderitem.name  = "Network and Dial-up Connections" then
    set oNetConnections = folderitem.getfolder: exit for
  end if
next

if oNetConnections is nothing then
  msgbox "Couldn't find 'Network and Dial-up Connections' folder"
  wscript.quit
end if

set oLanConnection = nothing
for each folderitem in oNetConnections.items
  if lcase(folderitem.name)  = lcase(sConnectionName) then
    set oLanConnection = folderitem: exit for
  end if
next

if oLanConnection is nothing then
  msgbox "Couldn't find '" & sConnectionName & "' item"
  wscript.quit
end if

bEnabled = true
set oEnableVerb = nothing
set oDisableVerb = nothing
s = "Verbs: " & vbcrlf
see http://groups.google.com/groups?thre...%40tkmsftngp05
DVNT1 is offline   Reply With Quote
Old August 11th, 2004, 03:20 PM     #3 (permalink)
Retired mostly.
 
Join Date: Oct 2001
Location: Finland
Posts: 5,144
Since I don't understand a bit what happens in that script, I'm afraid to change it.

So, it tells me that no such folder as 'Network and Dial-Up Connections', which is true, because the folder is called 'Network Connections'.

Can I safely replace every instance of 'network and dialup connections' with 'network connections'?

Thanks dvnt1
muno is offline   Reply With Quote
Old August 11th, 2004, 04:02 PM     #4 (permalink)
Ultimate Member
 
Underclocked's Avatar
 
Join Date: Oct 2001
Location: Greenfield, MO.
Posts: 1,958
z,sr s djptyiv ====oops, sorry, trying to get used to this derned keyoard.

Just make a shortcut to the nic's connection on the desktop. Right click the shortcut.
__________________
WHUT?
Underclocked is offline   Reply With Quote
Old August 11th, 2004, 04:09 PM     #5 (permalink)
Retired mostly.
 
Join Date: Oct 2001
Location: Finland
Posts: 5,144
Will disabling the connection from there effectively do the same as disabling the device from device manager?
muno is offline   Reply With Quote
Old August 11th, 2004, 05:25 PM     #6 (permalink)
Ultimate Member
 
Underclocked's Avatar
 
Join Date: Oct 2001
Location: Greenfield, MO.
Posts: 1,958
same
Underclocked is offline   Reply With Quote
Old August 11th, 2004, 05:28 PM     #7 (permalink)
Retired mostly.
 
Join Date: Oct 2001
Location: Finland
Posts: 5,144
Ok, I'll try that the next time it hangs.
Thanks.
muno is offline   Reply With Quote
Old August 13th, 2004, 01:13 PM     #8 (permalink)
Retired mostly.
 
Join Date: Oct 2001
Location: Finland
Posts: 5,144
Nope.
Trying to disable the connection from network connections said it was in use and can't disable it.
muno is offline   Reply With Quote
Old August 13th, 2004, 01:57 PM     #9 (permalink)
Ultimate Member
 
Underclocked's Avatar
 
Join Date: Oct 2001
Location: Greenfield, MO.
Posts: 1,958
HuH???? What OS is this? I have exactly what I described to you on my desktop and I renamed the shortcut to simply LAN. A right click and disable on that shortcut disables the connection and the NIC in the device manager. I just did it in the midst of typing this posting. XP Pro on mine.

Last edited by Underclocked : August 13th, 2004 at 02:00 PM.
Underclocked is offline   Reply With Quote
Old August 13th, 2004, 05:05 PM     #10 (permalink)
Retired mostly.
 
Join Date: Oct 2001
Location: Finland
Posts: 5,144
XP pro

After I did that though, I couldn't anymore even access device manager and had to reboot...
muno is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
nic cards different from onboard? munkeyboy123 Networking and Internet 1 April 10th, 2004 01:19 AM
BLUE SCREENS with random errors c0mputa_n3rd Technical Support 1 October 29th, 2003 11:23 PM
3 PC's phone line networking Q&A DPA Networking and Internet 5 May 11th, 2003 12:52 AM
Help with wireless LAN nemmers Networking and Internet 17 March 19th, 2003 02:05 PM
Installing Additional NICs in 98se joker00 Networking and Internet 3 December 15th, 2002 02:32 PM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
windows 7 problem (6)
Is It Just Me? (2896)
Wireless Televisions. (8)
California Passes Anti-Flat-HDTV Le.. (39)
Obama the Muslim (14)
Is the PSU I received dead? (10)
windows vista security holes (9)
HIS HD5770 graphic card question (15)
Install XP pro and a Vista laptop ?.. (11)
Print spooler problem (13)
Foreign voltage (10)
Dept. of HS: NSA 'Helped' Develop V.. (15)
A good PSU? (10)
EVGA 9800 gtx help with finding a g.. (8)
Recent Discussions
windows 7 problem (6)
Point and Shoot Camera Suggestions. (2)
Modern Warfare 2 freeze (13)
Wireless Televisions. (8)
CPU fan stops spinning randomly (3)
wireless user (1)
World's largest Monopoly Game using G.. (332)
Ideal cheap graph card for PC-Gaming? (17)
BIOS won't read disk when I try to fl.. (0)
Install XP pro and a Vista laptop ?? (11)
Partition Magic caused HDD problem (2)
Graphics Card Upgrade Question (1)
favorit (1)
solutions for virtical white lines on.. (1)
Regular Build (3)
Fire in DVD (2)
Modern Warfare For the PC (33)
radeon x850xt platinum & shader 3 (3)
Have you switched yet? (84)
Wireless Router+Cable Modems and Much.. (0)
Optical Audio A-B Switch (1)
windows vista security holes (9)
The NTDVM CPU has encountered an ille.. (24)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (34)
Wireless speakers for PC? (11)


All times are GMT -4. The time now is 11:19 AM.
TechIMO Copyright 2009 All Enthusiast, Inc.



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