Powershell PSPKI 模块在 azure 自动化帐户中不起作用

Powershell PSPKI module is not working in azure automation account

我已经将 PSPKI 模块导入到 Azure 自动化帐户中,当使用 PSPKI 的 cmdlet 时,我总是无法识别命令。我可以看到模块已成功安装,并且可以在我的 runbook 中看到 cmdlet,但不知何故无法识别这些 cmdlet。

例如 Test-WebServerSSL -URL login.live.com

我可以重现您的问题,先解决问题,运行 Import-Module -Name PSPKI

Import-Module -Name PSPKI
Test-WebServerSSL -URL login.live.com