If you try to run a PowerShell script you can get something like Script.ps1 cannot be loaded because the execution of scripts is disabled on this system. Yet after running:
Set-ExecutionPolicy Unrestricted
you still get the same message! Then I bet you are running x64 system. That's because there is two versions of PowerShell on the x64 systems, both x64 and x86. And both must be set to desired execution policy to achive desired effect.
No comments:
Post a Comment