VS CODE - powershell

tried to get PowerShell to work in VScode but when I run any PowerShell commands it doesn’t work

Hi Adam, welcome to the forum. That doesn’t sound fun at all, but I’m afraid your post has far fewer details than required for us to have a chance at helping you. Also note, this is a powershell forum, not a vscode forum. Please clarify what powershell commands, how you’re running them, and what “doesn’t work” actually looks like. Then, perhaps we could offer some advice.

3 Likes

Here is the PowerShell in VScode documentation.

To help troubleshoot, check the current PowerShell execution policies by running the following cmdlet:

get-executionpolicy -List

Include the output from that command, and if any errors appear when attempting to run PowerShell cmdlets in VSCode, be sure to share those details as well.

Are you trying to run script in the editor frame? First, make sure you see the PowerShell extension in the “Installed” section of the VS Code Extensions (every language requires a specific extension). Second, check the VS Code status bar and see if the language “PowerShell” is present.
Beyond that general advice would require more details.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.