Skip to content

Install-PSResource fails v1.2.0-rc2 #1940

Description

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest released version
  • Search the existing issues.

Steps to reproduce

#Works
Uninstall-PSResource -Name ExchangeOnlineManagement -Scope CurrentUser -SkipDependencyCheck

#Does not work anymore
Install-PSResource -Name ExchangeOnlineManagement -Scope CurrentUser -Prerelease

Error:
Install-PSResource: Package(s) 'ExchangeOnlineManagement' could not be installed from repository 'PSGallery'.

Expected behavior

Installing a Module working with the Command below

Install-PSResource -Name ExchangeOnlineManagement -Scope CurrentUser -Prerelease

Actual behavior

Gives an Error

Error details

Get-Error

Exception             :
    Type    : Microsoft.PowerShell.PSResourceGet.UtilClasses.ResourceNotFoundException
    Message : Package(s) 'ExchangeOnlineManagement' could not be installed from repository 'PSGallery'.
    HResult : -2146233088
TargetObject          : Microsoft.PowerShell.PSResourceGet.Cmdlets.InstallPSResource
CategoryInfo          : InvalidData: (Microsoft.PowerShel…s.InstallPSResource:InstallPSResource) [Install-PSResource],
ResourceNotFoundException
FullyQualifiedErrorId : InstallPackageFailure,Microsoft.PowerShell.PSResourceGet.Cmdlets.InstallPSResource
InvocationInfo        :
    MyCommand        : Install-PSResource
    ScriptLineNumber : 1
    OffsetInLine     : 1
    HistoryId        : 2
    Line             : Install-psResource -Name ExchangeOnlineManagement -Scope CurrentUser -Prerelease
    Statement        : Install-psResource -Name ExchangeOnlineManagement -Scope CurrentUser -Prerelease
    PositionMessage  : At line:1 char:1
                       + Install-psResource -Name ExchangeOnlineManagement -Scope CurrentUser  …
                       + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    InvocationName   : Install-psResource
    CommandOrigin    : Internal
ScriptStackTrace      : at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo :
      0
      1

Environment data

Get-Module Microsoft.PowerShell.PSResourceGet; $PSVersionTable

ModuleType Version    PreRelease Name                                ExportedCommands
---------- -------    ---------- ----                                ----------------
Binary     1.2.0      rc2        Microsoft.PowerShell.PSResourceGet  {Compress-PSResource, Find-PSResource, Get-Instal…

Key   : PSVersion
Value : 7.5.4
Name  : PSVersion


Key   : PSEdition
Value : Core
Name  : PSEdition


Key   : GitCommitId
Value : 7.5.4
Name  : GitCommitId


Key   : OS
Value : Microsoft Windows 10.0.26200
Name  : OS


Key   : Platform
Value : Win32NT
Name  : Platform


Key   : PSCompatibleVersions
Value : {1.0, 2.0, 3.0, 4.0…}
Name  : PSCompatibleVersions


Key   : PSRemotingProtocolVersion
Value : 2.3
Name  : PSRemotingProtocolVersion


Key   : SerializationVersion
Value : 1.1.0.1
Name  : SerializationVersion


Key   : WSManStackVersion
Value : 3.0
Name  : WSManStackVersion

Visuals

Image

Activity

  1. BohrenAn commented on Feb 6, 2026

    @BohrenAn
    Author

    Anam Navied (@anamnavi) can you have look at this?

  2. anamnavi commented on Feb 6, 2026

    @anamnavi
    Member

    Andres Bohren (@BohrenAn) the fix for this issue has been released in Microsoft.PowerShell.PSResourceGet 1.2.0-rc3, please update your PSResourceGet version to pull in the fix. And I appreciate you testing the release and letting us know!
    https://www.powershellgallery.com/packages/Microsoft.PowerShell.PSResourceGet/1.2.0-rc3

  3. BohrenAn commented on Feb 7, 2026

    @BohrenAn
    Author

    Thank's Anam Navied (@anamnavi) for the quick fix 😍
    Image
    Kind Regards
    Andres

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions