Repository navigation
Install-PSResource fails v1.2.0-rc2 #1940
Copy link
Copy link
Closed
Labels
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 -PrereleaseActual behavior
Gives an ErrorError 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
1Environment 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 : WSManStackVersionVisuals

Reactions are currently unavailable
Activity
BohrenAn commentedon Feb 6, 2026
Anam Navied (@anamnavi) can you have look at this?
anamnavi commentedon Feb 6, 2026
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
BohrenAn commentedon Feb 7, 2026
Thank's Anam Navied (@anamnavi) for the quick fix 😍

Kind Regards
Andres