I keep receiving this error when trying to enable the execution of powershell scripts -


set-executionpolicy : access registry key     'hkey_local_machine\software\microsoft\ powershell\1\shellids\microsoft.powershell' denied. @ line:1 char:20 + set-executionpolicy <<<<  unrestricted + categoryinfo          : notspecified: (:) [set-executionpolicy], unauthorizedacce  ssexception + fullyqualifiederrorid :    system.unauthorizedaccessexception,microsoft.powershell.c  ommands.setexecutionpolicycommand 

is there way bypass this? or @ least run powershell code? please help!

you can following,

powershell.exe -executionpolicy bypass -file .runme.ps1 

and run in cmd prompt

or copy , paste whole script in ps console


Comments

Popular posts from this blog

android - How to save instance state of selected radiobutton on menu -

python 3 IndexError: list index out of range -

IF statement in MySQL trigger -