PSResourceGet
PSResourceGet copied to clipboard
Update-PSResource with specific resource writes warning and not error
Prerequisites
- [X] Write a descriptive title.
- [X] Make sure you are able to repro it on the latest released version
- [X] Search the existing issues.
Steps to reproduce
Currently Update-PSResource Microsoft.PowerShell.SecretStore with a specific resource name and the resource is not installed it will write a warning. This should be an error since the user specifically told the cmdlet to update an individual resource and it was unable to do so.
Expected behavior
Update-PSResource Microsoft.PowerShell.SecretStore
ERROR: No installed packages were found with name 'Microsoft.PowerShell.SecretStore' in scope 'CurrentUser'. First install package using 'Install-PSResource'.
Actual behavior
Update-PSResource Microsoft.PowerShell.SecretStore
WARNING: No installed packages were found with name 'Microsoft.PowerShell.SecretStore' in scope 'CurrentUser'. First install package using 'Install-PSResource'.
Error details
N/A
Environment data
Name Version
---- -------
PowerShellGet 3.0.14
Name Value
---- -----
PSVersion 7.2.5
PSEdition Core
GitCommitId 7.2.5
OS Microsoft Windows 10.0.19043
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