Avatar of BeGentleWithMe-INeedHelp
BeGentleWithMe-INeedHelp
Flag for United States of America asked on

scripting a disable / enable of a NIC at startup

I have an old dell PC (vostro 200) that had been running xp but I put win 10 on it when it was in trial so now I can keep 10 on it.  But after reboots, sometimes the nic shows the network as unknown. I just have to disable then enable the nic and it works fine.

I tried updating drivers but it says I have the latest.

anyone know how to write a batch to disable and enable the nic?

Someone said devcon.exe is needed, but not sure how to use it.

thanks!
VB ScriptScripting LanguagesWindows NetworkingWindows 7Windows 10

Avatar of undefined
Last Comment
BeGentleWithMe-INeedHelp

8/22/2022 - Mon
SOLUTION
oBdA

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
McKnife

Hi.
You had that question before, remember? If obda's doesn't work, Do like I told you, use devcon.exe. If you need help with it, just say.
ASKER CERTIFIED SOLUTION
McKnife

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
BeGentleWithMe-INeedHelp

ASKER
Thanks!  1 more question though.  I made a 2 line batch (actually, 3 - pause so I could see the results : )

It wanted me to run as admin.  I right clicked, chose run as admin and it worked.

But at startup / put in the startup folder? how do you get it to run as admin?
SOLUTION
McKnife

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
BeGentleWithMe-INeedHelp

ASKER
thanks.  I chose run at startup rather than at logon.... I've been using this with mouse without borders (remote into the PC) from another PC.  and it's hooked up with a KVM so I can get into it directly if need be.  But I want to free up the KVM.

I need it to be accessible remotely... so I can log into it remotely : )

right? startup rather than at login makes sense in this case?
Your help has saved me hundreds of hours of internet surfing.
fblack61
McKnife

It will work with "at startup". Test it.
BeGentleWithMe-INeedHelp

ASKER
thanks!