Otto background

Automox Script: Execute Multiple Policies on a Windows Machine Using API

Automox Script Overview: Execute Multiple Policies on a Windows Machine Using API

The purpose of this worklet is to apply multiple policies from your organization to a Windows system.

For example, if you apply the same five policies to a newly built system, you can use this script to apply those policies with one click to your new system. This script installs any policy available in your organization regardless of whether it is attached to the group that the system is in or not.

Important: Make sure you’re not attempting to apply a macOS/Linux worklet or required software to a Windows device.

You will set the following information specific to your environment in the script:

  • $apiKey = 'YOUR_API_KEY'
  • $orgID = 'YOUR_ORG_ID' & $serverID = 'YOUR_SERVER_ID'
  • $policies

For more information about using the script, see the original posting on the Automox community.

Tips for Creating an Automox Worklet

Before deploying an Automox Worklet to the production environment, we suggest testing this on a few devices to confirm its accuracy. If you have any questions, please contact our support team for technical assistance at

For step-by-step instructions on creating the Worklet, see our user documentation: Create a Worklet.

About Automox Automated Patch Management

Facing growing threats and a rapidly expanding attack surface, understaffed and alert-fatigued organizations need more efficient ways to eliminate their exposure to vulnerabilities. Automox is a modern cyber hygiene platform that closes aperture of attack by more than 80% with just half the effort of traditional solutions.

Cloud-native and globally available, Automox enforces OS & third-party patch management, security configurations, and custom scripting across Windows, Mac, and Linux from a single intuitive console. IT and SecOps can quickly gain control and share visibility of on-prem, remote and virtual endpoints without the need to deploy costly infrastructure.

Experience modern, cloud-native patch management today with a 15-day free trial of Automox and start recapturing more than half the time you're currently spending on managing your attack surface. Automox dramatically reduces corporate risk while raising operational efficiency to deliver best-in-class security outcomes, faster and with fewer resources.