Category Archive: PowerCLI

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.

May 22

PowerCLI to change the Discovered virtual machine folder name

Are you bothered by the name of the default “Discovered virtual machine” folder in VMs and Templates? If there is more than one VM in the Folder shouldn’t it be “Discovered virtual machines”? But… what if there is only one VM in the folder then “Discovered virtual machines” would be wrong, crap.

Mar 08

View PowerCLI – Adjust Spares for Peak and Off Peak

One nice feature of Citrix XenDesktop is the ability to adjust the number of powered on desktops for Peak and Off Peak hours. This feature is sadly missing from VMware Horizon View. There is, however, away to accomplish the same functionality using View PowerCLI.

Jul 16

vCoffee Links #8 – Wednesday 7/16/2014

vCoffee Links is a regular feature on vHersey.com. vCoffee Links features news and links of interest from the past week or so. If you have something interesting to add please submit it in the comments or hit me up on Twitter @herseyc.

Jan 16

Virtual Machine Snapshots – BE CAREFUL!!!

Snapshots are a great tool but it is important that you monitor the snapshots to ensure they do not grow too large. This post covers some different options that are available for monitoring snapshot usage.

Dec 21

Enable Software iSCSI and Add SendTargets with PowerCLI

Another script in my series of scripts to assist with the configuration of a vSphere environment. This PowerCLI script enables the Software iSCSI Adapter and sets the iSCSI SendTargets on each host.

Older posts «

» Newer posts