Sto eseguendo Windows Server 2008 come amministratore e ho provato a impostare ExecutionPolicy come Remarksigned per PowerShell v2 in questo modo:
Set-ExecutionPolicy RemoteSigned
Ma ho questo errore:
Set-ExecutionPolicy : Access to the registry key 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft
.PowerShell' is denied.
At line:1 char:20
+ Set-ExecutionPolicy <<<< RemoteSigned
+ CategoryInfo : NotSpecified: (:) [Set-ExecutionPolicy], UnauthorizedAccessException
+ FullyQualifiedErrorId : System.UnauthorizedAccessException,Microsoft.PowerShell.Commands.SetExecutionPolicyComma
nd
Come risolvere questo?