Download a generated Windows policy
download_policyDownloads the current Windows policy as WDAC XML ZIP or AppLocker XML and saves it locally without overwriting existing files, returning the saved path, SHA256, version, and byte count.
Instructions
Download the current Windows policy as a WDAC XML ZIP (format=wdac, default) or compatible AppLocker XML (format=applocker). Requires policies:read and Enterprise agentless deployment access. Saves on the machine running this local MCP server, in ~/Downloads by default or an explicitly requested absolute output_directory. Creates a new file without overwriting existing files. Returns the saved path, SHA256, version and byte count. AppLocker is a blocklist projection: review omitted rules before deployment. Preserves audit/enforcing mode; downloading does not install, assign, compile or enforce a policy. Never execute the downloaded file.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"policy_id": "<policy_id>"
},
"name": "download_policy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | WDAC ZIP or AppLocker XML | wdac |
| policy_id | Yes | Windows policy ID from list_policies | |
| output_directory | No | Optional absolute local directory or ~/ path; defaults to ~/Downloads |