guest_exec
Runs PowerShell commands inside a Hyper-V guest via PowerShell Direct using server-provided credentials, returning combined output, exit code, and truncation status.
Instructions
Run PowerShell in the guest through PowerShell Direct. Credentials come only from the server environment. Returns combined output, exit code, and truncation status. A host-side timeout may leave the guest command running.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | ||
| vm_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||