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
{{ message }}
Repository navigation
Bug with Get-InstalledScript and Uninstall-Script #64
Get-InstalledScript Install-VSCode
should be able to find the script installed. PowerShellGet 2.2.5 functionality checks AllUsers first and if it's not there, checks CurrentUser scope.
Actual behavior
Get-InstalledScript
does not have a -Scope parameter so it does not pass a -Scope parameter onto Get-InstalledPSResource. Get-InstalledPSResource just uses the default value of CurrentUser and never checks AllUsers.
Note: This is also happening with Get-InstalledModule, Uninstall-Script, and Uninstall-Module.
One proposal is to have PSResourceGet's ScopeType be a flagged enum so that multiple values can be passed (this would be a breaking change in PSResourceGet).
Activity
SydneyhSmith commentedon Feb 13, 2024
The plan is to adapt PSResourceGet so that it checks first currentuser scope and then alluser scope by default