Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to mass disable interfaces on windows machines (more than 100 machines). I tried using:

netsh interface set "VirtualBox Host-Only Network" disable

But it does not work. (I found an article describing that it works on win 2003 server). I can run commands remotely with psexec.

Do you have any hints?

Thanks in advance!

share|improve this question
It might be helpful if you were more specific than "does not work" by including an error message. You could also include a link to the article you mentioned. – Dennis Williamson Sep 3 '09 at 16:33

It may be that you need another "interface" keyword and "disabled" instead of "disable":

netsh interface set interface "VirtualBox Host-Only Network" disabled
share|improve this answer

Disabling LAN interfaces with netsh doeas not work on Windows XP. The help shows following:

admin   - whether the interface should be enabled (non-LAN only)
connect - whtether to connect the interface (non-LAN only)
newname - new name for the interface (LAN only)
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.