I have a PowerShell script which is written by me. I try to run the PowerShell script as below;
PS C:\Documents and Settings\Administrator>c:\test\Test.ps1
So this is giving me an error saying:
File c:\test\Test.ps1 cannot be loaded because the execution of scripts is disabled on this system. Please see "get-help about_signing" for more details.
I found that setting Set-ExecutionPolicy Unrestricted
will fix the error.
But my questions are;
- What is this signing is about?
- Can we fix this error without setting
Set-ExecutionPolicy Unrestricted
(doing a signing kind of a thing)? If so, how to do that? - Is there a security issue arise if I set
Set-ExecutionPolicy Unrestricted
in my web server?