Quantcast
Channel: Azure Virtual Machines forum
Viewing all articles
Browse latest Browse all 12545

Remote Powershell to VM

$
0
0
Hi

As stated trying to remote powershell into VM!

Ran this on VM just in case:  Set-WSManQuickConfig

This is from remote machine:

PS C:\Users\admin> Enter-PSSession -ComputerName XXXXXXXXX.cloudapp.net -Port 5986 -Credential XXXXXXX -UseSSL
Enter-PSSession : Connecting to remote server failed with the following error message : The server certificate on the d
estination computer (XXXXXXXXXX.cloudapp.net:5986) has the following errors:
The SSL certificate is signed by an unknown certificate authority. For more information, see the about_Remote_Troublesh
ooting Help topic.
At line:1 char:16
+ Enter-PSSession <<<<  -ComputerName XXXXXXXXXXX.cloudapp.net -Port 5986 -Credential XXXXXXXX -UseSSL
    + CategoryInfo          : InvalidArgument: (XXXXXXXXXX.cloudapp.net:String) [Enter-PSSession], PSRemotingTranspor
   tException
    + FullyQualifiedErrorId : CreateRemoteRunspaceFailed


I have installed the certificate that I get when browsing to the address through a browser into Current User > Trusted Root Certification Authorities. It imported fine and have confirmed it' in the certificate store.

I now get that the identity is verified when using a browser but it complains that "this page contains other resources which are not secure" .The connection uses TLS 1.0

Any ideas where I'm going wrong?

Thanks 
Antony

Viewing all articles
Browse latest Browse all 12545

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>