netsh

  • Thread starter Thread starter Lardy
  • Start date Start date
In summary...

To Kelly,
If you don't know the answer, don't reply with a search string containing
keywords from the original post. It is a waste of time, and an exercise in
self promotion.

To Wesley Vogel,
I was probably a bit harsh on you, as you at least put in a informative
post. I apologize. But I was looking for an answer, not a nudge in the
right direction.

To ted s.,
Fix the Shift key on your keyboard. "Jackass" and "Pretentious Jerk", is
that the best you could come up with?

To Ken Blake,
Are all MVP's so touchy to criticism like you and Kelly?
 
In
Lardy said:
To Ken Blake,
Are all MVP's so touchy to criticism like you and Kelly?



"Touchy to criticism"? I wasn't the one your were being rude to
or criticizing (at least not originally). I merely pointed out
how rude you were, and that being rude to people who are trying
to help you was not a good way to solicit their help, nor anyone
else's help.

Good luck with your problems. If I were you, I'd try elsewhere
than Microsoft newsgroups; you've made a reputation for yourself
here that is not likely to get you much help in the future.

This is my last post in this this thread. I'm not interested in
getting embroiled in an on-going argument.
 
When people post links to google using your terms they are saying
1. The information is there
2. How you could have found it yourself.

I followed Kelly's link and found two ways to do what you want.
 
David,

I have already tried Google and had no success. If you say you found the
answer there I will try again. However I would have been grateful if you
could have just posted the answer. That way it helps me and also the answer
is available to anyone who passes by this way in the future.

Lardy.


When people post links to google using your terms they are saying
1. The information is there
2. How you could have found it yourself.

I followed Kelly's link and found two ways to do what you want.
 
Link 4

Try this,
netsh interface show interface
Then copy/paste the Dedicated Interface name into the following line...
netsh interface set interface name={IFName} admin=enabled connect=disconnected

I was trying this myself and got The Network path was not found. I've never had much luck with Netsh, nor do I know of a way around it to do what you want. I'll keep an eye out tho.


and



Try Devcon: http://support.microsoft.com/defaul...port/kb/articles/q311/2/72.asp&NoWebContent=1

Link 9

How to enable and disable the network connection

To enable/disable the network connection to local computer, go to administrative tools>services, start/stop server service. To enable/disable the network connection to remote computers, start/stop workstation service. You may want to use task schedule to enable/disable it automatically.

How to enable/disable LAN from command line temporally

You can created a batch file that include ipconfig /release or ipconfig /renew, and use schedule to run it. If you use static IP, you may use netsh instead of ipconfig command. If you want to one way access, you may manage it by using server service and workstation service.

I don't have a network card so I haven't tested any.
 
David,

I type...
netsh interface show interface

cmd...
Admin State State Type Interface Name
-----------------------------------------------------
Enabled Dedicated Wired
etc...

I type...
netsh interface set interface name={Wired} admin=enabled
connect=disconnected

cmd...
An interface with this name is not registered with the router.

What do you think?

Lardy.

Link 4

Try this,
netsh interface show interface
Then copy/paste the Dedicated Interface name into the following line...
netsh interface set interface name={IFName} admin=enabled
connect=disconnected

I was trying this myself and got The Network path was not found. I've never
had much luck with Netsh, nor do I know of a way around it to do what you
want. I'll keep an eye out tho.


and



Try Devcon:
http://support.microsoft.com/defaul...port/kb/articles/q311/2/72.asp&NoWebContent=1

Link 9

How to enable and disable the network connection

To enable/disable the network connection to local computer, go to
administrative tools>services, start/stop server service. To enable/disable
the network connection to remote computers, start/stop workstation service.
You may want to use task schedule to enable/disable it automatically.

How to enable/disable LAN from command line temporally

You can created a batch file that include ipconfig /release or ipconfig
/renew, and use schedule to run it. If you use static IP, you may use netsh
instead of ipconfig command. If you want to one way access, you may manage
it by using server service and workstation service.

I don't have a network card so I haven't tested any.
 
If you read the f*cking links kelly sent you it is discussed in detail. I ain't paying cash to solve your problem. I have to reboot to enable card in BIOS (than again to disable). This means my connection drops so I pay 30c (2 x 15c)in phone charges.

These netsh commands do nothing without a network card. Read Kelly's links.

You were given 3 ways that people claim work.

Why don't you use windows as it was designed to be used. Right click the connection.
 
Having a bad day David.

I have a two computer network at home. I have my desktop computer that
connects to the internet, and I have a laptop connected to the desktop with
a wireless connection. I have found that sometimes the laptop loses
connection with the network. It is an intermittent problem that I have
fully investigated and found no obvious solution. I have found that
disabling and then enabling restores the connection 95% of the time. So I
was going to use IPMonitor to monitor the status of the connection, and when
it goes down run a netsh script to disable and enable the connection.

Google is always my first resource when trying to solve a problem. I had
read through about a dozen different links and tried several suggested
methods without success. So I made a post to this newsgroup seeking an
answer.

I appreciate your efforts, but it would seem no one in this group knows the
answer. Maybe there isn't one?

I also posted the same query to the microsoft.public.windowsxp.network_web
newsgroup and have had not one reply. I must say that is a much more
enjoyable response than the one I have had from this group!

Lardy.


If you read the f*cking links kelly sent you it is discussed in detail. I
ain't paying cash to solve your problem. I have to reboot to enable card in
BIOS (than again to disable). This means my connection drops so I pay 30c (2
x 15c)in phone charges.

These netsh commands do nothing without a network card. Read Kelly's links.

You were given 3 ways that people claim work.

Why don't you use windows as it was designed to be used. Right click the
connection.
 
David,

I have read the links, but I can't find an answer. If you know it, then
maybe you would be so kind as to put in a post?

Lardy.


Keep refusing to read the links.
 
I'll take that as a no then. Thanks for all your help.

Lardy.


When people post links to google using your terms they are saying
1. The information is there
2. How you could have found it yourself.

I followed Kelly's link and found two ways to do what you want.
 
Thanks, but I need a command for a LAN. I tried your suggestion below
anyway and it kept giving me "syntax incorrect".

Lardy.


mosquito_hippy said:
In order to disable a network card in a server wich works as a router use this command:

netsh interface set interface name="XXX" admin="disabled"

to enabled again use

netsh interface set interface name="XXX" admin="enabled"

where XXX is your connection name, it only works for WAN side connection,
for disable LAN side connection it doesn't work, don't ask why.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top