Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.msi

    • Copy 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 /hooks may show “0” even when hooks are active — verify via the Nightfall console Last-event timestamp or claude --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

  1. Within SCCM, navigate to: Software Library → Application Management → Applications → Create Application → Manually specify → add a Script Installer deployment type.

  • Content location: \\<fileserver>\NightfallDeploy\Agent

  • Installation 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:

Do NOT use a fixed MSI product code for detection.

The agent auto-updates itself, and its MSI product code changes with every version — a product-code detection would break after the first auto-update and cause an endless reinstall/1603 loop. The script above detects any installed version (SCCM installs once; the agent’s auto-updater keeps it current).

  1. Then Distribute Content → your DP

  2. 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.

The install command stages the payload to the path the script expects, then runs the package’s install.ps1.

Claude Code

  • Content location: \\<fileserver>\NightfallDeploy\ClaudeCode

  • Installation program:

  • Detection — File System: C:\Program Files\ClaudeCode\managed-settings.d\nightfall-hooks.json exists

Cursor

  • Content location: \\<fileserver>\NightfallDeploy\Cursor

  • Installation program:

  • Detection — custom PowerShell (Cursor’s hooks.json is shared with other vendors, so existence isn’t enough):

VS Code + GitHub Copilot

  • Content location: \\<fileserver>\NightfallDeploy\VSCode

  • Installation program:

  • Detection — custom PowerShell:

Order: deploy the agent first. It installs nightfall-hook-relay onto the system PATH. The hook file can be in place before the agent, and it fires once the agent is present.

6. Verify

On a target device:

  1. Run Machine Policy Retrieval

  2. Navigate to Application Deployment Evaluation (Control Panel → Configuration Manager → Actions), then check:

  1. 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.json is in the user's .copilot\hooks folder. 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?