Ok I've gotten everything to work over HTTPS. It's easy, but not as automated as I was hoping for...
Here is what I've got:
On the Client (Remote) Server:
Download SelfSSL:http://www.microsoft.com/downloads/...laylang=enGenerate Certificate:C:\Program Files (x86)\IIS Resources\SelfSSL>
selfssl.exe /N:CN=10.20.66.10 /V:3600 /T /QRemove https binding from Default Website in IIS7Export Trusted Root CA Cert (cert we just created)
Copy the exported file to the PowerShell Server.
On the PowerShell Server,
Import the copied cert file into the "Trusted Root CA"
Back to the Remote Server:
Create the WinRM HTTPS Listener: (In Command Prompt:)C:\>
winrm create winrm/config/Listener?Address=*+Transport=HTTPS @{Hostname="10.20.66.10";CertificateThumbprint="4f 4c a6 d6 6f b1 5b 88 72 b0 fc 0d 48 a0 4c 9b 0d 93 2a 49"}
Replace the Hostname value with whatever you issued the certificate to in step 1.
Replace the CertificateThumprint value with the actual certificates thumprint (view certificate details).Ensure the client is allowing connections: (In Command Prompt:)C:\>
winrm set winrm/config/client @{TrustedHosts="*"}
Finally,
from the PowerShell server,
establish a persistant session to the remote server:
PS C:\>
$s = New-PSSession 10.20.66.10 -Credentials RADMIN -UseSSLTest:
PS C:\>
icm $s {$env:computername}