If you're seeing an error message like this:
Command failed with exit code 1: powershell (Get-CimInstance -ClassName Win32_OperatingSystem).caption
'powershell' is not recognized as an internal or external command,
operable program or batch file.
This usually means that Windows can't find the PowerShell executable. This is caused by the user (or system) PATH environment variable not containing the directory where the PowerShell executable resides.
How to Fix
- Press
Windows + X
(or right-click on the Start button) and select "System". On the left side, click "Advanced system settings".
- In the System Properties window, click the "Environment Variables" button near the bottom.
- In the Environment Variables window, under "System variables" or "User variables" (depending on whether you want to make the change globally or for just your user), find the variable named "Path" and click "Edit".
- In the Edit Environment Variable window, click "New", then paste the following:
%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\
- Click "OK" on all windows to save your changes.
- Restart your computer for the changes to take effect.

Support
If you've followed these steps and are still experiencing problems, please:
- Check the Cline GitHub Issues to see if others have reported similar problems
- If not, create a new issue with details about your operating system, VSCode/Cursor version, and the steps you've tried
For additional help, join our Discord.