Author: Junner
Date: 2/26/2025
When try to run PS script (.ps1), terminal came out an error:
Go open a PowerShell with administrator permission.
win
+R
> type powershell
> hold ctrl
+shift
then enter
Open the permission for running PS script:
And you can run your script.
After excuting, remember to turn this permission off.
Another way to open permission for certain file is:
And this is just for temporary when using this prompt. After turning off the prompt, permission no longer exists.