Tag Archive: PowerCLI

Mar 13

Collect Virtual Disk IOPS with PowerCLI

I was messing around with PowerCLI and the real-time statistics to collect the IOPS used by virtual machines/virtual machine disks in my my home lab. Virtual disk performance counters are available in the real-time performance stats but at the default statistics level, Level 1, with the IOPS statistics are not rolled up into the daily, weekly, monthly, or yearly statistics. I put together a PowerCLI script, collect-iops.ps1, to collect the real-time samples.

Mar 17

The 2nd Must Have PowerCLI Reference

Of course the first must have PowerCLI reference was the first edition of the VMware vSphere PowerCLI Reference book which has had a spot on my desk for the last couple years and I refer to it often. I recently picked up the 2nd Edition of the book and it has now taken the 1st …

Continue reading »

Mar 01

Quick PowerCLI to Get SnapShots and Size

Just a quick VMware PowerCLI one liner to display the number of snapshots for each VM and the total size in MB of the snapshots for each VM.

Jan 18

VM Guest Volume Blocksize Report

This is just a quick script I put together for a fellow SA to generate a HTML Report contianing details on the configured volumes for all running Windows Guest VMs. The HTML report shows the Name, Label, Filesystem Type, Allocation Unit (Blocksize), Capacity, and Free Space.

Dec 15

Lab Deployment PowerCLI Script for TCC VMware ICM Class

Finished up another successful vSphere 6 Install Configure Manage class at Tidewater Community College last week. Time to re-provision the lab environments to get things ready for the next class.. This is a PowerCLI Script I put together to help automate the lab deployment for TCC VMware IT Academy classes.

Nov 18

PowerCLI: Copy a vmdk from one VM to another

This PowerCLI script copies a Virtual Machine Disk (vmdk) from one virtual machine to another.

Sep 01

VMworld vBrownBag Tech Talk: Managing ESXi SSH Service with PowerCLI

The talk was on using PowerCLI to manage SSH. Specifically about using PowerCLI to report on the status of the SSH Service on ESXi host (is it running, what is the policy set for), updating the policy (Start and Stop with Host, Manual, Automatic), stopping and starting the SSH on ESXi hosts, and configuring the firewall for the SSH service to limit access to the service.

Aug 10

Change IP Address on Windows 2012 VMs with PowerCLI

Just a quick script I put together to change the IP Address of Windows 2012 (including R2) virtual machines using PowerCLI.

Jun 17

PowerCLI: Create vCenter Role and Assign User Permissions

With out going too deep, part of a SimpliVity deployment is preparing the VMware environment. Preparing the VMware environment includes creating a Role including the necessary Privileges and setting up the required permissions in vCenter for a SimpliVity user. This is easy enough, but I created a PowerCLI script which creates a Role, applies the required Privileges to the Role, and applies the Role to a user as a permission in vCenter.

Jun 03

vCenter Settings and Alarm Configurations with PowerCLI

A quick PowerCLI script I put together to set a few of the General vCenter Configuration Settings such as the SMTP Server and port, the from email for messages generated by vCenter alarms, and setting the database retention policies for tasks and events. The script also configures the email actions on a set of pre-defined alarms.

Older posts «