The Lowercase w

Post info:

Using vSphere Tags to Check for Pending Reboot State

You may have seen my blog post on the Test-PendingReboot PowerShell module.  I’ve been using it a lot lately and had the thought to use vSphere Tags to check pending reboot state.  In my environment, we normally check for pending reboot states before patching.  If a server is in a pending reboot state, it won’t receive the patches from SCCM, etc.  We have 3 different groups we deploy patches to.  Staging, Production, and Global (servers outside the US). First, I

Share This:

Read the full post

Post info:

The Pending Reboot Nightmare… PowerShell to the Rescue!

My company has been having issues dealing with servers in a pending reboot state for quite a while.  Part of it stems from using SCCM to deploy patches and having the patch deployment set to suppress the reboot and our Operations Team reboots the servers manually.  Well, some months require multiple reboots and we get stuck in the rabbit hole trying to get caught up by the next month’s round of patching! I found a PowerShell Module that I’ve found

Share This:

Read the full post

Post info:

PowerShell Script To Get vMotion Events

Recently, I had the need to get a list of vMotion events to pass to management.  I attempted to use the Get-VIEvent cmdlet for this, but found it wasn’t easy to only pull logs from one specific cluster.  I attempted to use the -Entity option and direct it to the cluster I wanted, but that didn’t work well.  So I decided to do some searching. First thing I came across was the Get-vMotion Module/script in the PowerShell Gallery.  This looked

Share This:

Read the full post

Post info:

Create an ISO file with PowerShell!

I received a request at work to transfer 5+gb from the internal network, to a server in the DMZ.  Our DMZ networks are locked down, so I cannot copy the files directly.  I have the trial version of UltraISO that I’ve used for tasks like this in the past, but it’s limited to 300mb in the trial version.  Previously, we’ve used a “swing VMDK” that we’d mount on an internal VM, copy the data to it, take this VMDK and

Share This:

Read the full post

Post info:

Handy PowerShell command to stop Task Manager Process!

Have you ever needed to stop multiple processes at once?  I use a product by Devolutions called Remote Desktop Manager.  If you’re a regular reader of this blog, you probably already know that.  When I launch the VMware vCenter Web Client via RDM, I do so via Chrome and it opens the Client Integrated Plugin.  The problem is, when I CLOSE the web client in RDM, it DOESN’T close the “vmware-csd” process.  Once 10 of these processes are opened, it

Share This:

Read the full post

Post info:

Using PowerCLI to Create a Local Scratch Partition

My company recently purchased some Dell Servers with ESXi installed to local SD cards. The issue we had was that the 8gb SD cards that came with the server and there wasn’t enough space on the cards for a scratch partition.  We ordered the servers with a single 300gb HD in order to get the RAID controller, so we decided to use that drive to store a scratch partition. The first step in the process, was to convert the drive

Share This:

Read the full post

Post info:

vDocumentation: Check Out These Scripts To Automate Your Documentation!

Now that VMworld 2017 US has come to a close, many of the sessions are already up on youtube to watch. One of the ones I watched yesterday was SER2077BU – Achieve Maximum vSphere Stability with PowerCLI Assisted Documentation.  My friend, Ariel Sanchez Mora (@arielsanchezmor), and his friend, Edgar Sanchez (@EdmSanchez13), put together these scripts to automatically document your environment.  I HIGHLY recommend you check these scripts out!  Also, please send them a tweet or DM as they’re looking for

Share This:

Read the full post

Post info:

Script to disable protocols older than TLS 1.2 and turn off RDP

My InfoSec team came to us asking we disable anything older than TLS 1.2 and turn off RDP on our servers in the DMZ.  We don’t allow RDP in the DMZ anyway, and they found that leaving RDP on when not using it poses a security risk. To do this, it involved multiple registry changes.  With several servers to do this on, I wrote a PowerShell script!  Only problem is, I don’t know which protocols are going to exist already

Share This:

Read the full post

Post info:

PowerCLI Script to Check Host Over-commitment Percentage & Ratios

At my previous employer, we had a Dev/QA vSphere environment that was very over provisioned.  The environment had lots of CPUReady issues with VMs having to wait for CPU time, which caused things to be slow, etc.  We knew this but the application teams didn’t understand.  I ended up writing a PowerCLI script to check the CPU overcommitment and sent the results to my manager who was able to go to the application team’s management and get them to clean

Share This:

Read the full post

Post info:

Script to backup your vCenter DRS Rules

I was thinking yesterday, I have a script that I run on a monthly basis to backup my vDS configs…  Shouldn’t I also have something that does the same for my DRS rules?  So, I wrote a script that I can schedule to run on a weekly/monthly basis to backup my DRS rules. I have multiple vCenter servers, so I used an array to connect to each one and then exported the rules for each cluster within those vCenters. The

Share This:

Read the full post

Posts navigation