我在虚拟机上运行 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 之间切换。有帮助吗?谢谢你