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 64 Results Sample PowerCLI
  • Print full-path of VM folder and Resource Pool.

    Contributor go watanabe

    Prints the full path of the VM folders and resource pools for all VMs. It also prints the vCenter / DC name for multi-vCneter or multi-DC environments.
    VMware PowerCLI PowerShell
    Download

    90 Downloads

    0 Comments

    Updated 10 months ago

  • Sample Exchange PowerShell ISE Integration

    Contributor Aaron Spear

    SampleExchangePowerCLI Module A PowerShell Module that contains integration between VMware's new sample code repository Sample Exchange, and PowerShell ISE. Sample Exchange contains an ever growing ca ...
    VMware PowerCLI VMware {code} PowerShell
    Download

    627 Downloads

    1 Favorite

    0 Comments

    Updated 1 year ago

  • Importing VM annotation and notes from CSV file into vCenter

    Contributor kunal udapi

    As in the earlier blog after exporting VM annotations, notes and other useful information to CSV/excel file, It was time to Import those information on new vCenter, This new vCenter has new Esxi Serve ...
    VMware PowerCLI PowerShell
    Download

    1070 Downloads

    0 Comments

    Updated 5 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

    785 Downloads

    0 Comments

    Updated 5 years ago

  • Get Instant Clone Pool Information

    Contributor Mark McGill

    Returns information on Horizon Instant Clone pool VMs, including space consumed, and hierarchy of Parent, Replica, Template, Snapshot, and Master. Identifies VMs that are potentially orphaned/abandone ...
    Horizon - View Power CLI Horizon vSphere CLI vSphere VMware PowerCLI PowerShell
    Download

    144 Downloads

    0 Comments

    Updated 10 months ago

  • vCheck vSphere

    Contributor Alan Renouf

    vCheck-vSphere vCheck Daily Report for vSphere vCheck is a PowerShell HTML framework script, the script is designed to run as a scheduled task before you get into the office to present you with key ...
    VMware PowerCLI PowerShell
    Download

    11580 Downloads

    14 Favorites

    5 Comments

    Updated 3 years ago

  • PowerCLI Port of RVC command vsan.object_info

    Contributor Jase McCarty

    This is the first of many RVC Style Functions that use PowerCLI 11 to mimic some of the tasks available in the Ruby vSphere Console for vSAN Requires William Lam's VSANUUIDtoVM Function, located here: ...
    VMware PowerCLI PowerShell
    Download

    474 Downloads

    0 Comments

    Updated 1 year ago

  • Reverse Migrations with HCX and putting the VMs into the correct vCenter Folder

    Contributor BIlal Ahmed

    This script will let you reverse migrate Vms from the cloud back to legacy. It will also connect to the legacy Center and put the VMs into the correct folder for you.                       uses a csv ...
    VMware HCX PowerShell
    Download

    116 Downloads

    0 Comments

    Updated 1 year ago

  • Reverse Migrations with HCX

    Contributor BIlal Ahmed

    This script will all you to migrate VMs back from the cloud. It uses a csv file https://vmusketeers.com/wp-content/uploads/2020/04/image-8.png
    VMware HCX PowerShell
    Download

    114 Downloads

    0 Comments

    Updated 1 year ago

  • Create CSI Driver vCenter Roles

    Contributor Dean Lewis

    This script is used to create a new roles on your vCenter server. The newly created role will be filled with the needed permissions for using it with Kubernetes vSphere CSI Driver. The permissions are ...
    vSphere PowerShell
    Download

    144 Downloads

    3 Comments

    Updated 3 months ago