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
Post a Comment