小编die*_*gus的帖子

在 Windows 10 上找不到 Powershell 模块“servermanager”

我在虚拟机上运行 Windows 10,我想通过在 powershell 上运行以下命令来列出可用的 Windows 功能:

Import-Module ServerManager
Get-WindowsFeature
Run Code Online (Sandbox Code Playgroud)

已运行第一个命令会产生:未加载特定模块“servermanager”,因为在任何模块目录中都找不到有效的模块文件。

我曾尝试使用 Windows Server 2008 Powershell Servermanager 模块的解决方案, 该模块未包含在 Windows Web Server 2008 R2 中,但这对我不起作用,即我在 C:\Windows\System32\WindowsPowerShell\v1.0\ 中找不到该模块模块。但是,我找不到如何在 Windows 10 中的 64 位或 32 位 Powershell 之间切换。有帮助吗?谢谢你

powershell windows-10

15
推荐指数
2
解决办法
4万
查看次数

标签 统计

powershell ×1

windows-10 ×1