Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

2 Answers 2

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>

Parameters:

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

Remarks:

   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.

Examples:

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


C:\Users\kce>
share|improve this answer
netsh /?

will show you all the available options for the command.

share|improve this answer

Your Answer

 
discard

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.