I have a local PowerShell Gallery that I renamed to JnPSGallery.
I unregistered the old path \\\Ryzen\G$\JnPowerShellGallery and then registered the new path \\\Ryzen\G$\JnPSGallery, but PowerShell 5 is still trying to look for the old path when I use the Update-Module command. I even tried unregistering all repositories and then typed in Update-Module to see what would happen.
I get the error 'PackageManagement\Install-Package : Unable to find repository \\\Ryzen\G$\JnPowerShellGallery. Use Get-PSRepository to see all available repositories.' Even with all repositories unregistered, it is still looking for the old PowerShell Gallery path.
Update-Module after registering new JnPSGallery path.
https://i.imgur.com/SOgk3zn.png
Update-Module after removing all registered repositories.
https://i.imgur.com/ZFTi0ut.png
How do I stop PowerShell 5 from trying to use the old path \\\Ryzen\G$\JnPowerShellGallery?