Sectigo Quantum Ready Windows management payload

Run in 64-bit PowerShell as SYSTEM or an administrator. Enrollment and setup must
run under the same Windows identity. This package contains no device secrets.
A manually extracted package is copied into a private ProgramData cache when its
folder permissions allow other users to write. The launcher checks the pinned
inventory and every copied file before running a native executable. The cache is
reused and reverified on later runs. Your extraction folder permissions are not
changed. Keep configuration, enrollment grants and saved state outside this cache.
Deliver each device's private configuration and grant separately to:
  %ProgramData%\SectigoQuantumReadyEnrollment\agent.json
  %ProgramData%\SectigoQuantumReadyEnrollment\device-grant.json
Create a private state directory under that folder, with access only for the
installing account and administrators. Never include those files in this package.

Install command:
  powershell.exe -NoProfile -NonInteractive -File .\Deploy-QuantumReady.ps1 -Action Install
Uninstall command:
  powershell.exe -NoProfile -NonInteractive -File .\Deploy-QuantumReady.ps1 -Action Remove

Use the matching Intune or ConfigMgr detection script. Apply your organization's
script-signing policy; these scripts do not disable execution policy. Discovery
runs as the installer's restricted service identity, not as SYSTEM.

For Intune, use Microsoft's Win32 Content Prep Tool with this source directory
and Deploy-QuantumReady.ps1 as the setup file; put .intunewin output outside the
source directory. Configure System installation behavior and 64-bit detection.
For Intune command fields, replace powershell.exe above with:
  %SystemRoot%\Sysnative\WindowsPowerShell\v1.0\powershell.exe
This selects 64-bit PowerShell from the Intune 32-bit command host.
Inspect installation state without changing it:
  powershell.exe -NoProfile -NonInteractive -File .\Deploy-QuantumReady.ps1 -Action Status
Status prints JSON, including recovery requirements. It remains available after
package expiry; it does not enroll, start, repair or update the service. A zero
command exit means status was read, not that the service is healthy or connected.

Upgrade an existing managed service using this package's signed release:
  powershell.exe -NoProfile -NonInteractive -File .\Deploy-QuantumReady.ps1 -Action Upgrade
Upgrade preserves identity and approved scope, starts the service, and refuses
missing/removed installations, recovery-pending state and release downgrades.
Use Install explicitly to restore a removed managed service.

Verify provider assignment in your management environment. Review release-specific service lifecycle qualification in the Windows service documentation.

Removal preserves configuration and credentials. Revoke the agent in the workspace
when retiring it. Removal first disables a registered updater, waits for its active
operation to finish, and removes the updater before the service. The default wait
is 300 seconds; use -UpdateDrainTimeoutSeconds 0..1800 to change it. If the updater
is still busy or its removal cannot be confirmed, removal exits nonzero and leaves
the service intact. Preserve files and retry after the update completes.
Installer 0.51.211 and newer can restore a completed removal using
verified retained files and the same agent identity. Older packages require a newer
installer before reinstallation. Preserve enrollment state on errors. A running service is not proof of cloud contact or a completed scan.

Guided service installation (interactive administrator terminal):
  powershell.exe -NoProfile -File .\Deploy-QuantumReady.ps1 -Action Guided
Sign in through your browser and choose the exact local scan scope.
The service installer reuses that identity without token copying.
Guided state defaults to %ProgramData%\SectigoQuantumReadyEnrollment\guided-state.
Rerun as the same Windows account to resume; do not switch to SYSTEM.
Choosing hosted cloud connections or cancelling does not install a service.
Existing installations are reused; Guided does not change their approved scope.

Relay deployment choices
========================

Choose the role before installing. A scanner that connects through a relay and
a node that forwards connections have separate identities and permissions.
Neither choice grants remote-scanner pool access.

1. Scanner agent connecting through a relay

In the workspace, configure the agent's primary/secondary relays and explicit
direct-fallback policy, then obtain its relay enrollment inputs. Deliver each
device's configuration, agent token and bootstrap token privately, outside this
package. Do not reuse one agent identity across a deployment group.

Run in an elevated 64-bit PowerShell terminal (one command):
  powershell.exe -NoProfile -NonInteractive -File .\Deploy-QuantumReady.ps1 -Action InstallRelay -ConfigurationPath C:\Private\agent.json -AgentTokenPath C:\Private\agent.token -RelayBootstrapTokenPath C:\Private\bootstrap.token

Use -Action Status to inspect the scanner service. The relay bootstrap is distinct
from a device grant; do not pass GrantPath or StateDirectory to InstallRelay.
Preserve private inputs and installer diagnostics if enrollment fails. Validate
the agent's connection and a completed scan in the workspace after installation.

2. Relay node forwarding agent connections

Create an explicitly designated relay in the workspace and download its node
configuration and credential. Store those files privately on the destination.
Keep updater credentials separate from this node credential and from agent tokens.

Run in an elevated 64-bit PowerShell terminal (one command):
  powershell.exe -NoProfile -NonInteractive -File .\Deploy-QuantumReady.ps1 -Action RelayNode -RelayNodeAction Install -ConfigurationPath C:\Private\relay.json -RelayNodeTokenPath C:\Private\relay.token

Inspect the relay without changing it:
  powershell.exe -NoProfile -NonInteractive -File .\Deploy-QuantumReady.ps1 -Action RelayNode -RelayNodeAction Status

Use RelayNodeAction Stop, Start or Remove for the corresponding lifecycle action.
Use Recover with the original configuration and token paths after an interrupted
installation. Keep the original signed package for Start and Recover. For Upgrade,
use the newer signed package and omit configuration and credential parameters.
These operations manage the relay service separately from the scanner service.
Check structured status for recovery-required or removal-pending. Successful local
execution alone does not establish workspace connectivity or completed removal.

Managed relay updates require a separately provisioned updater identity, local
approval policy and registered supervisor. Installing a relay does not enable
automatic updates. Follow the platform-specific instructions at:
  https://qscan.dev/docs/agent-relays/
Updates independently verify signed releases and retain the relay TLS identity.

Bulk deployment
---------------
Use SYSTEM or an administrator with your management tool's script policy. Deliver
private inputs separately from this reusable package, restricted to the installing
identity and administrators. Never embed credentials in command arguments, this
package, shared deployment logs or a common group configuration. Use per-device
input files and inventory the resulting identities in the workspace.
For Intune's 32-bit command host, replace powershell.exe with:
  %SystemRoot%\Sysnative\WindowsPowerShell\v1.0\powershell.exe

Review release-specific qualification in the online documentation before rollout.
This instruction file describes launcher usage; it is not a service acceptance
receipt or proof of qualification on every Windows release.
