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

  • Developer Tools

  • End-User Computing

  • Management & Orchestration

  • Storage

  • Platform & Compute

Contributor

Language

1 - 10 of 810 Results Sample
  • Return boolean from search string

    Contributor robertshaw

    This workflow will check Operating System information and return a boolean vaule using the Javascript test() method which returns true if it finds a match, otherwise it returns false. For this example ...
    vRealize Orchestrator vRO Workflow
    Download

    7 Downloads

    0 Comments

    Updated 2 days ago

  • Set Sparse Swap files for vSAN 6.2 or Greater

    Contributor Jasemccarty

    ...   One of the Space Efficiency features of Virtual SAN 6.2 that is available for both All-Flash and Hybrid configurations, is the introduction of Sparse Virtual Swap files. Swap files on Virtual S ...
    vSphere PowerCLI PowerShell
    Download

    65 Downloads

    0 Comments

    Updated 4 days ago

  • vSAN Set Swap Chunk Size

    Contributor Jasemccarty

    This script will go through a single host, or each host in a designated cluster, and set /Mem/SwapExtendChunkSizeInMB to either 0 or 65536 Used to mitigate KB 2150316 https://kb.vmware.com/kb/2150316 ...
    VMware PowerCLI PowerShell
    Download

    9 Downloads

    0 Comments

    Updated 4 days ago

  • VMware vSphere Connector Module for Python

    Contributor mnikolov

    vConnector - VMware vSphere Connector Module for Python vConnector is a wrapper module around pyVmomi VMware vSphere bindings, which provides methods for connecting and retrieving of objects from a ...
    vCloud Suite Python Python
    Download

    2110 Downloads

    2 Favorites

    0 Comments

    Updated 4 days ago

  • Windows 10 - Power CSP

    Contributor JosueNegron

    This is a sample of some of the Power CSPs which you can deploy to your devices. To deploy this sample, navigate to Devices & User > Profile > Add > Windows > Desktop > Device > Custom Settings, then ...
    Airwatch XML
    Download

    16 Downloads

    0 Comments

    Updated 4 days ago

  • Windows - SCCM App Migration Tool

    Contributor JosueNegron

    This set of scripts will run locally on SCCM and will leverage the AirWatch APIs to migrate your SCCM apps into AirWatch.  SCCM App Migration Tool Overview Author: Varun Murthy Email: vmurthy@vmw ...
    Airwatch PowerShell
    Download

    554 Downloads

    6 Favorites

    0 Comments

    Updated 5 days ago

  • Ghetto VCB

    Contributor lamw

    ghettoVCB Description The ghettoVCB script performs backups of virtual machines residing on ESX(i) 3.x, 4.x, 5.x & 6.x servers using methodology similar to VMware's VCB tool. The script takes snapsho ...
    vSphere Management Shell
    Download

    2009 Downloads

    2 Favorites

    0 Comments

    Updated 5 days ago

  • Windows 10 - SCCM SQL Query for AirWatch Batch Import

    Contributor JosueNegron

    In order to silently onboard Windows 10 devices into AirWatch and have them automatically assigned to the primary user, you will have to first preregister devices via a batch import. You can use the a ...
    Airwatch Other Language
    Download

    31 Downloads

    1 Favorite

    0 Comments

    Updated 5 days ago

  • Basic workflow to publish and subscribe content libraries

    Contributor VMware

    Basic workflow to publish and subscribe content libraries. This sample is a part of the vSphere Automation SDK for Java. If you wish to build and run the sample, clone or download the vSphere Automati ...
    vSphere Automation Java Java
    Download

    81 Downloads

    0 Comments

    Updated 10 days ago

  • Deploy OVF Template

    Contributor VMware

    Deploy OVF Template Demonstrates the workflow to deploy an OVF library item to a resource pool. Note: the sample needs an existing library item with an OVF template and an existing cluster with resou ...
    vSphere Automation Python Python
    Download

    322 Downloads

    0 Comments

    Updated 10 days ago