2 Replies Latest reply on Mar 12, 2010 2:25 AM by esloof

    New Miscellaneous script - Get-ScreenShot

    esloof Expert
    vExpert

      VMware ESX4 and the new vCenter server both offer a lot of new  SDK properties and methods. One of the new methods is CreateScreenshot_Task which is part of the  ManagedObjectReference:VirtualMachine. This method creates a screenshot of the virtual machine console, the image is saved as a portable network graphics (.png) file in the virtual machine folder. This features is normally used by HA Virtual Machine Monitoring. The Virtual Machine Monitoring feature uses the heartbeat information that VMware Tools captures as a proxy for guest operating system availability. This allows VMware HA automatically to reset or restart individual virtual machines that have lost their ability to heartbeat. Before resetting or restarting the Virtual Machine the vCenter server creates a snapshot of a possible BSOD.  I created a PowerShell script which initiates and copies the screenshots of 9 Virtual Machines. The screenshots are presented in a user interface constructed with Sapien's free PrimalForms. The PowerShell code is still rough and can be improved dramatically.

       

      http://www.ntpro.nl/blog/uploads/Big-Brother.jpg

       

      http://www.ntpro.nl/blog/uploads/Get-ScreenShot-Copy9.ps1