Skip to content
Discussion options

You must be logged in to vote

Solutions

Solution 1: Set Execution Policy (Recommended)

This is the recommended approach that balances security and functionality.

Step 1: Open PowerShell as Administrator

  • Press Win + X and select "Windows PowerShell (Admin)" or "Terminal (Admin)"

Step 2: Set the execution policy

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

When prompted, type Y and press Enter.

Step 3: Unblock the script file

Unblock-File "C:\Program Files (x86)\Phat\phat.ps1"

Step 4: Test the installation

phat --version

Solution 2: Unblock File Only

If your execution policy is already set but the script is still blocked:

Unblock-File "C:\Program Files (x86)\Phat\phat.ps1"

Solution 3: Bypass fo…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pphatdev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants