Hi all,
I'm attempting to get around this error:
Access to the registry key 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell' is denied.
+ CategoryInfo : PermissionDenied: (:) [Set-ExecutionPolicy], UnauthorizedAccessException
When I run the following, everything looks good:
S C:\Windows\system32> Get-ExecutionPolicy -List
Scope ExecutionPolicy
----- ---------------
MachinePolicy Undefined
UserPolicy Undefined
Process RemoteSigned
CurrentUser RemoteSigned
LocalMachine RemoteSigned
Any idea why I can't run things despite having the right permissions in place? I'm running powershell and/or CMD as administrator too. I've also checked the registry key, local administrators have full access over it
Any help would be greatly appreciated