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

  • 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

Contributor

Language

1 - 10 of 279 Results Sample PowerShell
  • Execute AirWatch Rest API Call

    Contributor Robert Terakedis

    .SYNOPSIS This Poweshell script make a REST API call to an AirWatch server. This particular script is used to pull device information based on serial numbers pulled from a file. If you need to build y ...
    AirWatch PowerShell
    Download

    3691 Downloads

    4 Comments

    Updated 2 years ago

  • Add Tag to Supervised Device

    Contributor Robert Terakedis

    .SYNOPSIS This Poweshell script make a REST API call to an AirWatch server. This particular script is used to build an Assignment Group for all supervised devices. There is currently no filter in the ...
    AirWatch PowerShell
    Download

    568 Downloads

    0 Comments

    Updated 6 years ago

  • prepare_vra_template.ps1 7.0

    Contributor Gary Coburn

    UPDATED Script - for combined 7.0, 7.0.1, and 7.1 go to  https://developercenter.vmware.com/samples?id=1136  
    vRealize Automation PowerShell
    Download

    1195 Downloads

    0 Comments

    Updated 5 years ago

  • prepare_vra_template.ps1 7.0.1

    Contributor Gary Coburn

    UPDATED Script - for combined 7.0, 7.0.1, and 7.1 go to  https://developercenter.vmware.com/samples?id=1136   
    vRealize Automation PowerShell
    Download

    11273 Downloads

    2 Favorites

    0 Comments

    Updated 5 years ago

  • Execute-VMHostCommand.ps1 - plink.exe Wrapper for ESXi Hosts

    Contributor Aaron Smith

    Wrapper PowerCLI script that uses plink.exe to execute commands via SSH against one or more ESXi hosts.  Useful to perform mass configuration changes using ESXi commands that PowerCLI does not expose, ...
    VMware PowerCLI PowerShell
    Download

    1101 Downloads

    1 Comment

    Updated 6 years ago

  • PowerShell error resolution

    Contributor Kamen Nikolov

    The Resolve-Error function will show the complete information about the error, which will further help investigate the error.
    VMware PowerCLI PowerShell
    Download

    247 Downloads

    1 Favorite

    2 Comments

    Updated 4 years ago

  • Get Supported VMX Versions

    Contributor Alan Renouf

    PowerCLI C:\> $cluster = Get-Cluster CLU1 (Get-View $cluster.ExtensionData.EnvironmentBrowser).QueryConfigOptionDescriptor()     Key                 : vmx-03 Description         : ESX 2.x virtual mach ...
    VMware PowerCLI PowerShell
    Download

    310 Downloads

    0 Comments

    Updated 6 years ago

  • Auto provision IO Analyzer Workloads

    Contributor Norbert Schulz

    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

    587 Downloads

    0 Comments

    Updated 6 years ago

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

    Contributor Paul Goggin

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

    401 Downloads

    0 Comments

    Updated 6 years ago

  • PowerCLI Script to Install VMware Host Patches

    Contributor Ben Liebowitz

    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

    889 Downloads

    0 Comments

    Updated 6 years ago