{"id":17287660,"url":"https://github.com/starfallprojects/n8n-nodes-powershell","last_synced_at":"2025-04-14T11:07:26.153Z","repository":{"id":52342046,"uuid":"520903171","full_name":"StarfallProjects/n8n-nodes-powershell","owner":"StarfallProjects","description":"This is a custom node for n8n. It allows you to execute PowerShell commands within an n8n workflow.","archived":false,"fork":false,"pushed_at":"2023-05-16T13:37:45.000Z","size":144,"stargazers_count":10,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-14T11:07:20.947Z","etag":null,"topics":["n8n","powershell"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@starfallprojects/n8n-nodes-powershell","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/StarfallProjects.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-08-03T13:59:04.000Z","updated_at":"2025-02-24T18:27:25.000Z","dependencies_parsed_at":"2022-09-03T13:40:49.332Z","dependency_job_id":null,"html_url":"https://github.com/StarfallProjects/n8n-nodes-powershell","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StarfallProjects%2Fn8n-nodes-powershell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StarfallProjects%2Fn8n-nodes-powershell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StarfallProjects%2Fn8n-nodes-powershell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StarfallProjects%2Fn8n-nodes-powershell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StarfallProjects","download_url":"https://codeload.github.com/StarfallProjects/n8n-nodes-powershell/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248868768,"owners_count":21174758,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["n8n","powershell"],"created_at":"2024-10-15T10:05:56.993Z","updated_at":"2025-04-14T11:07:26.124Z","avatar_url":"https://github.com/StarfallProjects.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# n8n-nodes-powershell\n\nThis is a custom node for [n8n](https://n8n.io/). It allows you to execute PowerShell commands within an n8n workflow.\n\n## Purpose\n\nn8n provides an Execute Command node, which allows you to execute scripts on your system's default shell. On Windows, this is Command Prompt (cmd). There is currently no option to use PowerShell, other than changing your system's default shell. This node provides an alternative. It copies _heavily_ from the Execute Command node (source for that node is [here](https://github.com/n8n-io/n8n/tree/master/packages/nodes-base/nodes/ExecuteCommand) if you're curious just how blatantly I've copied).\n\n## Installation\n\n1. Make sure you have PowerShell installed on the same machine as n8n. The node gives you the option to use either your default PowerShell installation, or your default PowerShell Core installation. You can't choose between multiple PowerShell (or PowerShell Core) versions.\n2. Follow the n8n documentation to [install community nodes](https://docs.n8n.io/integrations/community-nodes/installation/).\n\n## Limitations\n\n### Not available on Cloud or Desktop\n\nLike the Execute Command node, the PowerShell node won't work on n8n Cloud.\n\nCommunity nodes are currently unavailable on n8n Desktop.\n\n### Requires PowerShell\n\nYou must have PowerShell installed on the same machine as n8n.\n\n### Limited PowerShell selection\n\nYou can choose either PowerShell or PowerShell Core to run your script. The node uses the default installation. This means if you have PowerShell 3.x, 4.x, and 5.x installed, it will automatically use the default. You can't use the node to select an alternative installation. This shouldn't be a problem with PowerShell, as the latest version has good backwards compatibility, but you may need to be aware of differences between the main PowerShell Core versions.\n\n## Technical background\n\nThis node uses `execPromise`, an n8n function that promisifies Node.js' `child_process.exec()`. Refer to the [Node.js 16.x documentation](https://nodejs.org/docs/latest-v16.x/api/child_process.html#child_processexeccommand-options-callback) for more background.\n\n\u003e **Note:** because we're using `exec` rather than `spawn`, there is no option to detach the child process. This means the n8n workflow waits for the PowerShell script to complete before proceeding.\n\n\u003e **Note:** `exec` is designed to handle commands with small outputs. Be cautious about using this node for memory-heavy operations.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstarfallprojects%2Fn8n-nodes-powershell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstarfallprojects%2Fn8n-nodes-powershell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstarfallprojects%2Fn8n-nodes-powershell/lists"}