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 2 Comments

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 9 Comments

Create PSP rule for HPE 3PAR

Create PSP rule for HPE 3PAR

There are a few best practices when implementing a 3PAR into a vSphere environment. One of these is the creation of a custom PSP-rule. With this set, all 3PAR volumes are automatically configured according to best practices when they get mounted. In this post I will show ways to create this rule.  [Update] Because HPE Primera uses same vendor and model description as 3PAR, the […]

Read Me 2 Comments

add (VMware-)snapins at start

# Check if profile-file exists (difference between powershell and powershellISE) Path $profile # create, if it not exists Item -path $profile -type file -force | Out-Null # ADD to prifile file: #Load Windows PowerShell cmdlets for managing vSphere Add-PsSnapin VMware.VimAutomation.Core -ea “SilentlyContinue” Add-PsSnapin VMware.VimAutomation.VDS -ea “SilentlyContinue” # if necessary, add more snapins according to PowerCLI User Guide

Read Me Leave comment

eject CDs

# eject all media from every drive from every VM get-vm |get-cddrive |set-cddrive -nomedia

Read Me Leave comment
Social Share Buttons and Icons powered by Ultimatelysocial