在 PowerShell 和 Server 2012 R2 中使用 Get-TlsCipherSuite

Fra*_*U32 8 powershell windows-server-2012-r2

我的 PowerShell TLS 模块似乎不包含 cmdlet Get-TlsCipherSuite

PS> (Get-Module tls).ExportedCommands

核心价值
--- -----
禁用-TlsSessionTicketKey 禁用-TlsSessionTicketKey
启用-TlsSessionTicketKey 启用-TlsSessionTicketKey
导出-TlsSessionTicketKey 导出-TlsSessionTicketKey
新-TlsSessionTicketKey 新-TlsSessionTicketKey

但我不确定如何更新它。

我用的是PS 5.1

主要次要构建修订
----- ----- ----- --------
5 1 14409 1018

我已经尝试过

PS>更新模块 tls
Update-Module :模块“tls”未使用 Install-Module 安装,因此
无法更新。

编辑:

我认为这是 Server 2012 R2 的限制,因为 cmdlet 未在此处的 2012 下列出

https://learn.microsoft.com/en-us/powershell/module/tls/?view=win10-ps

但是,它是 2016 年列出的。有没有办法将此命令导入到 2012 R2?

小智 6

Get-ItemPropertyValue -Path HKLM:\SYSTEM\CurrentControlSet\Control\Cryptography\Configuration\Local\SSL\00010002 -Name Functions
Run Code Online (Sandbox Code Playgroud)

  • 通过额外的支持信息可以改进您的答案。请[编辑]添加更多详细信息,例如引文或文档,以便其他人可以确认您的答案是正确的。您可以[在帮助中心](/help/how-to-answer)找到有关如何写出好的答案的更多信息。 (2认同)

Ans*_*ers 4

根据文档,Windows Server 2012 R2 中的模块TLS没有您正在查找的 cmdlet。据我所知,如果不升级到更新的 Windows 版本,则无法更新该模块。