Nightfall Windows Agent Deployment: SCCM
A step-by-step guide to deploy the Nightfall endpoint agent and the AI-coding-assistant hooks (Claude Code, Cursor, VS Code + GitHub Copilot) to Windows devices using SCCM/MECM.
1. Prerequisites
Client: SCCM Current Branch; SCCM client installed and healthy on target devices; a reachable Distribution Point (DP).
Operating System: Windows 10 (22H2 and above) / 11 x64 targets (ARM not supported).
Package: From the Endpoint page → navigate to Download package button →
Download
NightfallAgent.msiCopy API Key and Company ID
2. Reminders
The agent self-updates (every few hours) — SCCM’s job is a one-time install; don’t manage the version in SCCM (hence the version-agnostic detection in §3).
Claude Code managed hooks apply with no consent dialog on current releases. On some 2.1.x builds
/hooksmay show “0” even when hooks are active — verify via the Nightfall console Last-event timestamp orclaude --debug. Developers must fully quit and reopen Claude Code after the file is deployed. If an HKLM Claude Code policy already exists, this file drop will not load. Follow Nightfall Hooks for Claude Code.Always Run as Administrator.
Deployment runs in System context (SCCM default).
3. Stage the Content
Put the installers on a UNC share the site server and DP can read.
\\<fileserver>\NightfallDeploy\
├── Agent\NightfallAgent.msi
├── ClaudeCode\ (payloads\ + scripts\windows\ from the Claude Code package)
├── Cursor\ (payloads\ + scripts\windows\ from the Cursor package)
└── VSCode\ (payloads\ + scripts\windows\ from the VS Code package)Share permissions matter. SCCM’s distribution service reads the source as the site server’s computer account, not your user. Grant Read to
Domain Computers(or the site server’s machine account) on both the share and NTFS — otherwise Distribute Content fails with “cannot access … Win32 error 5 (Access Denied).”
4. Deploy the Nightfall Agent
Within SCCM, navigate to: Software Library → Application Management → Applications → Create Application → Manually specify → add a Script Installer deployment type.
Content location:
\\<fileserver>\NightfallDeploy\AgentInstallation program:
Install behavior: Install for system · Whether or not a user is logged on · Hidden
Detection method — use a version-agnostic script (important): On the Detection tab choose Use a custom script → PowerShell and paste:
Then Distribute Content → your DP
Deploy the app Required to your target device collection.
5. Deploy the Hooks (per IDE)
Create one Script Installer application per IDE.
Common settings: Install for system · Whether or not a user is logged on · Hidden · Required.
Claude Code
Content location:
\\<fileserver>\NightfallDeploy\ClaudeCodeInstallation program:
Detection — File System:
C:\Program Files\ClaudeCode\managed-settings.d\nightfall-hooks.jsonexists
Cursor
Content location:
\\<fileserver>\NightfallDeploy\CursorInstallation program:
Detection — custom PowerShell (Cursor’s
hooks.jsonis shared with other vendors, so existence isn’t enough):
VS Code + GitHub Copilot
Content location:
\\<fileserver>\NightfallDeploy\VSCodeInstallation program:
Detection — custom PowerShell:
6. Verify
On a target device:
Run Machine Policy Retrieval
Navigate to Application Deployment Evaluation (Control Panel → Configuration Manager → Actions), then check:
Confirm the device and per-IDE hook status appear on the Devices page in the Nightfall console. For a new Claude Code deployment, confirm the Last-event timestamp advanced after a developer quit and reopened Claude Code. For VS Code Copilot, confirm
nightfall.jsonis in the user's.copilot\hooksfolder. The Copilot status can stay Not configured until someone uses Copilot on that device. A green badge means an event arrived in the last 72 hours.
Last updated
Was this helpful?