Link to home
Start Free TrialLog in
Avatar of mrjoe
mrjoe

asked on

Local/Remote disabling/enabling lan connection

Hi,

I use a W2Kpro pc to share i'net with 2 other pc's, also w2kpro. Now I have a problem with one of the lan connections, after booting sometimes the connection doesn't work. Sometimes it does, sometimes it doesn't.... when I get no response on a ping on that connection, I have to open the connection properties, choose disable, and after that just enable it again. Then it always works. I think it is a problem on the client pc, although I wouldn't know what. Or something with the utp cable.. who knows... but what I really want to now at this moment:
Can I, locally or remote, disable/enable a lan connection with a dosprompt command? So I could use a batch for this? I've tried netsh, but no luck with that.

Any help greatly appreciated
ASKER CERTIFIED SOLUTION
Avatar of NahumK
NahumK

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mrjoe
mrjoe

ASKER

That looks very promissing, although it gives an error with me. I must warn you, this is my first experience with windows scripting!

The warning is in dutch here, translated it would be: "The value for the attribute is invalid : progid."

On this line: <object id=”objShell” progid=”Shell.Application”/>

Is this something I need to enable/install first?

thanks in advance
open the script file in a dos editor. what you'll probably see is some wierd characters where characters like '," and / should be. (notepad screwed up conversion from unicode to ascii?)
replace the weird characters with the characters that should be there and the script will run.
Avatar of mrjoe

ASKER

Indeed, didn't thought about opening the file in a dos editor.. I still had to change the “En&able” and “Disa&ble” to their dutch equivalents, but it works now. I feel great about my first step in win scripting =)

Great help, tnx.