根据和2008 Windows 2008 R2中有线局域网的Netsh命令和2008 Windows 2008 R2中有线局域网的Netsh命令,netsh应该提供如下命令
netsh add profile filename="profile.xml" interface="Local Area Connection"但这对我的netsh来说是个未知的命令。
即使我进去
netsh show /? 它只显示了两个选项:'show别名‘和'show helper’。也许是图书馆/模块,还是什么东西不见了?
我在PowerShell中使用管理权限进行了测试。
发布于 2012-08-30 22:35:48
您需要在netsh的“lan”上下文中访问配置文件命令:
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>发布于 2012-08-30 22:15:15
netsh /?将显示命令的所有可用选项。
https://serverfault.com/questions/423088
复制相似问题