Updating Codex in PowerShell 7 always reports an error

Open 💬 1 comment Opened Jul 18, 2026 by siri666666

What version of Codex CLI is running?

codex-cli 0.144.6

What subscription do you have?

无关

Which model were you using?

_No response_

What platform is your computer?

_No response_

What terminal emulator and version are you using (if applicable)?

_No response_

Codex doctor report

What issue are you seeing?

codex update

Updating Codex via powershell -ExecutionPolicy Bypass -c '$env:CODEX_NON_INTERACTIVE=1; irm https://chatgpt.com/codex/install.ps1 | iex'...
==> Updating Codex CLI from 0.144.5 to 0.144.6
==> Detected platform: Windows (x64)
==> Resolved version: 0.144.6
==> Downloading Codex CLI
iex : 无法将“Get-FileHash”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然
后再试一次。
所在位置 行:1 字符: 75

  • ... EX_NON_INTERACTIVE=1; irm https://chatgpt.com/codex/install.ps1 | iex
  • ~~~
  • CategoryInfo : ObjectNotFound: (Get-FileHash:String) [Invoke-Expression], CommandNotFoundException
  • FullyQualifiedErrorId : CommandNotFoundException,Microsoft.PowerShell.Commands.InvokeExpressionCommand

Error: powershell -ExecutionPolicy Bypass -c '$env:CODEX_NON_INTERACTIVE=1; irm https://chatgpt.com/codex/install.ps1 | iex' failed with status exit code: 1

What steps can reproduce the bug?

codex update

What is the expected behavior?

_No response_

Additional information

_No response_

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗