Rohit416
Rohit416

Reputation: 3486

Why PowerShell threw registry access error when setting execution policy rights?

I tried to set execution policy rights in PowerShell to enable the execution of scripts using this Cmdlet,

PS C:\> Set-ExecutionPolicy Unrestricted

but the PowerShell console gave the Registry access denied error. The syntax seems to be okay. Did i overlook something. Please advise.

Upvotes: 0

Views: 643

Answers (1)

jon Z
jon Z

Reputation: 16616

You should run PowerShell with elevated permissions. Simply right click Windows PowerShell and click Run as Administrator to open PowerShell in elevated privilege.

Upvotes: 3

Related Questions