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.

Filters

SDK / Platform / Tool

  • Automation Tools

  • Cloud Management Platform

  • Cloud Native Applications

  • Data Center & Cloud Infrastructure

  • Desktop & Application Virtualization

  • Developer Tools

  • Enterprise Mobility Management

  • Hybrid Cloud & Data Center Infrastructure

  • Networking & Security

  • Storage & Availability

  • Other Platform

Contributor

Language

1 - 10 of 40 Results Sample PowerCLI
  • SDRS VM Overrides

    Contributor vThinkBeyondVM

    .NOTES Product/Feature: vCenter Server/SDRS .NOTES Author: Vikas Shitole .NOTES Reference: https://pubs.vmware.com/vsphere-65/index.jsp#com.vmware.wssdk.apiref.doc/vim.StorageResourceManager.html#co ...
    VMware PowerCLI PowerShell
    Download

    191 Downloads

    1 Comment

    Updated 7 months ago

  • PowerCLI Script to Install VMware Host Patches

    Contributor BenLiebowitz

    I wrote this script to make my host patching more effecient.   When I was updating my hosts, while installing updates, I would get involved in other tasks, miss when the host came back after restartin ...
    vSphere Update Manager PowerCLI PowerShell
    Download

    341 Downloads

    0 Comments

    Updated 2 years ago

  • Auto provision IO Analyzer Workloads

    Contributor JSchulz

    Automate the deployment of IO Workload VMs which can be used with the IO Analyzer fling to test storage performance.  If the IO Template is captured with the auto-login property set then this can comp ...
    VMware PowerCLI PowerShell
    Download

    194 Downloads

    0 Comments

    Updated 2 years ago

  • Remove all ESXi hosts from vCenter and readd them again.

    Contributor GoggiP365

    ****Remove all ESXi hosts from vCenter and readd them again.**** 
    vCloud Director PowerCLI PowerShell
    Download

    156 Downloads

    0 Comments

    Updated 2 years ago

  • Test ESXi Network

    Contributor chs1

    test-ESXi-Network Test network connectivity on a new ESXi host- Are the physical NICs patched correctly? This quick PowerCLI/PowerShell program was written to test connectivity on some new hosts befor ...
    VMware PowerCLI PowerShell
    Download

    117 Downloads

    0 Comments

    Updated 1 year ago

  • Sample 2 Node vSAN Deployment Script

    Contributor Jasemccarty

    I started some of this with PowerCLI 6.x and have recently only used it with PowerCLI 10.x  vSphere 6.5 Update 1 (July 2017) is the earliest build I've validated it on lately - Your Mileage May Vary o ...
    VMware PowerCLI PowerShell
    Download

    156 Downloads

    0 Comments

    Updated 8 months ago

  • VMware on AWS - 1 Node SDDC Deployment

    Contributor kmruddyVMW

    Use this script to easily deploy a 1 Node SDDC!
    VMware Cloud on AWS VMware Cloud on AWS API PowerShell
    Download

    233 Downloads

    1 Favorite

    0 Comments

    Updated 4 months ago

  • Using Import-VApp to upload OVA or OVF to VMware Cloud on AWS

    Contributor lamw

    This is a sample that uploads an OVA into VMware Cloud on AWS using the PowerCLI Import-VApp cmdlet.  Requirements: VPN established between your onPrem environment and the Management Compute Gateway ...
    VMware Cloud on AWS VMware PowerCLI PowerShell
    Download

    91 Downloads

    0 Comments

    Updated 2 months ago

  • Powercli script to upload Library Item

    Contributor LokeshHK

    This srcipts uploads Library Item to  Content library from given URL location.
    vCloud Suite SDK for REST PowerShell
    Download

    54 Downloads

    1 Favorite

    0 Comments

    Updated 3 months ago

  • Automating new Cloud Motion with vSphere Replication using HCX API

    Contributor lamw

    PowerShell Module for Hybrid Cloud Extension (HCX) API which enables a number of operations including automating the new Cloud Motion with vSphere Replication migration type using HCX API Please see h ...
    VMware Cloud on AWS VMware PowerCLI PowerShell
    Download

    103 Downloads

    0 Comments

    Updated 2 months ago