Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Powershell 将证书添加到winrm certMapping表_Powershell_Winrm - Fatal编程技术网

Powershell 将证书添加到winrm certMapping表

Powershell 将证书添加到winrm certMapping表,powershell,winrm,Powershell,Winrm,我想将我的自签名证书添加到winrm certMapping表中。为此,我尝试以下命令: winrm create winrm/config/Listener?Address=IP:172.16.17.51+Transport=HTTPS @{Hostname="TestWIN-BUERJK3TB3E";CertificateThumbprint="02cb8ba899cd9631c9afc32c0e797aca8acc562f"} 但是命令给了我一个错误: Invalid use of co

我想将我的自签名证书添加到winrm certMapping表中。为此,我尝试以下命令:

winrm create winrm/config/Listener?Address=IP:172.16.17.51+Transport=HTTPS @{Hostname="TestWIN-BUERJK3TB3E";CertificateThumbprint="02cb8ba899cd9631c9afc32c0e797aca8acc562f"}
但是命令给了我一个错误:

Invalid use of command line. Type "winrm -?" for help.
我输入了“winrm-?”,但对我没有帮助。那我做错了什么


提前感谢。

证书thumbprint
值无效,它始终是certificate@MathiasR.Jessen我打了一个随机码。我懒得输入完整的代码。我用正确的代码更正了CertificateThumbprint值。