So you downloaded powershell and you also downloaded a script from the internet (maybe even from my blog). You try to run it, but you get some security error. By default POSh 'disables' scripts not created locally. You can go to the powershell prompt and see what your policy is by running:
Get-ExecutionPolicy
You can set it to a level that works for you (see help). I set mine to Unrestricted, but be careful with that setting. You may want to it set it to RemoteSigned instead.
Set-ExecutionPolicy Unrestricted
On a side note, you can also change this manually in the registry.
No comments:
Post a Comment