- biGENIUS-X Knowledge Base
- FAQs
- Generate Artifacts
Execution policy blocked the replacement placeholders mechanism
When attempting to use the replace_placeholders.ps1 script with the command
.\replace_placeholders.ps1
you may encounter the following error.
.\replace_placeholders.ps1:
File C:\Users\XXXX\Downloads\artifacts\replace_placeholders.ps1 cannot be loaded.
The file C:\Users\XXXX\Downloads\artifacts\replace_placeholders.ps1 is not digitally signed.
You cannot run this script on the current system.
For more information about running scripts and setting execution policy,
see about_Execution_Policies at https://go.microsoft.com/fwlink/?LinkID=135170.
Why? The reason is that the default PowerShell Execution Policy restricts the execution of unsigned scripts.
To execute the script, you need to temporarily change the Execution Policy to Unrestricted:
Before running the script, execute the following command:
Set-ExecutionPolicy -ExecutionPolicy ByPass -Scope Process
If you prefer to change the Execution Policy permanently:
- Run Powershell as administrator
- Execute the following command:
Set-ExecutionPolicy ByPass