在 Windows Server 2012 上安装 Active Directory PowerShell 模块

sof*_*fun 7 powershell active-directory windows-server-2012-r2

我需要在 Windows Server 2012 上安装 AD PowerShell 模块,但我无法承受服务器在工作时间重启。

我的问题是可以通过添加/删除 Windows 功能安装 AD 模块而不需要重新启动吗?

如果是这样,PowerShell 需要(最少)哪些 AD 模块才能运行此命令

Search-ADAccount -LockedOut
Run Code Online (Sandbox Code Playgroud)

Rya*_*ies 9

是的,您无需重新启动即可安装和使用。

Install-WindowsFeature RSAT-AD-PowerShell
Run Code Online (Sandbox Code Playgroud)

另外我想明确一点,这仅用于安装 Powershell 模块。并非所有 Active Directory 都完整。安装 Active Directory 是完全不同的事情。