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

  • Application Management Services

  • Automation Tools

  • Cloud Management Platform

  • Cloud Native Applications

  • Data Center & Cloud Infrastructure

  • Desktop & Application Virtualization

  • Developer Tools

  • Enterprise Mobility Management

  • Hybrid Cloud & Data Center Infrastructure

  • Networking & Security

  • Storage & Availability

  • Other Platform

Contributor

Language

1 - 10 of 192 Results Sample vSphere
  • Create DRS VMHOST Rules

    Contributor vThinkBeyondVM

    ... //:: # Author: Vikas Shitole //:: # Website: www.vThinkBeyondVM.com //:: # Product/Feature: vCenter Server/DRS //:: # Reference: http://vthinkbeyondvm.com/drs-rules-part-i-how-to-create-vm-host-dr ...
    vSphere Management SDK Java
    Download

    610 Downloads

    0 Comments

    Updated 2 years ago

  • Tutorial on how to access and navigate all the vSphere objects

    Contributor vThinkBeyondVM

    ... //:: # Author: Vikas Shitole//:: # Author: Vikas Shitole //:: # Website: www.vThinkBeyondVM.com //:: # Product/Feature: vCenter Server/VMware ESXi //:: # Reference: http://vthinkbeyondvm.com/tutor ...
    vSphere Management SDK Java
    Download

    1285 Downloads

    0 Comments

    Updated 2 years ago

  • vSphere 6.0 API to Mark HDD as SSD and SSD as HDD

    Contributor vThinkBeyondVM

    ... //:: # Author: Vikas Shitole //:: # Website: www.vThinkBeyondVM.com //:: # Product/Feature: vCenter Server/Storage //:: # Reference: http://vthinkbeyondvm.com/vsphere-6-0-cool-apis-to-mark-local-h ...
    vSphere Management SDK Java
    Download

    115 Downloads

    0 Comments

    Updated 2 years ago

  • Get Datastore Summary

    Contributor vThinkBeyondVM

    ... //:: # Author: Vikas Shitole //:: # Website: www.vThinkBeyondVM.com //:: # Product/Feature: vCenter Server/Storage //:: # Reference: http://vthinkbeyondvm.com/vsphere-6-0-cool-apis-to-mark-local-h ...
    vSphere Management SDK Java
    Download

    220 Downloads

    0 Comments

    Updated 2 years ago

  • Change Passwords

    Contributor CAJason

    Changes ESXi Host root passwords for all specified ESXi Servers
    VMware PowerCLI PowerShell
    Download

    200 Downloads

    1 Comment

    Updated 2 years ago

  • Get IPMI Data

    Contributor linotelera

    Simple script to get IPMI Information like ip address, MAC address,...   Source: http://poshcode.org/?show=928
    VMware PowerCLI PowerShell
    Download

    243 Downloads

    0 Comments

    Updated 2 years ago

  • Rename Local Datastores

    Contributor CAJason

    Renames local datastores on ESXi hosts to use the hostname plus a specified suffix.
    VMware PowerCLI PowerShell
    Download

    152 Downloads

    1 Comment

    Updated 2 years ago

  • Importing VM annotation and notes from CSV file into vCenter

    Contributor kunaludapi

    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

    458 Downloads

    0 Comments

    Updated 2 years ago

  • Configure SMP-FT for a Virtual Machine

    Contributor lamw

    .SYNOPSIS Configure SMP-FT for a Virtual Machine .DESCRIPTION The function will allow you to enable/disable SMP-FT for a Virtual Machine .NOTES Author: William Lam .NOTES Site: www.virtuallyghetto.com ...
    VMware PowerCLI PowerShell
    Download

    103 Downloads

    0 Comments

    Updated 2 years ago

  • VC Support Helper

    Contributor mhiremath

    VC_support_helper VC support helper to help debug with VMware vCenter support logs VC_support_helper is a python script that helps to debug with VMware vCenter support logs. Basically, vCenter support ...
    vSphere Management SDK Python
    Download

    142 Downloads

    0 Comments

    Updated 2 years ago