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

Using PowerCLI to set mail recipient for a bulk of alarms

Using PowerCLI to set mail recipient for a bulk of alarms

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

Read Me 2 Comments

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

An uncommon EVC mode situation?

An uncommon EVC mode situation?

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

Read Me 2 Comments

[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

Alarm after SDRS recommendation is automatically applied

When you operate a vSphere storage cluster, you will know you can set the automation level of Storage DRS automation to No Automation (Manual Mode) or Fully Automated. When set to automatic, the cluster applies recommendations automatically. When set to manual, recommendations can be applied manually. By default a alarm (name: Storage DRS recommendation) on cluster level pops up when a recommendation arises. As you can […]

Read Me 1 Comment

Add iSCSI targets and set target parameter with PowerCLI

Add iSCSI targets and set target parameter with PowerCLI

The code snippet in this blog post is an example of how to add iSCSI targets to an ESXi iSCSI initiator. But there is also a loop within processing a host, that sets iSCSI target parameter. For example this can be used when a storage vendor recommends to disable delayed acknowledgment per iSCSI target, like HPE does for 3PAR and LeftHand. Here you can see […]

Read Me 1 Comment

Error when enabling EVC mode

When you try to enable EVC on a cluster-level it could happens, that you get an error saying VMs cause problems enabling EVC on a host. Error when enable EVC mode is like: The host cannot be admitted to the cluster’s current Enhanced vMotion Compatibility mode. Powered-on or suspended virtual machines on the host may be using CPU features hidden by that mode. One reason […]

Read Me Leave comment

Script to answer question: On how many hosts my VMs can run after HTAware Mitigation

Script to answer question: On how many hosts my VMs can run after HTAware Mitigation

When enabling the ESXi Side-Channel-Aware Scheduler (L1 Terminal Fault vulnerability CVE-2018-3646) for a cluster or single hosts, you should use VMware HTAware Mitigation Tool for resource analyzing and enabling. There are a few limitations after applying and enabling VMware L1TF patches on ESXi hosts (starting in august 2018). One of them is that a VM configured with n vCPUs can only run on hosts with >=n physical cores. […]

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