首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >推荐Power Shell 5中的Get-WindowsFeature?

推荐Power Shell 5中的Get-WindowsFeature?
EN

Stack Overflow用户
提问于 2018-02-13 22:26:39
回答 2查看 1.9K关注 0票数 3

当我在PowerShell 5中输入命令Get-WindowsFeature时,它显示这个错误,我不知道为什么!

代码语言:javascript
运行
复制
Get-WindowsFeature: The term "Get-WindowsFeature" is not recognized as a cmdlet name,
function, script file or executable program. Check the spelling of the name, or if a path
access exists, verify that the path is correct and try again.
To the character Line: 1: 1
+ Get-WindowsFeature
+ ~~~~~~~~~~~~~~~~~~
     + CategoryInfo: ObjectNotFound: (Get-WindowsFeature: String) [], CommandNotFoundException
     + FullyQualifiedErrorId: CommandNotFoundException

EN

回答 2

Stack Overflow用户

发布于 2018-02-13 22:33:56

Get-WindowsFeature不是PowerShell 5的一部分,而是Server Manager模块的一部分,该模块没有安装或加载,因为错误消息清楚地指出,您试图执行的命令不可用。

使用Import-Module ServerManager导入它,或使用Import-Module -ListAvailable查看它是否已安装。

票数 3
EN

Stack Overflow用户

发布于 2018-11-04 18:44:16

确保您没有尝试通过Powershell(x86)访问Get-ImportModule。它不在那里。使用常规的Powershell就可以了。

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

https://stackoverflow.com/questions/48769056

复制
相关文章

相似问题

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