PowerShell
A cross-platform task automation and configuration management framework introduced by Microsoft, deeply integrated with the .NET runtime. It enables direct invocation of Windows APIs, manipulation of the registry, and management of services and scheduled tasks.
Core Facts
Due to domestic network environment restrictions, the success rate of installing Claude Code via PowerShell and CMD is not high.
TUN mode works by creating a virtual network interface at the operating system level to take over all traffic and route it to proxy nodes
Timeline (last 90 days)
Claude Code can be installed on Windows via PowerShell, CMD, or NPM, and NPM installation is more stable due to the network environment.
Hermes installation is done via a PowerShell command.
EAgent converts the AI's intent into PowerShell commands to execute on the computer, and the execution results are sent back to the AI, forming a closed loop.
The common reason npm -v errors out on first run on Windows is that PowerShell's script execution policy restricts unsigned scripts by default; entering the prompted command and confirming releases the restriction, so this is a configuration issue rather than a corrupted installation.
Administrators can use the PowerShell command `Get-ADComputer -Filter {TrustedForDelegation -eq $true}` to find computer accounts with unconstrained delegation enabled.
Administrators can use the PowerShell command `Get-ADUser -Filter {TrustedForDelegation -eq $true}` to find user accounts with unconstrained delegation enabled.
In practice, models are better at providing directly executable scripts (such as PowerShell calling Windows APIs, macOS AppleScript, or shell commands based on wmctrl/xdotool) rather than having users manually drag each item.
Cline CLI v3.0.74 makes run_commands return an error when passed an empty command list, and in the PowerShell environment explains quote-escaping rules to the model and requires confirmation before performing recursive deletions.
The PowerShell permission check on Windows auto-approved some `Set-Location` or `cd` commands pointing at the current directory with extra arguments prior to v2.1.309.
After installing Claude Code via the CLI on Windows, you need to add the installation directory to the user environment variable Path and restart PowerShell before it can be invoked.
36 more timeline events
All Facts (20)
Due to domestic network environment restrictions, the success rate of installing Claude Code via PowerShell and CMD is not high.
70%VerifiedTUN mode works by creating a virtual network interface at the operating system level to take over all traffic and route it to proxy nodes
65%UnverifiedGemini CLI安装需要使用PowerShell而非普通cmd,且需要开启代理(科学上网)模式才能成功安装
85%UnverifiedAI在调试过程中遇到了PowerShell语法兼容问题,不支持&&运算符,需要拆分命令
85%UnverifiedIn the Windows operating system, cmd and PowerShell are two common command-line tools.
60%UnverifiedClaude Code can be installed on Windows via PowerShell, CMD, or NPM, and NPM installation is more stable due to the network environment.
50%UnverifiedHermes installation is done via a PowerShell command.
50%UnverifiedEAgent converts the AI's intent into PowerShell commands to execute on the computer, and the execution results are sent back to the AI, forming a closed loop.
50%UnverifiedThe common reason npm -v errors out on first run on Windows is that PowerShell's script execution policy restricts unsigned scripts by default; entering the prompted command and confirming releases the restriction, so this is a configuration issue rather than a corrupted installation.
50%UnverifiedAdministrators can use the PowerShell command `Get-ADUser -Filter {TrustedForDelegation -eq $true}` to find user accounts with unconstrained delegation enabled.
50%UnverifiedAdministrators can use the PowerShell command `Get-ADComputer -Filter {TrustedForDelegation -eq $true}` to find computer accounts with unconstrained delegation enabled.
50%UnverifiedIn practice, models are better at providing directly executable scripts (such as PowerShell calling Windows APIs, macOS AppleScript, or shell commands based on wmctrl/xdotool) rather than having users manually drag each item.
50%UnverifiedCline CLI v3.0.74 makes run_commands return an error when passed an empty command list, and in the PowerShell environment explains quote-escaping rules to the model and requires confirmation before performing recursive deletions.
50%UnverifiedThe PowerShell permission check on Windows auto-approved some `Set-Location` or `cd` commands pointing at the current directory with extra arguments prior to v2.1.309.
50%UnverifiedAfter installing Claude Code via the CLI on Windows, you need to add the installation directory to the user environment variable Path and restart PowerShell before it can be invoked.
50%UnverifiedIn local mode, n8n can be started with a single command via PowerShell, without logging into n8n Cloud or paying for a subscription.
50%UnverifiedIn Windows PowerShell, Ollama can be installed via `irm https://ollama.com/install.ps1 | iex`, but this command cannot be executed in CMD, so the installer must be downloaded manually.
50%UnverifiedWhen installing Claude Code, use the curl command on Mac/Linux/WSL, and PowerShell or CMD on Windows.
50%UnverifiedAll data in clawd-usage-winwidget comes from the registry `~/.claude/sessions` maintained by Claude Code itself, and the runtime requirements are Windows 10/11, PowerShell 5.1, and a logged-in Claude Code, with no additional dependencies to install.
50%UnverifiedPowerShell 5.1 is the old version bundled with Windows 10/11, belonging to the .NET Framework era; it does not support the `??` null-coalescing operator, is easily disturbed by BOM when handling UTF-8 files, and cannot recognize some modern syntax.
50%