I had an issue with changing the execution policy so I downloaded the PowerShell 7 zip and replaced all from it with the default install of PowerShell 5.1
now I can not install or update any module and the previous issue is not resolved until I import the older version of the execution module from system32\WindowsPowerShell\v1.0\Modules
I am pretty sure that most other commands are broken too and I haven't stumbled on them yet
Can you help me fix this issue by giving me the default modules in Win 11, PowerShell 5.1 comes with
Or is there a way to download them again
I tried using the Nuget gallery but I got this error
The term 'Install-PackageProvider' is not recognized as the name of a cmdlet, function,
script file
I do have a Package provider module tho and its commands are not recognized due to the above reason
All help is appreciated
Regards Vaibhav Behl
***Moved from Windows / Windows 11 / Files, folders, and storage***