In this post I share a small PowerShell/PowerCLI script to check if VMs get backed up by Veeam B&R. If you do not run VeeamONE, it can be challenging to check if every VM that should be backed up, is really backed up. For checking this, this script should be helpful.
I am in the middle of a troubleshooting scenario. It is about connection problems from ESXi hosts to their storage devices. Normally everything works fine but at from time to time, there are tons of errors on HBAs in hosts. Therefor I want to watch HBA errors in ESXi hosts with PowerCLI.
These days I had to troubleshoot a problem in a vCenter environment. A few VMs shown with absolute path to vmx file in vCenter inventory. Normally this occurs when a ESXi boots with no connection to its previous mounted storage volumes. VMs located on these volumes are shown like this in inventory. But this wasn’t the case here: VMs were running and no host was […]
When a VM is rebooted in OS, it keeps powered on at ESXi host during the whole boot process. Sometime it would be very useful when a OS reboot triggers a cold boot. In this post I show how to cold boot VM by guest reboot. Cold boot is like to power cycle a computer. A VM needs to get through a power off state […]
Most often installing PowerCLI is no problem. Sometimes there is a PowerShell error when accessing PowerShell gallery. Like now: Just wanted to install PowerCLI onto a new Windows 10. When running the command find-module vmware* I get this error(s): Fortunately I found a solution quickly here. Problem is related to security protocols used in PowerShell. Check current protocols by running: My Windows 10 showed this […]
First, what does active/standby mean. For this blog post, it means the array hast at least 2 controllers, one presents ALL LUNs to the hosts, the second controller presents NO active LUNs path to the hosts. Just in case of a manual or automatic failover, the second controller takes-over ALL LUN-presentations – and active paths. Examples of such arrays are: [very old one] HP MSA 1000 HPE Nimble […]
I am quite sure, everyone who already installed PowerShell modules knows this error running Import-Module: Import-Module : File C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Sdk\18.104.22.16864823\VMware.VimAutomation.Sdk.psm1 cannot be loaded because its operation is blocked by software restriction policies, such as those created by using Group Policy. At line:1 char:1 + import-module vmware.powercli + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : SecurityError: (:) [Import-Module], PSSecurityException + FullyQualifiedErrorId : UnauthorizedAccess,Microsoft.PowerShell.Commands.ImportModuleCommand Normally this is caused by – […]
In this post I will describe how to use PowerCLI to add a trigger and a mail recipient to selected vSphere alarms. This is an excellent example of how PowerCLI can easily be used to do a task in a few moments while needing maybe hours when doing in GUI. A use-case for assigning a trigger and recipient to many alerts can be the implementation […]
These days I wanted to update a PowerCLI installation to current version. Normally this no big deal. But this time I got a PowerShell error when updating PowerCLI. I was using this command: and got the following error: PackageManagement\Install-Package : Unable to find repository ‘https://www.powershellgallery.com/api/v2/’. Use Get-PSRepository to see all available repositories. At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.0.1\PSModule.psm1:13000 char:20 + … $sid = PackageManagement\Install-Package @PSBoundParameters + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + […]
This post about setting EVC mode on cluster-level. It is not about per-VM EVC mode that was introduced in vSphere 6.7. When you try to select a suitable EVC mode on cluster, it could happen that no mode can be set. The wizard shows a compatibility-error on every mode that because of running VMs the mode cannot be enabled or changed. [In Text:CompatibilityThe host cannot […]