bat file to disable ethernet adaptor and then reenable it after windows log in
- by jaslr
When I log into Windows 7 I need to wait 10 seconds and then disable the Local Area Connection (ethernet adaptor) and then reenable it.
I have looked through the suggested answer: Enable/disable wireless interface in a bat file but that seems irrelevant as it just toggles the current state.
From what I can tell I need to include:
netsh interface set interface "Local Area Connection" DISABLED
netsh interface set interface "Local Area Connection" ENABLED
but I'm unsure of the wait time or how I can have this start after Windows has successfully logged in.
What's the best approach here?