Invoke Power Shell with command "Get-PSRepository" throws unrelated? error

Look at the attached screenshot.

Trying to run “Get-PSRepository” without any parameters trows this error:

Invoke Power Shell: The term ‘PackageManagement\Get-PackageSource’ is not recognized as a name of a cmdlet, function, script file, or executable program.

Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

Hi @pere

I know this is an older topic, but I wanted to confirm that this specific issue has been fixed in the System 23.12.0-preview, where you use the compatibility PowerShell 5.1 execution mode to get the expected result:

1 Like