Deploy Capsule Security hooks for AI coding assistants across your Windows fleet using Microsoft System Center Configuration Manager (SCCM). This guide covers deployment for Cursor, GitHub Copilot, and Claude Code.
- Microsoft SCCM infrastructure with administrative access to the SCCM console
- A network share accessible by SCCM distribution points
- A Capsule Security account with admin access
- Target devices running Windows
Deploy the Cursor hooks configuration as an SCCM Application.
- Log in to the Capsule Security portal
- Navigate to Settings > Integrations
- Locate the Cursor integration and download the
hooks.jsonfile - Place the file on a network share:
\\sccm-server\sources\Software\CapsuleCursorHooks\hooks.json
Open the SCCM Console and navigate to Software Library > Application Management > Applications
Click Create Application and select Manually specify the application information:
- Name: Capsule Security Cursor Hooks
- Publisher: Capsule Security
Add a Deployment Type with Script Installer:
Content location:
\\sccm-server\sources\Software\CapsuleCursorHooks\Install command:
cmd.exe /c mkdir "C:\ProgramData\Cursor" & copy /Y "hooks.json" "C:\ProgramData\Cursor\hooks.json"Uninstall command:
cmd.exe /c del "C:\ProgramData\Cursor\hooks.json"
Configure the Detection Method:
Setting Value Type File Path C:\ProgramData\CursorFile name hooks.jsonProperty File or folder exists Configure User Experience settings:
Setting Value Installation behavior Install for system Logon requirement Whether or not a user is logged on Installation program visibility Hidden Maximum allowed run time 5 minutes
Right-click the application and select Distribute Content to your distribution point groups
Right-click the application and select Deploy
Choose the target Device Collection and configure:
Setting Value Action Install Purpose Required Schedule As soon as possible (or a maintenance window)
After deployment, restart Cursor on target devices, then:
- Open Cursor Settings
- Navigate to the Hooks tab
- Confirm the hooks are listed and enabled
Deploy the GitHub Copilot hooks configuration as an SCCM Application.
- Log in to the Capsule Security portal
- Navigate to Settings > Integrations
- Locate the GitHub Copilot integration and download the
hooks.jsonfile - Place the file on a network share:
\\sccm-server\sources\Software\CapsuleCopilotHooks\hooks.json
Open the SCCM Console and navigate to Software Library > Application Management > Applications
Click Create Application and select Manually specify the application information:
- Name: Capsule Security GitHub Copilot Hooks
- Publisher: Capsule Security
Add a Deployment Type with Script Installer:
Content location:
\\sccm-server\sources\Software\CapsuleCopilotHooks\Install command:
cmd.exe /c mkdir "%APPDATA%\Code\User\hooks" & copy /Y "hooks.json" "%APPDATA%\Code\User\hooks\hooks.json"Uninstall command:
cmd.exe /c del "%APPDATA%\Code\User\hooks\hooks.json"
Configure the Detection Method:
Setting Value Type File Path %APPDATA%\Code\User\hooksFile name hooks.jsonProperty File or folder exists Configure User Experience settings:
Setting Value Installation behavior Install for user Logon requirement Only when a user is logged on Installation program visibility Hidden Maximum allowed run time 5 minutes
Right-click the application and select Distribute Content to your distribution point groups
Right-click the application and select Deploy
Choose the target User Collection and configure:
Setting Value Action Install Purpose Required Schedule As soon as possible (or a maintenance window)
After deployment, restart VS Code on target devices, then:
- Right-click in the Chat view and select Diagnostics
- Confirm the hooks are loaded and enabled
Deploy the Claude Code managed settings configuration as an SCCM Application.
- Log in to the Capsule Security portal
- Navigate to Settings > Integrations
- Locate the Claude Code integration
- Click Install and select Windows as the target platform
- Download the
managed-settings.jsonfile - Place the file on a network share:
\\sccm-server\sources\Software\CapsuleClaudeCodeHooks\managed-settings.json
Open the SCCM Console and navigate to Software Library > Application Management > Applications
Click Create Application and select Manually specify the application information:
- Name: Capsule Security Claude Code Hooks
- Publisher: Capsule Security
Add a Deployment Type with Script Installer:
Content location:
\\sccm-server\sources\Software\CapsuleClaudeCodeHooks\Install command:
cmd.exe /c mkdir "C:\Program Files\ClaudeCode" & copy /Y "managed-settings.json" "C:\Program Files\ClaudeCode\managed-settings.json"Uninstall command:
cmd.exe /c del "C:\Program Files\ClaudeCode\managed-settings.json"
Configure the Detection Method:
Setting Value Type File Path C:\Program Files\ClaudeCodeFile name managed-settings.jsonProperty File or folder exists Configure User Experience settings:
Setting Value Installation behavior Install for system Logon requirement Whether or not a user is logged on Installation program visibility Hidden Maximum allowed run time 5 minutes
Right-click the application and select Distribute Content to your distribution point groups
Right-click the application and select Deploy
Choose the target Device Collection and configure:
Setting Value Action Install Purpose Required Schedule As soon as possible (or a maintenance window)
After deployment, restart Claude Code on target devices, then:
- Run
/hooksin Claude Code to confirm all hooks are listed - Start a session and verify events appear in the Capsule Security portal
- Cursor and Claude Code use system-level paths — target Device Collections
- GitHub Copilot uses a user-level path (
%APPDATA%) — target User Collections - To update configurations, replace the files on the network share and create a new deployment or use SCCM's content update and redeployment workflow
- Restart each application on target devices after deployment for hooks to take effect
- Consider using SCCM Maintenance Windows to control when deployments occur
- For GitHub Copilot CLI users, create an additional application targeting
%USERPROFILE%\.github\hooks\hooks.json - All three integrations can be deployed as separate SCCM applications and assigned independently
For help with deployment:
- Email: support@capsule.security
- Include: Your organization ID, SCCM environment details, and any error messages