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 […]
Recently I had to troubleshoot a Veeam Backup & Replication (B&R) problem. There the question popped up which are the running Veeam jobs at point or period of time. The GUI is not a big help to answer this question. Therefore I wrote a small script that show these jobs.
Recently we had to troubleshoot rather high storage latency at a customer site. The environment consists of Hyper-V hosts connecting to 3PAR arrays via iSCSI. 3PAR arrays are all-flash arrays (AFA). I know such problems in vSphere environments too. There higher storage latency can be caused by delayed acknowledgement (DelAck). Read more about this issue and how to configure DelAck on vSphere ESXi hosts here. […]
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 […]
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 – […]
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 is the second part of the guide line of my VMUG session of PowerCLI 101. In first part I focused on PowerShell basics. PowerCLI Installation Since version 22.214.171.124 of PowerCLI it is just available on Microsoft PowerShell Gallery. Until than it was a separate download on VMware pages. The advantage of PowerShell Gallery is that modules can be installed by using PowerShell command: To […]
Introduction This is the first blog post of my guiding thread of my session for VMUG Austria meeting on 25th of April 2019. For second post about PowerCLI click here. I talked about: PowerShell Basics (this post) PowerCLI 101 (second post) PowerCLI first function Great PowerCLI open source project: vCheck Some notes about the topics: One of my goals was that every participant – no […]
Here is a small and simple PowerShell script to list VMs, their last successful backup and the days gone since then.