winrm_execute_powershell
Execute PowerShell commands on remote Windows hosts via WinRM and retrieve stdout, stderr, and exit code. Run scripts with custom working directories, environment variables, and timeouts for automated administration.
Instructions
Execute a PowerShell command over WinRM and return stdout, stderr, and exit code.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | ||
| env | No | ||
| command | Yes | ||
| timeout | No | ||
| connection | No | ||
| saved_host | No | ||
| output_limit | No | ||
| inventory_scope | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||