Answer: Set the `disableRemotePreviewScripts` managed setting to `true` in your server-managed settings or in a Claude Code MDM policy or managed settings file on the computer that runs Desktop, then have users restart Desktop. This requires Claude Desktop v5.1231.0 or later. Status: Confirmed Entry: tool/claude-code/admin-and-enterprise/disable-preview-scripts-ssh-wsl Revision: 3 Digest: sha256:49c09d986fb37f9d (changes whenever the content changes) Timeline: Created: 2026-11-13T03:04:03Z Last changed: 2026-11-19T12:16:01Z (Action after setting: — → restart Desktop) Last verified: 2026-11-20T12:20:25Z Next check: 2026-11-21T12:20:25Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Setting to enable | disableRemotePreviewScripts | [1] | 2026-11-20 Required Desktop version | v5.1231.0 | [1] | 2026-11-20 Where to set it | server-managed settings | [1] | 2026-11-20 Fallback setting for earlier versions | disableBrowserExternalNavigation | [1] | 2026-11-20 Required parent setting | parentSettingsBehavior | [1] | 2026-11-20 Action after setting | restart Desktop | [1] | 2026-11-20 Sources: [1] Anthropic. "Desktop application". https://code.claude.com/docs/en/desktop.md Role: primary. Accessed: 2026-11-20T12:20:25Z Quote: "set the [`disableRemotePreviewScripts` managed setting](#managed-settings) to `true`" (Supports: Setting to enable) Quote: "Requires Claude Desktop v5.1231.0 or later." (Supports: Required Desktop version) Quote: "Set each key in your [server-managed settings](https://code.claude.com/docs/en/server-managed-settings.md), or in a [Claude Code MDM policy or managed settings file]" (Supports: Where to set it) Quote: "update Desktop, or also set `disableBrowserExternalNavigation` to `true`" (Supports: Fallback setting for earlier versions) Quote: "also set [`parentSettingsBehavior`](https://code.claude.com/docs/en/settings-reference#parentsettingsbehavior) to `"merge"`" (Supports: Required parent setting) Quote: "Then have users restart Desktop to make sure that the setting applies" (Supports: Action after setting) Published: 2026-11-20T10:36:05Z Snapshot SHA-256: e4838a434650f8e38817f67cddb3c612aa44f433f37a880b8bd664b65bf1508d (captured 2026-11-20T12:20:24Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. Cross-check: not-available at 2026-11-20T12:20:25Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:20:25Z Last attempt: 2026-11-20T12:20:25Z Notes and limitations: Extracted automatically from a single official source (section "Turn off scripts in SSH and WSL previews for your organization"). Related: https://latestn.com/tool/claude-code/admin-and-enterprise/distribute-config-managed-settings How do I distribute the Claude Code gateway configuration to developers through managed settings? https://latestn.com/tool/claude-code/admin-and-enterprise/enable-anthropic-git-proxy How do I enable the Anthropic git proxy for Claude Code self-hosted runners? https://latestn.com/tool/claude-code/admin-and-enterprise/enable-channels-organization How do I enable channels for my organization in Claude Code? https://latestn.com/tool/claude-code/admin-and-enterprise/development-partner-program-opt-in How can an organization admin opt in to the Development Partner Program in Claude Code? https://latestn.com/tool/claude-code/admin-and-enterprise/disable-mcp-entirely How do I disable MCP servers entirely for my organization in Claude Code? https://latestn.com/tool/claude-code/admin-and-enterprise/disable-plugin-auto-updates-fleet How do I turn off plugin auto-updates for all users in Claude Code? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-19T12:16:01Z | changed | Action after setting: — → restart Desktop | [1] 2026-11-19T12:16:01Z | changed | Required parent setting: — → parentSettingsBehavior | [1] 2026-11-19T12:16:01Z | changed | Fallback setting for earlier versions: — → disableBrowserExternalNavigation | [1] 2026-11-19T12:16:01Z | changed | Where to set it: — → server-managed settings | [1] 2026-11-19T12:16:01Z | changed | Required Desktop version: — → v5.1231.0 | [1] 2026-11-19T12:16:01Z | changed | Setting to enable: — → disableRemotePreviewScripts | [1] 2026-11-19T12:16:01Z | changed | parent settings behavior: merge → — | [1] 2026-11-19T12:16:01Z | changed | fallback setting for earlier versions: disableBrowserExternalNavigation → — | [1] 2026-11-19T12:16:01Z | changed | where to set it: server-managed settings → — | [1] 2026-11-19T12:16:01Z | changed | minimum Desktop version: v5.1231.0 → — | [1] 2026-11-19T12:16:01Z | changed | setting value: true → — | [1] 2026-11-19T12:16:01Z | changed | setting name: disableRemotePreviewScripts → — | [1] 2026-11-15T12:20:18Z | changed | parent settings behavior: — → merge | [1] 2026-11-15T12:20:18Z | changed | fallback setting for earlier versions: — → disableBrowserExternalNavigation | [1] 2026-11-15T12:20:18Z | changed | where to set it: — → server-managed settings | [1] 2026-11-15T12:20:18Z | changed | minimum Desktop version: — → v5.1231.0 | [1] 2026-11-15T12:20:18Z | changed | setting value: — → true | [1] 2026-11-15T12:20:18Z | changed | setting name: — → disableRemotePreviewScripts | [1] 2026-11-15T12:20:18Z | changed | Required parent setting when no managed settings exist: parentSettingsBehavior → — | [1] 2026-11-15T12:20:18Z | changed | Fallback setting for earlier versions: disableBrowserExternalNavigation → — | [1] 2026-11-15T12:20:18Z | changed | Required Desktop version: v5.1231.0 → — | [1] 2026-11-15T12:20:18Z | changed | Setting: disableRemotePreviewScripts → — | [1] 2026-11-13T03:04:03Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/admin-and-enterprise/disable-preview-scripts-ssh-wsl/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/admin-and-enterprise/disable-preview-scripts-ssh-wsl POST: https://latestn.com/dispute/tool/claude-code/admin-and-enterprise/disable-preview-scripts-ssh-wsl with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/admin-and-enterprise/disable-preview-scripts-ssh-wsl?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I turn off scripts in SSH and WSL previews for my organization in Claude Code Desktop? Revision 3, last verified 2026-11-20T12:20:25Z. https://latestn.com/tool/claude-code/admin-and-enterprise/disable-preview-scripts-ssh-wsl (accessed 2026-11-21T10:01:00Z). @misc{LatestN_tool_claude_code_admin_and_enterprise_disable_preview_scripts_ssh_wsl_r3, title = {How do I turn off scripts in SSH and WSL previews for my organization in Claude Code Desktop?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/admin-and-enterprise/disable-preview-scripts-ssh-wsl}}, note = {Revision 3; digest sha256:49c09d986fb37f9d; last verified 2026-11-20T12:20:25Z; accessed 2026-11-21T10:01:00Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/admin-and-enterprise/disable-preview-scripts-ssh-wsl