VMware just released PowerCLI 10.0.0. and before you ask; I thought they were just on version 6? I wondered the same and here is the answer: The decision to move to version ten was a marketing choice as the PowerCLI project recently celebrated its 10th birthday. Let’s get into the how to install or update to the […]
Tag: PowerCLI
Here are some quick steps to installing PowerCLI onto your computer to get you started. I performed the steps listed below on a Windows 10 Computer. Overview VMware PowerCLI is a command-line and scripting tool built on Windows PowerShell, and provides more than 600 cmdlets for managing and automating vSphere, vCloud, vRealize Operations Manager, […]
The following simple script will iterate though your vCenter environment and remove the floppy disk from VMware guest machines that are in a powered off state. Script text: I used Windows PowerShell ISE Set-ExecutionPolicy RemoteSigned #may require running as administrator Import-Module VMware.VimAutomation.Core Connect-VIServer -Server ‘your.server.here’ $off = Get-VM | where {$_.powerstate -eq “PoweredOff”} $floppy = […]
I’ve been using vCenter 6 for a while now and noticed an odd issue pertaining to snapshots. It seems that all guest show a “revert to current snapshot” state even if a snapshot does not actually exist. However viewing under the Snapshot Manger… shows no existing snapshots associated with the virtual machine guests. I’ve noticed […]
Using Windows task scheduler you can schedule power off and on events for guest systems running in VMware vCenter or a standalone ESXi host. My steps: Create a basic task – give it a name and description (optional) Choose when you want this task to stat Select the start date and time Choose “Start a […]
Looking for a method to restart a non-persistent environment in ESXi or vCenter, I was able to use PowerCLI to issue the commands needed. Originally I was looking to automate the recovery of a snapshot when it dawned on me that a non-persistent disk would facilitate the same thing. However I would need to power off the server […]