Automating/Scripting VMware VM operations in PowerShell

Connect to your VCenter/VMHost: PowerCLI C:> Connect-VIServer VMHOST01 Specify Credential Please specify server credential User: root Password for user root: ************ Name                           Port  User —-                           —-  —- VMHOST01                       443   root PowerCLI C:>   Know your VMHost hypervisor version running: PowerCLI C:> vmhost | select-object version Version ——- 4.1.0 PowerCLI C:> PowerCLI C:> Get-VMHost | % { (Get-View $_.ID).Config.Product } Name                  : VMware ESXi FullName              : VMware ESXi 4.1.0 build-260247 Vendor                : VMware, Inc. Version               : 4.1.0 Build                 : 260247 LocaleVersion         : INTL LocaleBuild           : 000 OsType                : vmnix-x86 ProductLineId         : embeddedEsx ApiType               : HostAgent ApiVersion            : 4.1 InstanceUuid          : LicenseProductName    […]

Read more

Configuring Your PowerShell to run VMware vSphere PowerCLI cmdlets

If you are new to even PowerShell, you need get your base PowerShell configured to run the cmdlets.  You may want to take a look at Setting up environment for PowerShell scripting   Configure Your PowerShell successfully run the cmdlets in VMware vSphere PowerCLI: Launch VMware vSphere PowerCLI as Administrator on the system you are running:           Welcome to the VMware vSphere PowerCLI! Log in to a vCenter Server or ESX host:              Connect-VIServer To find out what commands are available, type:       Get-VICommand To show searchable help for all PowerCLI commands:   Get-PowerCLIHelp Once you’ve connected, display all virtual machines: Get-VM If […]

Read more

How to Register and Download a VMware product for Evaluation

Putting these steps together for a VMware beginner to kick off his VMware evaluation process   Goto My VMware, new user Registration page given below https://my.vmware.com/web/vmware/registration  OR Navigate to My VMware page directly from https://my.vmware.com/    In the My VMware dashboard > click on “My Evaluations” Then click on “Start a New Evaluation” button which will take you to the all VMware products  list page as given below: https://www.vmware.com/try-vmware    Choose the product you’d like to evaluate: For example, I choose “VMware vCloud Director Product evaluation Center” Click on “Register” button to submit a Evaluation request and get appropriate license […]

Read more