Code Samples and PowerCLI Example Scripts | VMware

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.

Filters

SDK / Platform / Tool

  • Application Management Services

  • Automation Tools

  • Cloud Management Platform

  • Cloud Native Applications

  • Data Center & Cloud Infrastructure

  • Desktop & Application Virtualization

  • Enterprise Mobility Management

  • Hybrid Cloud & Data Center Infrastructure

  • Networking & Security

  • Storage & Availability

  • Other Platform

Contributor

Language

1 - 10 of 223 Results Sample vSphere
  • Create Random Marvel VMs

    Contributor hartsocks

    vSphere SDK for Python program for creating tiny VMs (1vCPU/128MB) with randomnames using the Marvel Comics API pyvmomi-community-samples Community contributed samples for the pyVmomi library. ...
    vSphere Management SDK Python
    Download

    1662 Downloads

    0 Comments

    Updated 8 months ago

  • ESXi- Hostd Service StatFetcher

    Contributor ghegdal

    VMware ESXi- Hostd Service StatFetcher 1. Details Utility to retrieve ESXi Hostd Service Stats such as Memory usage and Limit Threads Usage and Limit FD Usage and Limit Responsiveness Utility connec ...
    vSphere Management SDK Java
    Download

    601 Downloads

    0 Comments

    Updated 2 years ago

  • Solution 2- Report on VMs with multi-writer flag enabled

    Contributor vThinkBeyondVM

    What this script does: This script first downloads all the VMX files (per host/cluster/datacenter/VC)at specified file location and scans each VMX file for "multi-writer" flag and finally prepare a re ...
    VMware PowerCLI vSphere Management SDK PowerShell
    Download

    514 Downloads

    0 Comments

    Updated 3 years ago

  • vSphere HA _FDM_ SSLv3 Configuration Utility for VMware ESXi5.5

    Contributor ghegdal

    vSphere HA (FDM) SSLv3 Configuration Utility for VMware ESXi5.5 Utility program for SSLv3 Security Protocol Configuration on vSphere HA (FDM) service. Go through "vSphere-HA-FDM-SSL-Config-README.pdf" ...
    vSphere Management SDK Java
    Download

    563 Downloads

    0 Comments

    Updated 3 years ago

  • Utility program - vSphere Trusted Platform Module TPM attestation reporter

    Contributor ghegdal

    vSphere-Trusted-Platform-Module-TPM-attestation-reporter-Utility 1. Details Utility to fetch Trusted Platform Module (TPM) attestation information values of the Platform Configuration Registers (PCRs) ...
    vSphere Management SDK Java
    Download

    566 Downloads

    0 Comments

    Updated 3 years ago

  • VMware Virtual SAN -- All Flash Automated Deployment for Stretched Cluster

    Contributor alanrenouf

    vSAN All Flash Automated Deployment For Stretched ClusterVMware Virtual SAN -- All Flash Automated Deployment for Stretched Cluster
    VMware PowerCLI PowerShell
    Download

    451 Downloads

    0 Comments

    Updated 2 years ago

  • The All-in-One Virtual SAN Deployment Script

    Contributor alanrenouf

    Virtual SAN Deployment Script - The All-in-One Virtual SAN Deployment Script
    VMware PowerCLI PowerShell
    Download

    379 Downloads

    0 Comments

    Updated 2 years ago

  • Add NFS Datastore in ESXi

    Contributor doskiran

    ... //:: # Description: Creating/Mounting NFS datastore in ESXi(no connection to vCenter server) using vSphere API.  //::# How to run this sample: http://vthinkbeyondvm.com/getting-started-with-yavi-j ...
    vSphere Management SDK Java
    Download

    625 Downloads

    0 Comments

    Updated 2 years ago

  • vRealize Automation - NSX Integration

    Contributor VMware

    vRealize Automation - NSX Integration NSX integration in vRealize Automation can help creating and configuring existing networks, on-demand NAT networks and on-demand routed networks, creating load ba ...
    vRealize Automation api_vra_network POSTMAN Collection
    Download

    1339 Downloads

    0 Comments

    Updated 6 months ago

  • Upgrade ESXi Hosts

    Contributor streaks6

    Automatic-ESXi-Host-Upgrade Host upgrade performs configuration backups and uses VUM to upgrade hosts which are backed up and "NonCompliant" serially. Clusters can be upgraded one at a time and the sc ...
    VMware PowerCLI PowerShell
    Download

    685 Downloads

    0 Comments

    Updated 2 years ago

;