The Lowercase w

Post info:

Creating shortcuts for PowerCLI that automatically log you in.

So, I started a new job a couple of months ago and we have multiple vCenter environments.  My friend & temporary co-worker, Brian Spagna (@bspagna) and I both wanted to have shortcuts to launch PowerCLI windows and have a different background color for each to easily identify which environment we were in.  We thought it would be cool to have it automatically connect to it’s respective vCenter also! I recommend you upgrade to the latest version of PowerCLI (6.5.1) for

Share This:

Read the full post

Post info:

Script to delete folder older than 30 days… by Name

I had a need, on one of my file servers, to delete some data that was older than 30 days, to clear space.  This would need to be a re-occurring task, so what better way to accomplish it than to script it! Here’s the rub…  The folders are each in a YYYYMMDD format (ex: 20170115), yet the content in the folders could be dated other than the folder name itself.  For instance, there could be a folder (say 20170626) that

Share This:

Read the full post

Post info:

What do you do when a path to a NFS Datastore goes down?

My QA environment uses Isilon as it’s backend storage platform.  The Isilon share is one large storage volume that is setup with different paths (IPs) to the storage.  This environment has 6 datastores (6 paths).  The other day, we had one of those paths go down, taking down approx 75 VMs with it. I debated attempting to remove the down datastore and then add it back with the same name (with a different IP) but didn’t know what that would

Share This:

Read the full post

Post info:

Adding a PowerShell Windows Update Script to my VMware Customizations

In my environments, we typically convert the templates to Virtual Machines once a quarter so we can install Windows Updates.  This means, there could be a number of patches to install if you’re 2+ months out from the last time they were updated.  So I decided to use a PowerShell script that my coworker wrote to do Windows Updates and run it during the Run Once phase of the vCenter Customizations. Typically, I have my customizations set to automatically login

Share This:

Read the full post

Post info:

Patching VMware ESXi Hosts via PowerCLI!

*** Updated 5/17/2017 – See below *** This year, I’m trying something new…  Anything that I have to do more than 2-3 times, I’m going to attempt to automate it! In keeping with this mantra, I recently had a task come across my plate to patch the 20+ ESXi Hosts in one of my production environments.  Along with installing the latest Host Updates, I also wanted to upgrade Dell’s Open Manage Server Administrator to the latest version. In the past,

Share This:

Read the full post

Post info:

Display list of Multiple vCenter Servers to connect to in your PowerCLI Scripts

If you’re company anything like mine, you probably have multiple vCenter servers in your environment.  They may be linked, they may not.  In my environment, we have 4 vCenter servers we consider Production, even though one is for QA, and we have a lab environment. Normally, I just connect to vCenter manually in PowerCLI before I run a command/script to make a change, run a report, etc.  But then I got to thinking, wouldn’t it be easier if I just

Share This:

Read the full post

Post info:

PowerCLI Script to list VMs not specifically set to Thick Eager Zeroed

First, I’ll start with a little back story. We recently deployed an EMC XTremIO All-Flash storage appliance.   The recommendation we got from EMC, for the best deduplication ratios, was to use the Thick-Eager Zeroed disk format.  No matter how many times I tell my coworkers to make sure to use this format when deploying VMs to the xTremIO LUNs, once in a while, someone does forgets and deploys a THIN provisioined VM. Also, we found that when performing P2Vs using

Share This:

Read the full post

Post info:

PowerCLI Script to change the DRS Slider

So, I have a cluster of hosts that makes up our QA Environment.  As with most QA environments, it’s tight on resources and very over-subscribed.  On a regular basis, I have to move our DRS Slider to be more aggressive, RUN DRS to refresh recommendations, and then move the slider back.  This allows DRS to rebalance the cluster.  Today, I decided to script it. I made use of a script that @lucd22 posted (http://vmw.re/1EQCDkn) to change the DRS Migration Threshold

Share This:

Read the full post

Post info:

PowerCLI Script to migrate VMs from one vCenter to another

Hey everyone, this is another guest post from Ben Liebowitz, Matt’s brother. Before I get into the script, I’ll give you some background…  We are working on migrating VMs off of our vSphere 4.1 environment to our new vSphere 5.5 environment.  The 4.1 environment is using the Nexus 1000v Virtual Switch while the 5.5 environment is using a vDS switch. We found the easiest way to migrate the VMs was to remove them from inventory on the 4.1 side and

Share This:

Read the full post

Post info:

Deploying a VM with PowerCLI in a Semi-Complex Environment

The following is a guest blog post by my brother Ben Liebowitz.  I guess virtualization runs in the family!  Follow him on Twitter at @ben_liebowitz. ———————————————————————— Last year, while working at a previous employer, I wanted to make it easier for less-experienced team members to deploy VMs, while making sure little to no mistakes are made.  I decided to go down the path of a PowerCLI script. Before I get into the script that I wrote, I feel I should

Share This:

Read the full post

Posts navigation