Sharing and organizations

Deploying Nocturnal across an organization

With an organization license, IT can install Nocturnal on many computers and have each one join the organization's workspace with no steps at the computer. Three pieces:

  1. An enrollment token from the organization's base.
  2. The installer, pushed silently.
  3. The token, set by Group Policy, Intune or a policy file.

Each computer then joins on its own when Nocturnal starts and asks who's using it the first time the workspace opens.

1. Make an enrollment token

On the base (the computer that holds the workspace and serves it), with the organization license applied in Settings › About:

  1. Settings › Relay › Local network server on this device.
  2. Under Shared Spaces, share the Spaces the computers should get.
  3. Enrollment tokens › New token…: name it, choose when it expires and how many computers may join, and select Make token. Copy it.

On a self-hosted Relay server (see Running your own Relay server), make it there instead, from an administrator PowerShell: nocturnal-relay token --label "Accounting laptops" --days 14 --uses 40.

The token holds a secret: anyone who can read it can join while it's valid. Give it an expiry and a number of computers close to the rollout, and Revoke it when the rollout is done. Computers that joined stay.

2. Install silently

The installer, Nocturnal_<version>_x64-setup.exe, installs for the signed-in person (no admin rights) into %LOCALAPPDATA%\Nocturnal. /S (capital S) installs it silently.

Intune (Win32 app). Package the installer with the Microsoft Win32 Content Prep Tool, then in the Intune admin center, Apps › All Apps › Create › Windows app (Win32):

  • Install command: Nocturnal_<version>_x64-setup.exe /S
  • Uninstall command: powershell.exe -ExecutionPolicy Bypass -File uninstall.ps1, with uninstall.ps1 (from Nocturnal's deployment files) packaged beside the installer. Intune doesn't expand environment variables in the uninstall command, so the script finds the uninstaller.
  • Install behavior: User.
  • Detection rule: File, path %LOCALAPPDATA%\Nocturnal, file Nocturnal.exe, File or folder exists.

Other tools, such as a logon script: run the installer with /S as the person. Group Policy's Software Installation assigns Windows Installer (.msi) packages; an installer like Nocturnal's can only be published to people with a .zap file, not assigned. A logon script is the simpler way there.

3. Hand out the token

Nocturnal reads EnrollToken and, optionally, BaseAddress from Software\Policies\Wayfarers\Nocturnal, under HKEY_LOCAL_MACHINE (the computer) or HKEY_CURRENT_USER (the person). The computer's setting wins.

Group Policy. Copy Nocturnal.admx into the Central Store's PolicyDefinitions folder (\\<domain>\SYSVOL\<domain>\Policies\PolicyDefinitions) and en-US\Nocturnal.adml into its en-US folder. In the Group Policy Management Editor, under Computer Configuration (or User Configuration) › Policies › Administrative Templates › Wayfarers Digital › Nocturnal, enable Join the organization's workspace with an enrollment token and paste the token.

Intune. Devices › Manage devices › Configuration › Import ADMX › Import: upload Nocturnal.admx and en-US\Nocturnal.adml. Then Create › New policy › Windows 10 and later › Templates › Imported Administrative templates (Preview), enable the same setting, paste the token, and assign it.

A policy file, for tools that place files: %ProgramData%\Nocturnal\policy.json with {"enrollToken": "NOCTURNAL-ENROLL-…", "baseAddress": "base-pc"}. The registry wins over it.

Set Address of the organization's base only when computers reach the base by another name or address than the one the token carries, like base-pc or 10.0.0.20:47470.

What each computer does

  • Soon after Nocturnal starts, it joins with the token, syncs the shared Spaces and says so, with Open. The workspace opens by itself from the next start.
  • If the base can't be reached (a laptop away from the office network), Settings › Relay says why, and it tries again every 10 minutes while Nocturnal runs.
  • A computer that already has the workspace does nothing.
  • It joins only while the organization license works and the base has room for another computer.

Sources

Checked on 2026-11-19: