Contact to Powershell Gallery not possible

On older Windows systems, it may not be possible to contact the Powershell Gallery. An error is returned when an attempt is made.

Unable to resolve package source ‘https://www.powershellgallery.com/api/v2’

Root cause in the TLS

Transport Layer Security (TLS) is an encryption protocol for secure data transmission on the internet. Since 2021, TLS versions 1.0 and 1.1 have been considered obsolete and are therefore no longer accepted by many applications. TLS 1.2 and 1.3 have therefore become the new standard. The Powershell Gallery has also required at least TLS 1.2 since 2020 and rejects older protocols. Older Powershell versions such as Powershell 5.1 do not support this configuration.

Query current security protocol

[Net.ServicePointManager]::SecurityProtocol

Powershell usually returns the value ‘SystemDefault’ as the result. This means that Powershell uses the system-wide settings for TLS.

PS > [Net.ServicePointManager]::SecurityProtocol
SystemDefault

If an older TLS version is defined as the default in the system, Powershell uses this as the default.

Enforce TLS 1.2

TLS 1.2 can be enforced in Powershell with the command shown below. However, this command must be executed again in every new Powershell session.

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

The command from the first screenshot can be executed again for testing purposes.

PS > Find-Module -Name VMware.PowerCLI

The version of the module is now returned without an error message.

Version Name Repository Description
------- ---- ---------- -----------
13.3.0.... VMware.PowerCLI PSGallery This Windows PowerShell module contains VMware.PowerCLI

Sustainable solution

Forcing the TLS 1.2 version can only be a short-term fix. In the long term, the Poweshell version in the OS should be brought up to date. Older systems that have reached their end-of-life (EoL) according to Microsoft should no longer be used. That’s easy to say, but in practice I often come across legacy systems that cannot be replaced for a variety of reasons.

Broadcom CEO Hock Tan addresses an open letter to the VMUG community

On Thursday, April 25, 2024, the annual VMUG UserCon took place in Frankfurt am Main. To the delight of all visitors and of course the VMUG leaders, we had top-class guests for the opening keynote. Joe Baguley (VMware CTO EMEA) and Hock Tan (Broadcom CEO) opened the event with a fireside chat.

Hock Tan and Joe Baguley at German VMUG UserCon 2024 (Image: VMUG)

Hock Tan explained fundamental changes in the VMware product portfolio and why they are so important.

Following the event, Hock Tan has now published an open letter to the VMUG community in which he emphasizes the importance of the VMware user group for Broadcom. He also addresses the focus of software development on a single core product (VCF), data sovereignty and the media noise of recent months. This document once again summarizes the key points of his keynote at UserCon 2024.

German VMUG UserCon on 2023 in Frankfurt

There are only a few days left until the German VMUG UserCon opens its doors.

Following an old tradition, the event will take place again at Kap Europa near the main train station.

An extensive agenda with sessions from VMware and community speakers as well as interesting practical examples from partners on VMware integrations are on the agenda. In between, there will be enough coffee breaks to network with other visitors.

Save the Date

Thursday, June 29th 2023

8:30 – 18:00

Location

KAP Europa
Osloer Str. 5

Frankfurt am Main

Show in Google Maps…

Registration

UserCon participation is free of charge and requires only a VMUG membership (also free of charge).

Register here: German VMUG UserCon 2023

Agenda

Details and complete agenda

See you

Hope to meet you in Frankfurt.