Watch HBA errors in ESXi hosts with PowerCLI

Watch HBA errors in ESXi hosts with PowerCLI

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.

Read Me Leave comment

VMs are shown with absolute path to vmx file in vCenter

VMs are shown with absolute path to vmx file in vCenter

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 […]

Read Me Leave comment

Show running Veeam jobs at point or period of time

Show running Veeam jobs at point or period of time

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.

Read Me Leave comment

Improve iSCSI latency in Windows

Improve iSCSI latency in Windows

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. […]

Read Me Leave comment

PowerShell error when accessing PowerShell gallery

PowerShell error when accessing PowerShell gallery

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 […]

Read Me Leave comment

Error when running Import-Module

Error when running Import-Module

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\11.3.0.13964823\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 – […]

Read Me Leave comment

PowerShell error when updating PowerCLI to latest version

PowerShell error when updating PowerCLI to latest version

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 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + […]

Read Me Leave comment

[VMUG Austria] PowerCLI 101

[VMUG Austria] PowerCLI 101

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 6.5.1.5 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 […]

Read Me Leave comment

[VMUG Session] PowerCLI 101 – PowerShell Basics

[VMUG Session] PowerCLI 101 – PowerShell Basics

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 […]

Read Me 1 Comment

Script to show last successful Veeam backup of VMs

Script to show last successful Veeam backup of VMs

Here is a small and simple PowerShell script to list VMs, their last successful backup and the days gone since then.

Read Me 7 Comments
Social Share Buttons and Icons powered by Ultimatelysocial