Optimize Windows VM for automation
vm_optimize_windowsOptimize a Windows guest VM for automated tasks and scripting by setting Defender scanning exclusions to prevent EPERM/EBUSY file locks and configuring PowerShell ExecutionPolicy to Bypass.
Instructions
Optimize a Windows guest VM for automated tasks, testing, and script execution.
Configures Windows Defender real-time scanning exclusions (preventing EPERM/EBUSY file locks) and sets PowerShell ExecutionPolicy to Bypass.
Args: vm: The Windows VM name or UUID. exclusion_paths: Optional directory paths to exclude from Defender scanning. exclusion_processes: Optional process binary names to exclude (defaults to node.exe, npm.cmd, pnpm.cmd, git.exe, python.exe).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vm | Yes | ||
| exclusion_paths | No | ||
| exclusion_processes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vm | Yes | ||
| uuid | Yes | ||
| message | Yes | ||
| execution_policy | Yes | ||
| process_exclusions_added | Yes | ||
| defender_exclusions_added | Yes |