Kapsul Agent Installation via GPO
Deploy the Kapsul agent on your Windows servers via Group Policy
The Kapsul agent can be centrally deployed across all your Windows servers using Microsoft Active Directory Group Policy Objects (GPO).
Prerequisites
- Administrative rights on the domain controller
- Windows servers joined to the domain
- Kapsul MSI package downloaded
- Kabeen API key
Step 1: Prepare Network Share
- Create a shared folder accessible by all servers
- Copy the Kapsul MSI file to this share
- Verify permissions: computer accounts must have read access
\\server\share\kapsul\kapsul-agent.msiStep 2: Create Deployment GPO
-
Open the Group Policy Management console
-
Create a new GPO linked to the OU containing your servers
-
Edit the GPO and navigate to:
- Computer Configuration > Policies > Software Settings > Software Installation
-
Right-click > New > Package
-
Select the MSI file from the UNC network path
-
Choose Assigned as the deployment method
Step 3: Configure API Key
The Kapsul agent requires an API key for authentication. Configure it via Group Policy Preferences:
-
In the same GPO, navigate to:
- Computer Configuration > Preferences > Windows Settings > Registry
-
Create a new registry entry:
- Action: Create
- Hive: HKEY_LOCAL_MACHINE
- Path: SOFTWARE\Kabeen\Kapsul
- Value name: ApiKey
- Type: REG_SZ
- Data: Your Kabeen API key
Step 4: Apply and Verify
- Force policy update on a test server:
gpupdate /force- Restart the server to trigger installation
- Verify the Kapsul service is running:
sc query kapsulSecurity Group Filtering
For gradual deployment:
- Create a security group (e.g., "Servers-Kapsul")
- In the GPO, Delegation tab > Advanced
- Remove "Authenticated Users" from application
- Add your group with "Read" and "Apply" rights
Troubleshooting
Installation doesn't start
- Verify UNC path is accessible from the server
- Check Windows event logs (Application + System)
- Verify permissions on share and MSI file
Service doesn't start
- Verify API key is correctly configured in registry
- Check Kapsul logs in
C:\ProgramData\Kabeen\Kapsul\logs - Verify network connectivity to api.kabeen.io:443