繁体   English   中英

在 Windows 2016 服务器上使用 Powershell ServerManager 模块

[英]Using Powershell ServerManager module on Windows 2016 Server

我有一个在需要ServerManager模块的 Windows 2016 服务器上运行的模块。 但是, ServerManager不可用。 There are many examples of installing this for Windows 10 using the Remote Server Admin package but that's only for Windows 10. Hammer Software has a good article on adding features and roles in 2016 but it doesn't say specifically which role will add the ServerManager module对全球环境。 有大量的角色和功能,我添加了一些,但似乎无法将ServerManager模块放入我的全局环境中。

我读过旧的东西(例如这个SOF 问题),表明 ServerManager 是 32 位的,并且不会自动加载模块依赖项。 微软仍然为 Server 2012 记录了它,但没有具体说明如何在 Server 2016 上安装和使用它。

现在我完全糊涂了。 我的模块需要ServerManager但我如何安装/加载它? 如果我手动导入模块,它将起作用,即:

PS F:\> import-module C:\Windows\sysnative\WindowsPowerShell\v1.0\Modules\ServerManager\ServerManager.psd1

但是我需要根据我的模块RequiredModules指令自动加载它。

要使用服务器管理器模块,您需要安装/启用该 RSAT 功能。 服务器管理器及其 PS 模块是该集合的一部分。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM