Thoth SDK
sdk v0.1.6 / proxy v0.2.7

Intune Windows Runbook

Step-by-step Intune deployment runbook for onboarding managed Windows endpoints to thoth governance.

Use this runbook to deploy thoth governance to employee Windows endpoints managed by Intune.

PowerShell requirement

Windows onboarding requires PowerShell 5.1+ for script deployment and endpoint validation commands.

1. Prepare onboarding values

Use onboarding values provided by thoth:

  • tenant_id
  • apex_domain

2. Deploy config file to endpoints

Deploy:

C:\ProgramData\Thoth\thoth-config.json

Deployment options:

  • Intune Win32 app that writes the file
  • or custom OMA-URI profile that delivers equivalent content

3. Deploy Windows setup script

Upload and assign your PowerShell setup script (for example: deploy/intune/windows/setup-claude-mcp.ps1) to your Windows device groups.

Recommended Intune script settings:

  • Run this script using the logged on credentials: No
  • Enforce script signature check: Your organization standard
  • Run script in 64-bit PowerShell host: Yes

Expected behavior:

  • detect logged-in employee
  • wrap Claude config at $env:APPDATA\Claude\claude_desktop_config.json
  • restart Claude Desktop process cleanly

4. Assignment order

Use this sequence:

  1. Baseline dependencies assignment (thoth, node, npx)
  2. Config assignment (C:\ProgramData\Thoth\thoth-config.json)
  3. Setup script assignment

Scope to test, then pilot, then full production groups.

5. Execution policy note

If your environment blocks script execution:

  • configure Intune script policies to allow signed enterprise scripts
  • or deploy script via Win32 packaging flow where execution context is controlled centrally

Do not ask employees to override local execution policy manually.

6. Validate on pilot endpoint

thoth health --json
thoth status

Verify file placement:

Test-Path "C:\ProgramData\Thoth\thoth-config.json"
Test-Path "$env:APPDATA\Claude\claude_desktop_config.json"

Review local setup logging:

Get-Content "C:\ProgramData\Thoth\setup.log" -Tail 100

Troubleshooting

SymptomLikely causeWhat to check
Setup script fails immediatelyExecution policy or permissions issueCheck Intune script execution context and endpoint PowerShell policy
thoth not recognizedBinary not deployed yetVerify thoth install assignment completed before setup script assignment
Config file missingConfig deployment not assigned to endpointConfirm C:\ProgramData\Thoth\thoth-config.json exists
Claude config not governedSetup script could not resolve runtime dependenciesCheck setup log for node/npx or path resolution errors
Claude not restartingUser context mismatchVerify logged-in user detection and process permissions in setup log

On this page