首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >netsh不提供命令

netsh不提供命令
EN

Server Fault用户
提问于 2012-08-30 22:02:38
回答 2查看 793关注 0票数 1

根据和2008 Windows 2008 R2中有线局域网的Netsh命令和2008 Windows 2008 R2中有线局域网的Netsh命令,netsh应该提供如下命令

代码语言:javascript
复制
netsh add profile filename="profile.xml" interface="Local Area Connection"

但这对我的netsh来说是个未知的命令。

即使我进去

代码语言:javascript
复制
netsh show /? 

它只显示了两个选项:'show别名‘和'show helper’。也许是图书馆/模块,还是什么东西不见了?

我在PowerShell中使用管理权限进行了测试。

EN

回答 2

Server Fault用户

回答已采纳

发布于 2012-08-30 22:35:48

您需要在netsh的“lan”上下文中访问配置文件命令:

代码语言:javascript
复制
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>
票数 1
EN

Server Fault用户

发布于 2012-08-30 22:15:15

代码语言:javascript
复制
netsh /?

将显示命令的所有可用选项。

票数 0
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/423088

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档