disable and enable hardware with devcon
-
Monday, April 30, 2012 4:59 PM
Hi all,
my laptop is is an HP EliteBook 8460p with windows 7 pro SP1.
I have a problem with my network adapter where I am having to go to device manager and disable and enable everytime I restart. I updated the driver from HP and from intel, but it doesn't seem to help.
so I created a batch file that disables / enables the network adapter at system startup, which seems to be ok, but the problem with it is that it's messing with the video adapter at the same time, and I am not sure why.
here's the script lines:
---------------------------------------------------------------------------------------------------------------------------------------------------------------
devcon disable PCI\VEN_8086&DEV_1502&SUBSYS_161C103C&REV_04\3&33FD14CA&0&C8: Intel(R) 82579LM Gigabit Network Connection
devcon enable PCI\VEN_8086&DEV_1502&SUBSYS_161C103C&REV_04\3&33FD14CA&0&C8: Intel(R) 82579LM Gigabit Network Connection
netsh interface set interface "Wireless Network Connection" enable
netsh interface set interface "Local Area Connection" disable
netsh interface set interface "Local Area Connection" enable---------------------------------------------------------------------------------------------------------------------------------------------------------------
I think it has something to do with the hardware ID, but am not able to find a different one, so I really appreciate any help I can get with this one.
Thanks
Mohsen Almassud
All Replies
-
Tuesday, May 01, 2012 3:01 AMModerator
Hi,
First, regarding the scripts, it is recommended to post your question on the Official Scripting Guys Forum for further discussion.
The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
Regarding the network adapter issue, please update the BIOS and chipset and make sure all the drivers are installed as the latest version.
Also, did you test this issue in Clean Boot?
Regards,
Sabrina
If you are TechNet Subscription user and have any feedback on our support quality, please send your feedback here.
Sabrina
TechNet Community Support
-
Tuesday, May 01, 2012 11:17 AM
Sabrina,
I am in total agreement with you and I should have posted this question in the scripting forum.
just to finish this thread, I already updated the BIOS, the chip set driver, and installed the latest drivers. I even took it a step further and called HP just to see if they have a solution, but at the end they told me that I will need to reload the OS, which I don't think it's worth it. I then started looking for a workaround until I get my new laptop, and that's why I started working with devcon.
I was able to get this script to work last night, so thanks for participating.
here's the part that I was missing from my script:
devcon disable PCI\CC_0200
devcon disable PCI\CC_0280
devcon enable PCI\CC_0200
devcon enable PCI\CC_0280Thanks
Mohsen Almassud
- Marked As Answer by Mohsen Almassud Wednesday, May 02, 2012 12:49 AM
-
Wednesday, May 02, 2012 2:04 AMModerator
Hi Mohsen,
Thank you for your sharing which will direct the other communities who encounter the similar issue.
You’re most welcome to ask Windows 7 related questions here. :)
Regards,
Sabrina
If you are TechNet Subscription user and have any feedback on our support quality, please send your feedback here.
Sabrina
TechNet Community Support

