georgep
Contributor
Contributor


Hi LucD,

The remote machine  Blah that has PowerCLi installed does use  a 32-bit browser. If I run the Open-VMConsoleWindow  locally on it, it  loads IE 9 and opens the console window to the VM fine.

When I run this from a remote machine to the one above it doesn't error but just returns saying completed.

Invoke-Command -ComputerName Blah -Scriptblock {add-pssnapin VMware.VimAutomation.Core; Connect-VIServer -Server MyVC -WarningAction SilentlyContinue; Open-VMConsoleWindow MyVM}

Watching the task manager on both machines doesn't show a browser trying to load.

So getting access to a VM consoles without PowerCLI installed locally might not seem possible. So another approach I am looking at might be to use

vmware-vmrc.exe

Example when run from machine Blah

Connect-VIServer = MyVC

$vm = Get-VM MyVM

$gvm = Get-View $vm.id

$moref = $gvm.MoRef.Value

$Parameters = " -h MyVC -M $moref"

Start-Process -FilePath "C:\Program Files (x86)\Common Files\VMware\VMware VMRC Plug-in\Internet Explorer\vmware-vmrc.exe" -ArgumentList $Parameters


Is there a way to run this from a remote machine that doesn't have vmware-vmrc.exe installed?

Reply
0 Kudos