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 - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -