Reputation: 141
I try connect to from the machine psttest01 to the machine psttest02 with PSSession and certificates as authentication. For that I used this command:
Enter-PSSession -ComputerName psttest02 -CertificateThumbprint 7221fc5479300189759ed18031c9c0
But I get an Access denied Error.
When I work with Credentials like this:
Enter-PSSession -ComputerName psttest02 -Credential (Get-Credential)
it works fine. What did I wrong? Let me know if you need some more informations
Upvotes: 2
Views: 2808
Reputation: 7000
Ensure that you use -UseSSL
parameter and check that the certificate is present on both machines, in the Trusted Roots.
Also check that when you type the following winrm get winrm/config/service/auth
and winrm get winrm/config/client/auth
is Certificate = true
If not enable them by typing winrm set winrm/config/service/auth '@{Certificate="true"}'
Upvotes: 1