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

No storage snapshot in Veeam B&R after 3PAR failover

No storage snapshot in Veeam B&R after 3PAR failover

Recently I had a strange behavior when creating 3PAR snapshots in Veeam Backup&Replication after a site-failover (Peer-Persistence) occurred. Snapshot-jobs stop with error, backup-jobs using 3PAR integrated snapshots jobs are still running because they  failed over to NBD. Snapshot-jobs were configured using secondary 3PAR for snapshots too – see more information here. Management console showed the following error for snapshot-jobs: VM VM name does not meet […]

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

vMotion ends in “Cannot connect to host”

vMotion ends in “Cannot connect to host”

Recently I entered a problem when trying to migrate VMs to new hosts and storage. vMotion in new environment was already running without problems. After changing vMotion configuration in new environment to enable migration from existing host, I got an error when trying to migrate using storage vMotion. The error was: “Cannot connect to host”. The vMotion task ended a second after start. Source host […]

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

Ramdisk full errors

These days I had a problem with full ESXi ramdisk. Running vdf -h shows tmp as 100% used. Furthermore there are a lot of errors in vmkernel.log like: VisorFSRam: 233: Cannot extend visorfs file /var/lib/vmware/hostd/journal/ because its ramdisk (root) is full. There are some other problems these hosts suffer from time to time: vSphere HA issus like master of cluster cannot be found/elected. Connection problems with […]

Read Me Leave 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
Social Share Buttons and Icons powered by Ultimatelysocial