When we run our first PowerShell scripts, the command line prompt may have added permissions that do not allow running the PowerShell solution installation scripts, returning an exception such as:
File C:\Common\Scripts\hello.ps1 cannot be loaded because the execution of scripts is disabled on this system. Please see "get-help about_signing" for more details.
To overcome this issue, you can follow these steps:
- Run PS command-line with admin previleges
- Run "Get-ExecutionPolicy" to find the current policy
- Run "Set-ExecutionPolicy Unrestricted" to enable the system to run scripts
- Now run the two setup scripts
- Optionally run "Set-ExecutionPolicy [oldpolicy]", where [oldpolicy] should be the one found in "Get-ExecutionPolicy", in order to get things back to where they were
If you are getting some “Access Denied” message, try open cmd.exe (windows command line) by clicking with the mouse right button and then choose "Run as Administrator". Then try to execute the script again using the command line.
I dont understand why you dont just put this into the PDF???
we will add it to the pdf soon. we are still gathering a few more faqs to add to it.
its important to set it back because leaving your environment in unrestricted mode is a security risk.