PowerShell

Install-Module : A parameter cannot be found that matches parameter name AllowPrerelease.

Recently I started to utilize Prerelease option for my PowerShell Modules. This allows me to early test them before I release them to public and not having to manually install them. Unfortunately Install-module  didn't wanted to play with me this time…

Install-Module : A parameter cannot be found that matches parameter name AllowPrerelease.

Quick verification on what can be wrong (PowerShell version 4.0 maybe?) but no… it seems PowerShellGet was on much older version.

$PSVersionTable
Get-module PowershellGet
Find-module PowershellGet

Normally if you find an outdated module you simply run Update-Module but in this case… you would get an error such as this one: Update-Module : Module ‘PowershellGet' was not installed by using Install-Module, so it cannot be updated. So now that we know it won't work…

💡 How can I fix it?

All you have to do is simply install new version of PowerShellGet module from PowerShellGallery

Install-Module PowershellGet -Force

This post was last modified on June 7, 2025 11:44

Przemyslaw Klys

System Architect with over 14 years of experience in the IT field. Skilled, among others, in Active Directory, Microsoft Exchange and Office 365. Profoundly interested in PowerShell. Software geek.

Share
Published by
Przemyslaw Klys

Recent Posts

Supercharging Your Network Diagnostics with Globalping for NET

Ever wondered how to run network diagnostics like Ping, Traceroute, or DNS queries from probes…

2 days ago

Automating Network Diagnostics with Globalping PowerShell Module

Are you tired of manually running network diagnostics like Ping, Traceroute, or DNS queries? The…

3 days ago

Enhanced Dashboards with PSWriteHTML – Introducing InfoCards and Density Options

Discover new features in the PSWriteHTML PowerShell module – including New-HTMLInfoCard, improved layout controls with…

1 week ago

Mastering Active Directory Hygiene: Automating SIDHistory Cleanup with CleanupMonster

Security Identifier (SID) History is a useful mechanism in Active Directory (AD) migrations. It allows…

1 week ago

Upgrade Azure Active Directory Connect fails with unexpected error

Today, I made the decision to upgrade my test environment and update the version of…

1 week ago

Mastering Active Directory Hygiene: Automating Stale Computer Cleanup with CleanupMonster

Have you ever looked at your Active Directory and wondered, "Why do I still have…

1 week ago