You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Name : shared-powershell-hosted-dev
Uri : https://nexus.cityntl.com/repository/shared-powershell-hosted-dev/
Trusted : True
Priority : 50
CredentialInfo : Microsoft.PowerShell.PSResourceGet.UtilClasses.PSCredentialInfo
ApiVersion : unknown
Expected behavior
Should list the available modules in the PSGallery, just like Find-Module does with the below results:Version Name Repository Description------- ---- ---------- -----------1.23.0 PSScriptAnalyzer PSGallery PSScriptAnalyzer provides
Actual behavior
Find-PSResource: Repository 'shared-powershell-hosted-dev' is not a known repository type that is supported. Please file an issue for support at https://github.com/PowerShell/PSResourceGet/issues
Error details
Exception : Type : Microsoft.PowerShell.PSResourceGet.UtilClasses.ResourceNotFoundException Message : Package 'PSScriptAnalyzer' could not be found in any registered repositories. HResult : -2146233088TargetObject : Microsoft.PowerShell.PSResourceGet.Cmdlets.FindHelperCategoryInfo : ObjectNotFound: (Microsoft.PowerShel….Cmdlets.FindHelper:FindHelper) [Find-PSResource],ResourceNotFoundExceptionFullyQualifiedErrorId : PackageNotFound,Microsoft.PowerShell.PSResourceGet.Cmdlets.FindPSResourceInvocationInfo : MyCommand : Find-PSResource ScriptLineNumber : 1 OffsetInLine : 1 HistoryId : 1 Line : Find-PSResource -Name PSScriptAnalyzer Statement : Find-PSResource -Name PSScriptAnalyzer PositionMessage : At line:1 char:1 + Find-PSResource -Name PSScriptAnalyzer + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ InvocationName : Find-PSResource CommandOrigin : InternalScriptStackTrace : at <ScriptBlock>, <No file>: line 1PipelineIterationInfo : 0 1
Environment data
ModuleType Version PreRelease Name ExportedCommands
-----------------------------------------------
Binary 1.0.6 Microsoft.PowerShell.PSResourceGet {Find-PSResource,Get-InstalledPSResource,Get-PSResourceRepository,Get-PSSc…
Key : PSVersion
Value : 7.4.6
Name : PSVersion
Key : PSEdition
Value : Core
Name : PSEdition
Key : GitCommitId
Value : 7.4.6
Name : GitCommitId
Key : OS
Value : Microsoft Windows 10.0.22631
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
No response
The text was updated successfully, but these errors were encountered:
Hi @variableresistor, please run Set-PSResourceRepository PSGallery -ApiVersion V2. I'm not sure how the ApiVersion got set to unknown but it should be v2 to interact with the PowerShell Gallery.
Yeah, totally surprised me too. And I work with NuGet repos all day. I wonder if it's some sort of default setting when installing PowerShell. I'll run that at the office tomorrow and will try it out on some other fresh Windows 11 machines.
Prerequisites
Steps to reproduce
Expected behavior
Actual behavior
Find-PSResource: Repository 'shared-powershell-hosted-dev' is not a known repository type that is supported. Please file an issue for support at https://github.com/PowerShell/PSResourceGet/issues
Error details
Environment data
Visuals
No response
The text was updated successfully, but these errors were encountered: