Secure PowerShell Scripts Running with Windows Task Scheduler

Do you currently or have you ever wanted to schedule the execution of PowerShell scripts with Windows Task Scheduler? If so, there are some considerations you should be aware of surrounding the security of those scripts. For example, it wouldn’t be difficult for a user to alter a script to decrypt and export encrypted credentials….

Continue Reading

Automate Free SSL Certificate Replacement for vCenter 7

In the past, I’ve posted some guides for replacing the default self-signed vCenter certificate with a free, trusted Let’s Encrypt 90 Day certificate. I recently started to look into generating the free SSL using an ACME client and stumbled across this PowerShell module Posh-ACME (Credit to Ryan Bolger – https://github.com/rmbolger for this module). I decided to…

Continue Reading

Resolve, No Connection to VR Server: Unknown with PowerShell Function

I stumbled across this error the other day in my environment No Connection to VR Server: Unknown. I then found the following workaround in this VMware KB https://kb.vmware.com/s/article/2148376, which worked nicely. The issue was becoming a little frequent, so I decided to wrap up this solution with a nice little PowerShell function found on my Github page. Thanks for…

Continue Reading

PowerCLI Script to Download VM Screenshots from Datastore

Occasionally, you may need to download virtual machine files from the Datastore. For example, If vSphere HA resets virtual machines, there is a good chance just before it reset it, vSphere HA VM monitoring took a screenshot of the VM console, storing it with the VM configuration files on the Datastore. Reset by vSphere HA. Reason: VMware…

Continue Reading