Quantcast
Channel: TechNet Blogs
Viewing all articles
Browse latest Browse all 36188

How to Remote PowerShell to Azure VM (DIP to DIP)

$
0
0

Enter a PowerShell session from inside another VM located inside the same Vnet and run the following:

$Skip = New-PSSessionOption -SkipCACheck -SkipCNCheck Enter-PSSession -ComputerName “HOSTNAME” -port 5986 -Credential (Get-Credential) -useSSL -SessionOption $Skip

If the above does not work try the following instead:

$Skip = New-PSSessionOption -SkipCACheck -SkipCNCheck Enter-PSSession -ComputerName “HOSTNAME” -port 5985 -Credential (Get-Credential) -SessionOption $Skip


Viewing all articles
Browse latest Browse all 36188

Trending Articles



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