Viewing the C:\ of a Vm via PowerCLI

Posted on 2014-08-06
Last Modified: 2014-08-06
Hi Experts,

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.
Question by:damejen
    LVL 116

    Accepted Solution

    You could look at using the following:-

    It's also worth looking at The free VMware Guest Console

    it will allow you to browse the VM file system

    Author Closing Comment

    Hi Andrew,

    Great tool to use, thanks for the help, I have been able to  clear the capacity issue on the guest vm. Just out of curiosity is there a cmdlet to connect to the guest and view the contents of the c:\ or any other disk on the guest vm?

    Thanks for the help.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    This article is an update and follow-up of my previous article:   Storage 101: common concepts in the IT enterprise storage This time, I expand on more frequently used storage concepts.
    Create and license users in Office 365 in bulk based on a CSV file. A step-by-step guide with PowerShell script examples.
    Advanced tutorial on how to run the esxtop command to capture a batch file in csv format in order to export the file and use it for performance analysis. He demonstrates how to download the file using a vSphere web client (or vSphere client) and exp…
    This video shows you how to use a vSphere client to connect to your ESX host as the root user. Demonstrates the basic connection of bypassing certification set up. Demonstrates how to access the traditional view to begin managing your virtual mac…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now