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 63 Results Sample PowerCLI
  • 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

    10811 Downloads

    14 Favorites

    5 Comments

    Updated 3 years ago

  • vSAN Storage Policy Example Creation

    Contributor Jared Lutgen

    ... spbm-policy V1.0 Purpose: This script was built to help demonstrate the power of Storage policy based management. The script creates the following policies: vSAN No Protect - FTT-0 vSAN Basic Pro ...
    VMware PowerCLI PowerShell
    Download

    236 Downloads

    0 Comments

    Updated 3 years ago

  • vSAN 6.6 Encryption Rekey

    Contributor Jason McCarty

    This script will initiate a Rekey of a vSAN Cluster. Shallow Rekeying (KEK Only) or Deep Rekeying (DEK Also) are supported, as well as Reduced Redundancy if necessary. This requires PowerCLI 6.5.1 a ...
    VMware PowerCLI PowerShell
    Download

    389 Downloads

    0 Comments

    Updated 3 years ago

  • vCollect All VMs details with Hosts Info for All vCenter

    Contributor Saddam ZEMMALI

    ...   Overview: vCollect provides a PowerCLI scripts that produce infrastructure audit and reports of VMware SDDC (vSphere, NSX, vCloud DIrector, vRealize Automation) environments in CSV or Excel f ...
    vSphere PowerCLI PowerShell
    Download

    928 Downloads

    1 Favorite

    0 Comments

    Updated 2 years ago

  • PowerCLI - Move Datastore Cluster Function

    Contributor Kyle Ruddy

    More information can be found at the following: https://blogs.vmware.com/PowerCLI/2019/02/move-datastore-cluster-new-folder.html
    VMware PowerCLI PowerShell
    Download

    335 Downloads

    0 Comments

    Updated 2 years ago

  • SDRS VM Overrides

    Contributor VIKAS SHITOLE

    .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

    654 Downloads

    1 Comment

    Updated 2 years ago

  • NSX LBaaS vRO Workflow Package

    Contributor Selvakumar Jaganathan

    This vRO Workflow Package ->  NSX LBaaS contains workflows to cover below items. Create and Delete NSX Edge LB. Update NSX Edge LB Server Pools Add a Virtual Server to an existing NSX edge LB Remove ...
    NSX for vSphere vRealize Orchestrator Plug-in SDK vRealize Orchestrator vRO Package
    Download

    672 Downloads

    1 Favorite

    0 Comments

    Updated 2 years ago

  • vCollect Hardware Information By ESXi for each vCenter

    Contributor Saddam ZEMMALI

    Overview: Many of the customer projects I work on involve collecting an inventory of basic information about the #VMware #ESXi in the environment, such as CPU/memory specs, OS versions, Power State, a ...
    vSphere PowerShell
    Download

    682 Downloads

    1 Favorite

    1 Comment

    Updated 11 months ago

  • Obtaining Specific PowerCLI Versions from the PowerShell Gallery

    Contributor Kyle Ruddy

    We always recommend how everyone should be on the latest and greatest version of PowerCLI. However, we also recognize that isn't always possible. Whether it be for testing and validation, working arou ...
    VMware PowerCLI PowerShell
    Download

    429 Downloads

    0 Comments

    Updated 1 year ago

  • PowerCLI - Set Network Adapter to be an Opaque Network

    Contributor Kyle Ruddy

    Sample code provided as part of KB: 65149 - https://kb.vmware.com/s/article/65149
    vSphere NSX-T PowerShell
    Download

    504 Downloads

    0 Comments

    Updated 2 years ago