Skip to content
  • PowerCLI
  • Powershell
  • Gator Thoughts (Blog)
  • About Scriptigator

Scriptigator

I didn't choose the script life, the script life chose me

Gator Thoughts (Blog)

Powershell

PowerCLI

Get the ISO Path of mounted CDs on VMs | Get-CDDrive Cmdlet

Posted on February 14, 2020February 14, 2020 by Sahan Fernando

Has it happened to you that you see VMs that do not have any associated disks in certain datastores show up in those datastores, also not allowing vMotions as well leaving you confused? Well it could be that there are ISOs in that datastore mounted to those VMs! This is tedious when you are doing […]

Why you as a Sys Admin might be hesitant to script!

Posted on February 9, 2020February 14, 2020 by Sahan Fernando

Scripting is addictive, it is the tool of the lazy and the weapon of the efficient. While some like me are hooked onto scripting, most do not share this passion. In my few years in the industry, I have noticed that while most Systems Engineer’s do leverage scripts, they do not truly take to it. […]

Changing the vCenter Alarm reporting frequency | PowerCLI

Posted on February 5, 2020February 14, 2020 by Sahan Fernando

Recently we noticed that in vCenters while we receive SNMP or Email (SMTP) red alerts, we did not receive the green alerts that changed immediately. For example if an ESX host had a memory utilization of 95%, it would trigger a red state alarm and would send out an email or SNMP trap notifying the […]

System.Data.DataRow issue when querying MySQL with PowerShell Solved!

Posted on February 5, 2020February 5, 2020 by Sahan Fernando

Has this happened to you – you’re doing a SELECT query from powershell doing your thang, but when you’re trying to output the fruits of your query labour all it says is System.Data.DataRow? You’re sure you did the query right, while the issue seems to be common the internet is not helping you out either […]

get-list-of-vms-in-esx-host

Get the list of Virtual Machines on a ESXi Host with Get-VMHost | PowerCLI

Posted on July 27, 2019July 27, 2019 by Sahan Fernando

Recently I needed to create a script to get a list of all virtual machines in a specific ESXi host. Surprisingly I had to search high and low on the internet to figure this out. This is perplexing I mean its very straightforward to get the VMs in a datastore with you would think getting […]

Checking for empty returns from MySQL queries in Powershell

Posted on July 27, 2019July 27, 2019 by Sahan Fernando

Recently during a project I had to some DB queries using powershell. While that is straightforward and easy enough (I will create a post on querying DBs with powershell later on), the problem I ran in to was checking for an empty return. I wouldn’t blame you for thinking “but scriptigator this should be simple […]

Expanding an existing disk on a Virtual Machine with PowerCLI | Get-HardDisk & Set-HardDisk cmdlets

Posted on May 25, 2019May 25, 2019 by Sahan Fernando

We recently had a sudden requirement to increase the C: drives of a set of VMs to assist with an Operating system patching process – its not practical to to manually do that one by one – so PowerCLI to the rescue. So if you get a scenario where you need to expand an existing […]

Listing all networks visible to an ESX host via PowerCLI

Posted on May 10, 2019May 10, 2019 by Sahan Fernando

I had worked on an automation project to ease up virtual machine provisioning – for that it was necessary to create a script that would list out all the networks that is visible to an ESXi host (so that the correct one could be added to the new virtual machine). Turns this was quite easy […]

Checking for and Setting Maintenance mode on an ESXi Host via PowerCLI

Posted on May 9, 2019May 9, 2019 by Sahan Fernando

Say you have to do a configuration change on an ESXi host – you know you can script that stuff out and put your feet up while it does it’s thang… Buuut you’re unsure about whether the host is in maintenance mode… what if its not on maintenance mode? What if it screws it up! […]

Reading Text files with Powershell | Get-Content cmdlet

Posted on April 29, 2019April 29, 2019 by Sahan Fernando

More often than not when scripting you will have to deal with reading files with Powershell when scripting. Whether its logs or files comparison orrrr feeding a list to the script to store and use as a variable, you will need to read a file from your script. Thankfully Powershell has the Get-Content cmdlet which […]

Posts navigation

Older posts
Newer posts

Follow & like Scriptigator!

Facebook
Facebook
fb-share-icon
Twitter
Visit Us
Follow Me
Tweet

Featured Posts

Scripting amidst a crisis

Scripting amidst a crisis

March 27, 2020
Why you as a Sys Admin might be hesitant to script!

Why you as a Sys Admin might be hesitant to script!

February 9, 2020

Recent Posts

  • How to Restart, Reset, Shutdown, Poweroff VMs with PowerCLI November 22, 2020
  • How to get the Operating System (OS) of Virtual machines with PowerCLI May 27, 2020
  • How to check EVC Status of a Host Cluster with PowerCLI May 9, 2020
  • How to enable ESXi host alarms on the vCenter with PowerCLI (& how to automate it) May 3, 2020
  • How to check ESX host version and build number with PowerCLI May 2, 2020

Pages

  • PowerCLI
  • Powershell
  • Gator Thoughts (Blog)
  • About Scriptigator

Archives

  • November 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • July 2019
  • May 2019
  • April 2019

Like what you see? Please follow Scriptigator on Social media

Facebook
Facebook
fb-share-icon
Twitter
Visit Us
Follow Me
Tweet

top
© 2023 Scriptigator
Theme: Techieblog by WP Crumbs