From 6821d4d6fc5d5a8bc4d95880b9b572df25ef4d1d Mon Sep 17 00:00:00 2001 From: Howard Enos Date: Fri, 29 May 2026 12:36:01 -0700 Subject: [PATCH] sync: auto-sync from HOWARD-HOME at 2026-05-29 12:35:52 Author: Howard Enos Machine: HOWARD-HOME Timestamp: 2026-05-29 12:35:52 --- .claude/memory/MEMORY.md | 1 + .../memory/feedback-rmm-unc-path-encoding.md | 19 +++++++++++++++++++ projects/msp-tools/guru-connect | 2 +- 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 .claude/memory/feedback-rmm-unc-path-encoding.md diff --git a/.claude/memory/MEMORY.md b/.claude/memory/MEMORY.md index 3d75967..dd523c9 100644 --- a/.claude/memory/MEMORY.md +++ b/.claude/memory/MEMORY.md @@ -58,6 +58,7 @@ - [Vault writes — do the full sequence yourself](feedback_complete_vault_operations_end_to_end.md) — A vault entry = write plaintext → sops -e -i → git add/commit/push, all of it; don't stop at "encrypted on disk." - [GuruRMM dev is Mike's, not Howard's](feedback_rmm_dev_is_mike.md) — Never route RMM dev/bug coord notes to Howard (0 RMM commits by him). Howard only submits RMM feature requests; GuruScan is his project, RMM is not. +- [RMM user_session UNC path encoding](feedback-rmm-unc-path-encoding.md) — Never use `"\\server\..."` literals in user_session scripts; use `[char]92` to build UNC paths explicitly. - [Howard: defer backend/server follow-up to Mike](feedback_howard_delegation.md) — Howard doesn't want to touch server/agent code unless Mike asks - [Syncro is the default PSA; Autotask is opt-in](feedback_psa_default_syncro.md) — Ticketing/billing/customers default to Syncro (/syncro). Only use /autotask on an explicit "in Autotask" request. /autotask kept local/undistributed. - [Command Formatting](feedback_command_formatting.md) — Always multi-line scripts, never one-liners; one-liners wrap in chat and break on copy-paste diff --git a/.claude/memory/feedback-rmm-unc-path-encoding.md b/.claude/memory/feedback-rmm-unc-path-encoding.md new file mode 100644 index 0000000..98bebf2 --- /dev/null +++ b/.claude/memory/feedback-rmm-unc-path-encoding.md @@ -0,0 +1,19 @@ +--- +name: feedback-rmm-unc-path-encoding +description: RMM PowerShell UNC paths via user_session context lose one backslash when using string literals — must build with [char]92 +metadata: + type: feedback +--- + +Never use `"\\CS-SERVER\..."` string literals in PowerShell scripts dispatched via GuruRMM `user_session` context. The backslash gets halved somewhere in the encoding pipeline, producing `\CS-SERVER\...` (a local path) instead of the UNC `\\CS-SERVER\...`. + +**Why:** The `user_session` execution wrapper appears to process escape sequences in the script text differently than `system` context, stripping one backslash from `\\`. + +**How to apply:** Always build UNC paths explicitly when using user_session: +```powershell +$bs = [char]92 +$base = "${bs}${bs}CS-SERVER${bs}homes${bs}Username" +``` +This constructs `\\CS-SERVER\homes\Username` correctly regardless of context. + +The `system` context (offline hive reg query) showed correct `\\CS-SERVER` output, so the issue is specific to `user_session`. diff --git a/projects/msp-tools/guru-connect b/projects/msp-tools/guru-connect index 5727ccf..6e7e7c0 160000 --- a/projects/msp-tools/guru-connect +++ b/projects/msp-tools/guru-connect @@ -1 +1 @@ -Subproject commit 5727ccf39ee9fcdf5aa47d5fee77bdac05984428 +Subproject commit 6e7e7c0ccbcb23170a13a65785c8703e193fc77d