Troubleshooting

Install and startup problems with known causes and fixes.

Windows: stand says running scripts is disabled on this system

Symptom. Running stand in PowerShell fails with:

stand : 无法加载文件 C:\Users\<you>\AppData\Local\stand\stand.ps1,因为在此系统上禁止运行脚本。
    + CategoryInfo          : SecurityError: (:) [], PSSecurityException
    + FullyQualifiedErrorId : UnauthorizedAccess

Cause. Windows' default execution policy (Restricted) refuses to run local PowerShell scripts. The installed files are fine — only the policy blocks them.

Fix, in order of preference.

  1. Use the entry point that does not depend on the execution policy — add the install directory's stand.cmd to your PATH, if the installer generated it.
  2. Allow local scripts for your own user only (no administrator rights needed), then open a new terminal and run stand again:
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned -Force

Still blocked? The file may carry the "downloaded from the internet" mark:

Unblock-File "$env:LOCALAPPDATA\stand\stand.ps1"

Note. Current installers handle this step during installation; existing installs from an older installer need the manual step above.