Windows Command Line MCP Server

by alxspiker
Verified

execute_powershell

Run PowerShell scripts and retrieve outputs for complex operations. Ensure scripts are in the allowed commands list for secure execution on the Windows Command Line MCP Server.

Instructions

Execute a PowerShell script and return its output. This allows for more complex operations and script execution. PowerShell must be in the allowed commands list.

Input Schema

NameRequiredDescriptionDefault
scriptYesPowerShell script to execute
timeoutNoTimeout in milliseconds
workingDirNoWorking directory for the script

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "script": { "description": "PowerShell script to execute", "type": "string" }, "timeout": { "default": 30000, "description": "Timeout in milliseconds", "type": "number" }, "workingDir": { "description": "Working directory for the script", "type": "string" } }, "required": [ "script" ], "type": "object" }

You must be authenticated.

Other Tools from Windows Command Line MCP Server

Related Tools

ID: 976txj1j30