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
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
Due to domestic network environment restrictions, the success rate of installing Claude Code via PowerShell and CMD is not high.
Timeline (last 90 days)
Administrators can use the PowerShell command `Get-ADUser -Filter {TrustedForDelegation -eq $true}` to find user accounts with unconstrained delegation enabled.
Administrators can use the PowerShell command `Get-ADComputer -Filter {TrustedForDelegation -eq $true}` to find computer 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.
In local mode, n8n can be started with a single command via PowerShell, without logging into n8n Cloud or paying for a subscription.
In 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.
When installing Claude Code, use the curl command on Mac/Linux/WSL, and PowerShell or CMD on Windows.
PowerShell 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.
32 more timeline events
All Facts (20)
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
65%UnverifiedGemini CLI安装需要使用PowerShell而非普通cmd,且需要开启代理(科学上网)模式才能成功安装
85%UnverifiedAI在调试过程中遇到了PowerShell语法兼容问题,不支持&&运算符,需要拆分命令
85%Partially VerifiedDue to domestic network environment restrictions, the success rate of installing Claude Code via PowerShell and CMD is not high.
65%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%UnverifiedWhen running `claude -p "/usage"` from Git Bash, `/usage` is parsed as a file path and sent to the model as a prompt, so clawd-usage-winwidget is restricted to invoking this command only from PowerShell.
50%UnverifiedThe course unfolds in five stages: environment preparation (getting to know the command-line terminal PowerShell), core concepts (mainstream AI programming tools and models, Token, context), tool mastery (how to use Codex), SKILL building, and project practice (from requirement definition to going live and deployment).
50%UnverifiedThe relevant PowerShell Remove-Item -Recurse bug was marked as fixed in PowerShell 6, but there are reports that Windows PowerShell 5.1 still follows junctions
50%UnverifiedCursor calls PowerShell as the terminal by default on Windows, which is why the terminal shows PowerShell in the tutorial.
50%UnverifiedPowerShell is Microsoft's command-line scripting tool for Windows and cloud services; traditionally, administrators needing to query users in bulk or export reports had to write complex PowerShell scripts and call the corresponding modules (such as Microsoft.Graph, Microsoft.PowerApps.Administration.PowerShell).
50%