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 - 5 of 5 Results Sample powercli
  • vCollect Storage PATH per ESXi for each 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 file forma ...
    vSphere PowerShell
    Download

    368 Downloads

    1 Favorite

    0 Comments

    Updated 3 years 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

    648 Downloads

    0 Comments

    Updated 3 years ago

  • skyline-help.ps1

    Contributor Son Nguyen

    Do you find it difficult to keep consistent Skyline configurations to external sources (vCenter, NSX, vROps, etc.)?  You can connect to each source individually, but that does not work well when you h ...
    VMware PowerCLI PowerShell
    Download

    213 Downloads

    1 Comment

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

    1191 Downloads

    1 Comment

    Updated 6 years ago

  • Hot Add Memory and CPU

    Contributor Jyothsna Terli

    The script hot adds CPU and Memory to a VM . It facilitates adding the CPU and Memory in a incremental steps specificed by the user. It takes input from the user and is interactive. Flow of the script ...
    VMware PowerCLI PowerShell
    Download

    573 Downloads

    0 Comments

    Updated 4 years ago