Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

According to Netsh Commands for Wired Local Area Network (LAN) in Windows Server 2008 and Windows Server 2008 R2, netsh should provide commands such as

netsh add profile filename="profile.xml" interface="Local Area Connection"

but that's an unknown command for my netsh.

Even if I enter

netsh show /? 

it shows me only two options: 'show alias' and 'show helper'. Maybe some library/modules or something is missing?

I tested with admin permissions in PowerShell.

share|improve this question
up vote 1 down vote accepted

You need to be in the 'lan' context of netsh for the profile commands to be accessible:

C:\Users\kce>netsh lan add profile /?

Usage:  add profile [filename=]<string>  [interface=]<string>


   filename  - name of the profile XML file
   interface - interface name


   Parameter filename is required.
   It is the name of the XML file containing the profile data.

   Parameter interface is optional. It is one of the interface name shown
   by "netsh lan show interface" command. If interface name is given,
   the profile will be added to the specified interface, otherwise the
   profile will be added on all wired interfaces.


   add profile filename="Profile1.xml" interface="Local Area Connection"

share|improve this answer
netsh /?

will show you all the available options for the command.

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.