Skip to main content

Fixing Failed CLI Installations on Windows

When installing Claude Code or OpenAI Codex through the Universal AI Platform on Windows, you may encounter PowerShell execution policy errors that prevent the installation from completing.

The Issue

During the installation process, you might see an error message like this:
C:\Users\[Username]\AppData\Local\Temp\InstallClaudeCode.ps1 : File 
C:\Users\[Username]\AppData\Local\Temp\InstallClaudeCode.ps1 cannot be loaded 
because running scripts is disabled on this system. 
For more information, see about_Execution_Policies at 
https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
+ C:\Users\[Username]\AppData\Local\Temp\InstallClaudeCode.ps1
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : SecurityError: (:) [], PSSecurityException
    + FullyQualifiedErrorId : UnauthorizedAccess

The Solution

To resolve this issue, you need to modify PowerShell’s execution policy for your user account.
1

Open PowerShell

Open PowerShell from your Windows system.
2

Set Execution Policy

Run the following command:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
3

Confirm the Change

When prompted, type Y to agree with the changes, and press Enter to confirm the policy change.
4

Retry Installation

After setting the execution policy, retry the Claude Code or Codex installation and try using Zencoder’s Universal AI Platform. The installation should now complete successfully.
I