Viewing the C:\ of a Vm via PowerCLI
Posted on 2014-08-06
I need some help with a system disk running low on capacity on a server VM. The thing is this Vm is a guest on ESX 3.5 and im using a Windows 8 laptop and I suspect the message I get that the "VcxClient has stopped working" when I try to connect to the Host.
I cant RDP to the Server possibly due to the capacity issues. So I was thinking if there is a way I could connect to the vm through PowerCLi and go through the vm's c:\ and clear out anything that is not required. I've successfully connected to the host using Connect-VIServer, though I'm not sure how I would connect to the guest vm and view its c:\
Im using PowerCLi 5.5 1 and tried using the Get-VM “GuestName” | Open-VMConsoleWindow but I'm not sure its supported by the version of ESX. as I get the below message.
Open-VMConsoleWindow : The method is not supported in the API version 2.5u2.
At line:1 char:17
+ get-vm VMS006 | Open-VMConsoleWindow
+ CategoryInfo : NotSpecified: (:) [Open-VMConsoleWindow], NotSupportedException
+ FullyQualifiedErrorId : System.NotSupportedException,VMware.VimAutomation.ViCore.Cmdlets.Commands.OpenVMConsoleWindow
Thanks in advance for the assistance.