当我在PowerShell 5中输入命令Get-WindowsFeature
时,它显示这个错误,我不知道为什么!
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
发布于 2018-02-13 22:33:56
Get-WindowsFeature不是PowerShell 5的一部分,而是Server Manager
模块的一部分,该模块没有安装或加载,因为错误消息清楚地指出,您试图执行的命令不可用。
使用Import-Module ServerManager
导入它,或使用Import-Module -ListAvailable
查看它是否已安装。
发布于 2018-11-04 18:44:16
确保您没有尝试通过Powershell(x86)访问Get-ImportModule。它不在那里。使用常规的Powershell就可以了。
https://stackoverflow.com/questions/48769056
复制相似问题