2.1 KiB
2.1 KiB
name, description, metadata
| name | description | metadata | ||
|---|---|---|---|---|
| reference_rmm_map_network_drive | How to push a persistent mapped network drive to a machine via GuruRMM when net use fails with error 67 (double-hop) |
|
Pushing a persistent mapped drive to an endpoint via the GuruRMM agent (/rmm) fails when the target share is on a remote server:
- Running
net useincontext: user_sessionimpersonates the logged-on user, but that WTS-impersonated token has no network credential to make the second hop to the file server. Result:System error 67 (network name cannot be found)onnet useandSystem error 1702 (binding handle is invalid)onnet view— even with explicit/user:.. <pw>. This is the "SMB error 67 = RMM artifact" documented inwiki/clients/cascades-tucson.md(server + share are healthy; access works in a real interactive session).
Reliable workaround — plant the map so it mounts at the user's next real logon:
cmdkey /add:<SERVER> /user:<DOMAIN\user> /pass:<pw>inuser_session— this is a local write to the user's Credential Manager and DOES succeed.- Write the persistent-map registry keys into the user's hive
HKCU:\Network\<DriveLetter>:RemotePath(REG_SZ,\\SERVER\Share),UserName(REG_SZ,DOMAIN\user),ProviderName(Microsoft Windows Network),ProviderType(DWord131072),ConnectionType(DWord1),DeferFlags(DWord4). - At the user's next interactive logon / reboot, Windows reconnects the drive silently using the cmdkey credential. It will NOT appear in an already-open session — for immediate visibility, run
net use <D>: "\\SERVER\Share"in the live interactive session (ScreenConnect), not through the RMM agent.
Non-domain-joined (workgroup) endpoints authenticate with DOMAIN\user + password saved via cmdkey — the domain account only needs to exist and be reachable, the client PC does not need to be joined.
PowerShell-in-RMM gotcha hit while doing this: a double-quoted string ending in a backslash ("W:\", "W:\\") breaks the parser — use bare path tokens (Test-Path W:\) or single quotes. See feedback_windows_quote_stripping.