VMware Sample Exchange

Browse and download code samples from VMware as well as code samples contributed by the VMware community. Log in to Sample Exchange using your MyVMware credentials to submit requests for new samples, contribute your own samples, as well as propose a sample as a solution for open requests.

Disclaimer: All sample content and code in Sample Exchange is licensed to you by the sample's author. VMware does not guarantee the samples; they are provided "AS IS". Use of this site is subject to the VMware Community Terms of Use.

Browse the list below for code samples from VMware and the community. You can filter the list of samples by selecting a platform or language, or enter other search keywords above.


SDK / Platform / Tool

  • App Modernization

  • Cloud Management

  • Compute Virtualization

  • Desktop & App Virtualization

  • Developer Tools

  • Digital Workspace

  • Hybrid Cloud & Data Center Infrastructure

  • Hyperconverged Infrastructure

  • Multi-Cloud Operations

  • Private & Hybrid Cloud

  • Storage & Availability

  • Virtual Cloud Networking

  • Other Platform



1 - 2 of 2 Results Sample VM uptime
  • Find Last Used time of VMs in a VCenter

    Contributor Jyothsna Terli

    The script is to find the last used time on the VMs present in the Vcenter. The script assumes the following :   1. VM OS is either Windows or Linux   2. password for all Linux VMs is same  
    VMware PowerCLI PowerShell



    Updated 2 years ago

  • VM Uptime Dashboard

    Contributor Lan Nguyen

    The VM uptime dashboard will keep track of any VMs that are currently down but has an uptime of more than 80% of the time for the last 30 days.  A production VM should be up a majority of the time, th ...
    vRealize Operations Manager vRealize Ops Dashboard



    Updated 4 months ago