Pri pokuse o nastavenie politiky spúšťania pre skripty PowerShell vo vašom systéme Windows sa môže zobraziť nasledujúca chyba:
Set-ExecutionPolicy : Prístup ku kľúču
databázy Registry 'HKEY_LOCAL_MACHINE\SOFTWARE\ Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell' je odmietnutý.
Na riadku:1 znak:1
This error is often displayed because you are not executing the command as an administrator. To solve this issue, try the following.
Ensure you are logged into the computer with local administrator rights.
Right-click or hold “Shift” and select “Windows PowerShell“ > “Run as administrator“.

Now try to run the same set-executionpolicy command to change the execution policy. It should complete successfully.