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 August 22, 2018 08:58

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

Active Directory Replication Summary to your Email or Microsoft Teams

Active Directory replication is a critical process that ensures the consistent and up-to-date state of…

2 weeks ago

Syncing Global Address List (GAL) to personal contacts and between Office 365 tenants with PowerShell

Hey there! Today, I wanted to introduce you to one of the small but excellent…

5 months ago

Active Directory Health Check using Microsoft Entra Connect Health Service

Active Directory (AD) is crucial in managing identities and resources within an organization. Ensuring its…

7 months ago

Seamless HTML Report Creation: Harness the Power of Markdown with PSWriteHTML PowerShell Module

In today's digital age, the ability to create compelling and informative HTML reports and documents…

8 months ago

How to Efficiently Remove Comments from Your PowerShell Script

As part of my daily development, I create lots of code that I subsequently comment…

9 months ago

Unlocking PowerShell Magic: Different Approach to Creating ‘Empty’ PSCustomObjects

Today I saw an article from Christian Ritter, "PowerShell: Creating an "empty" PSCustomObject" on X…

9 months ago