• 0

Windows 7 Ethernet driver disable/enable script


Question

Hey all,

Wouldn't really know where to start with this as I'm not big into coding..

Would it be possible to create a script at startup that disables the ethernet driver, then 10-15 seconds later enables it again?

Or even have Windows start up with the ethernet driver disabled, then a script run to enable it?

Thanks

I found this:

http://social.techne...9-6d3edc97e9aa/

  Quote
SetLocal EnableDelayedExpansion

set Adapter=Realtek RTL8168D/8111D Family PCI-E Gigabit Ethernet NIC (NDIS 6.20)

echo.

if /i "%1"=="enable" goto go

if /i "%1"=="disable" goto go

if /i "%1"=="toggle" goto go

echo Syntax: Device.bat enable / disable / toggle

goto :eof

:go

set HWID=x

set count=0

set found=no

set command=%1

devcon.exe hwids "PCI\*" > "%temp%\device.txt"

for /F "tokens=*" %%* in ('type "%temp%\device.txt"') do (

set /a count=!count! + 1

if /i "%%*"=="Name: %Adapter%" set found=yes& set count=1

if !found!==yes if !count!==3 set HWID=%%*

)

if %found%==no echo Device "%Adapter%" not found. & goto exit

echo HWID=!HWID!

if /i %command%==toggle (

devcon.exe status "!HWID!" | find /i "disabled" > nul

if ErrorLevel 1 (set command=disable) else (set command=enable)

)

devcon.exe %command% "!HWID!"

:Exit

del "%temp%\device.txt"

endlocal

Unsure where to find the right version of devcon for Windows 7 though..

Just realised I need to download Windows Driver Kit (WDK) 7.1.0 althought is a couple hundred meg..

I was hoping to send this script out to several people and would be a pain having to install this on each machine to get a script to work..

Any other work arounds?

1 answer to this question

Recommended Posts

  • 0

Why don't you just download the WDK, extract the devcon for 32 and 64 and include that in what your sending out to the users? I have them if you need them as well - I could attach them to the thread if you need them and can not download the large file yourself.

Curious -- why do you want to do such a thing? What is the point of enabling it 15 seconds after start?

edit: attached the devcons I have - window7 64 and 32, and then one I use for xp are included

devcon.zipFetching info...

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Chinese? It sounds extremely dangerous. I’ll reconsider buying a Meta Quest 3.
    • - What's your salary? Is it more than $100k a year? - Nah, it's $100 mil a year.
    • Compared to my ear buds which are the size of a matchbox, cover a much broader frequency range, and work everywhere without setup? Yeah, still not buying this as a replacement.
    • Meta's Superintelligence team staffed by 50% Chinese talent, 40% ex-OpenAI by Hamid Ganji Mark Zuckerberg's latest big bet at Meta involves building a team of the best AI superstars in the market to lead the so-called Superintelligence Labs. The goal of this team is to develop AI models that will ultimately lead to Artificial General Intelligence (AGI). AGI refers to an AI model with capabilities comparable to, or even beyond, those of the human brain. Achieving human-level cognitive abilities with an AI model requires substantial investments, as well as hiring the best talent to build such a system. That's why Meta is throwing hundreds of millions of dollars at AI researchers from OpenAI, Apple, and other companies to recruit them for its Superintelligence team. A user on X has now shared a spreadsheet that provides us with some unique insights into Meta's Superintelligence team and the origins of its 44 employees. The leaker claims this information comes from an anonymous Meta employee. The listing claims that 50 percent of the staff at the Superintelligence team are from China, which demonstrates the significant role of Chinese or Chinese-origin researchers in Met's AI efforts. Additionally, 75 percent of these staff hold PhDs, and 70 percent of them work as researchers. Interestingly, 40 percent of the staff are ex-OpenAI employees whom Mark Zuckerberg poached from the maker of ChatGPT. Additionally, 20 percent of Meta's Superintelligence team members come from Google DeepMind, and another 15 percent come from Scale AI, a startup that Meta recently acquired in a $15 billion deal. Another interesting point is that 75 percent of the Superintelligence team are first-generation immigrants. The leaker claims that each of these employees is now earning between $10 million and $100 million per year, although Meta still needs to confirm these substantial figures. However, it has already been reported that Meta is offering up to $100 million in signup bonuses to poach the best AI talent from OpenAI and other rivals. The revelation that half of Meta's Superintelligence team consists of Chinese nationals could trigger concerns within the Trump administration and Congress.
    • From a quick Google it seems 6GHz is optional on 802.11be. Ubiquiti has one, Unifi U7 Lite.
  • Recent Achievements

    • First Post
      nobody9 earned a badge
      First Post
    • One Month Later
      Ricky Chan earned a badge
      One Month Later
    • First Post
      leoniDAM earned a badge
      First Post
    • Reacting Well
      Ian_ earned a badge
      Reacting Well
    • One Month Later
      Ian_ earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      505
    2. 2
      ATLien_0
      207
    3. 3
      Michael Scrip
      206
    4. 4
      Xenon
      138
    5. 5
      +FloatingFatMan
      113
  • Tell a friend

    Love Neowin? Tell a friend!