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
Find-PSResource snmp | Save-PSResource -Path c:\temp -AsNupkg -TrustRepository -PassThruSave-PSResource: Package 'Microsoft.PowerShell.PowerShellGet.UtilClasses.PSResourceInfo' with requested version range '(, )' could not be found in any trusted repositories
Error details
Exception : Type : System.ArgumentException Message : Package 'Microsoft.PowerShell.PowerShellGet.UtilClasses.PSResourceInfo' with requested version range '(,)' could not be found in any trusted repositories HResult : -2147024809CategoryInfo : ObjectNotFound: (:) [Save-PSResource], ArgumentExceptionFullyQualifiedErrorId : ResourceNotFoundError,Microsoft.PowerShell.PowerShellGet.Cmdlets.SavePSResourceInvocationInfo : MyCommand : Save-PSResource ScriptLineNumber : 1 OffsetInLine : 24 HistoryId : 13 Line : Find-PSResource snmp | Save-PSResource -Path c:\temp -AsNupkg -TrustRepository -PassThru PositionMessage : At line:1 char:24 + … urce snmp | Save-PSResource -Path c:\temp -AsNupkg -TrustRepository - … + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ InvocationName : Save-PSResource CommandOrigin : InternalScriptStackTrace : at <ScriptBlock>, <No file>: line 1PipelineIterationInfo :
Environment data
3.0.19
Name Value
---------
PSVersion 7.3.2
PSEdition Core
GitCommitId 7.3.2
OS Microsoft Windows 10.0.19044
Platform Win32NT
PSCompatibleVersions {1.0,2.0,3.0,4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Visuals
No response
The text was updated successfully, but these errors were encountered:
Prerequisites
Steps to reproduce
Using
-AsNupkg
causes pipeline input to fail. Notice the error message name for the resource is the type name not resource.Expected behavior
# works
Actual behavior
Error details
Environment data
Visuals
No response
The text was updated successfully, but these errors were encountered: