Deploying SecOps Agent Using Group Policy (GPO)
Satyam
Last Update 5 maanden geleden
For enterprise environments, we recommend script-based deployment instead of MSI-based GPO installation. Startup scripts provide better reliability, flexibility, and silent execution.
Why Use Script-Based GPO Deployment?
Using startup scripts for agent deployment offers the following benefits:
- Runs with SYSTEM privileges
- No user interaction required
- Executes at system startup
- Suitable for bulk deployments
- Easier troubleshooting and rollback
Prerequisites
- Before proceeding, ensure the following:
- Active Directory Domain Controller is available
- Target machines are domain-joined
- You have Domain Admin privileges
- SecOps Agent installer and PowerShell script are available
- Bulk Agent Exported from SecOps Solution Platform and License Key ready
High-Level Deployment Flow
- Create an AD security group
- Create and link a GPO
- Attach a startup script
- Scope the GPO to target machines
- Force policy update and reboot
- Agent installs automatically
Step-by-Step Deployment Guide
Export Bulk Agent from SecOps Solution
Export Agent in Bulk Mode from SecOps Solution tenant, based on your operating system.You can refer this article for agent export.
Step 1: Create an Active Directory Security Group
- Open Active Directory Users and Computers
- Create a new Security Group
- Name the group: SecOpsAgentDeployment
- Add all target computer accounts to this group
(This ensures only selected machines receive the SecOps Agent.)
Step 2: Create a New Group Policy Object (GPO)
- Open Group Policy Management
- (Server Manager → Tools → Group Policy Management)
- Right-click your domain
- Select Create a GPO in this domain, and Link it here
- Name the GPO, for example: SecOps Agent Deployment
- Click OK
Step 3: Copy Script and Agent to SYSVOL (Important)
- Download the powershell script from here.
- Copy the following files:
- SecOps Agent installer
- PowerShell deployment script
- Before using the PowerShell script below, you must replace the license key with the one exported from your SecOps tenant.
- If SecOps is deployed on-premise, you must update the BaseUrl as well in the PowerShell deployment script before copying it to SYSVOL. Set the BaseUrl to your central SecOps server IP or domain as configured during the on-premise setup.
To the SYSVOL scripts location: \\TestAd.local\SYSVOL\TestAd.local\scripts(Startup scripts must reside in SYSVOL so all domain machines can access them)
Step 4: Configure the Startup Script in GPO
- Right-click the newly created GPO → Edit
- Navigate to:
Computer Configuration
└─ Policies
└─ Windows Settings
└─ Scripts (Startup/Shutdown)
└─ Startup
- Click Startup
- Click Add
- Select the PowerShell script from the SYSVOL scripts folder
- Save and close the editor
Step 5: Scope and Enforce the GPO
- Select the GPO
- Under Security Filtering:
- Remove Authenticated Users or Administrators
- Add SecOpsAgentDeployment
- Remove Authenticated Users or Administrators
- Enable Enforced on the GPO
This ensures:
- Only intended machines receive the policy
- The policy cannot be overridden
Step 6: Update Policy on Client Machines
On each target client machine, run: gpupdate /force
Then restart the system.
What Happens After Reboot?
- Startup script executes automatically
- SecOps Agent installs silently
- Agent registers with the SecOps platform
- Device appears in the SecOps dashboard
No user action is required.
Best Practices
- Always use startup scripts, not login scripts
- Target computer groups, not users
- Test with a pilot group before full rollout
- Maintain version control for scripts and installers
- Enable logging in scripts for troubleshoot
Looking for Other Deployment Options?
Depending on your environment, you may prefer a cloud-native or alternative deployment approach.
- Microsoft Intune (MSI / LOB App) Deployment
Recommended for Azure AD–joined or hybrid devices managed via Intune.
Deploy SecOps Agent using Microsoft Intune - Standalone Installer Deployment
Suitable for manual installations or third-party RMM tools.
Standalone Agent Installation
