我的PowerShell TLS模块似乎不包含cmdlet Get-TlsCipherSuite
:
PS>**(Get-Module tls).ExportedCommands**
Key Value
--- -----
Disable-TlsSessionTicketKey Disable-TlsSessionTicketKey
Enable-TlsSessionTicketKey Enable-TlsSessionTicketKey
Export-TlsSessionTicketKey Export-TlsSessionTicketKey
New-TlsSessionTicketKey New-TlsSessionTicketKey
但我不确定如何才能更新它。
我在PS 5.1上
Major Minor Build Revision
----- ----- ----- --------
5 1 14409 1018
我曾尝试过
PS>**Update-Module tls**
Update-Module : Module 'tls' was not installed by using Install-Module, so it
cannot be updated.
- 编辑:*
我认为这是Server 2012和R2的限制,因为该cmdlet未在此处的2012中列出
https://learn.microsoft.com/en-us/powershell/module/tls/?view=win10-ps
然而,它被列为2016年。有没有办法将此命令导入2012年的R2?
3条答案
按热度按时间owfi6suc1#
根据documentation,Windows Server 2012中的
TLS
模块R2没有您要找的cmdlet。据我所知,如果不升级到更新的Windows版本,您将无法更新模块。kupeojn62#
h43kikqp3#
Arjun的回答是正确的,但它使用的是
Get-ItemPropertyValue
cmdlet,该cmdlet本身是为以后的PowerShell版本保留的。完全兼容PowerShell 2.0的Get-TLSCipherSuite
命令版本如下: