Skip to content

[Bug] The current junction folder cannot be accessed over SSH since KB5074105 #6594

@ZhangTianrong

Description

@ZhangTianrong

Bug Report

Current Behavior

The shims pointing to executables in the current directory can run directly on the host, but over SSH connections, they complain

Shim: Could not determine if target is a GUI app. Assuming console.
Shim: Could not create process with command '"<$HOME/scoop/apps/some-app/current/some-exe>" <args>'

and when the executables are run with the path in the current folder,

The path cannot be traversed because it contains an untrusted mount point.

Running the executables in the non-junction folder (i.e. the one with version number) however doesn't encounter this problem. It is likely that since recent updates, junctions are no longer accessible via SSH.

Expected Behavior

Like before, running the shim will automatically run the app of the current version whether it's on the host directly or over SSH.

Additional context/output

It is very likely junctions are no longer accessible over SSH even when marked as trusted (at least not by default) but junctions are a very important part of scoop for version management.

Possible Solution

I have tried resetting permission as mentioned in #5238 but the problem persists. The cause and temporary solution seem to be

In case someone runs into this issue now and stumbles upon this github issue:

The KB5074105 preview update seems to break junctions over ssh (tested with VSCode remote), even if marked as trusted by the script above. Only uninstalling the update helped so far.

Feedback hub link: https://aka.ms/AAzhjzy

Originally posted by @seritools in #5238

The KB can be removed by running

wusa /uninstall /kb:5074105

and restart.

System details

Windows version: [e.g. 7, 8, 10, 11] 11

OS architecture: [e.g. 32bit, 64bit, arm64] 64bit

PowerShell version: [output of "$($PSVersionTable.PSVersion)"] 7.5.4

Additional software: [(optional) e.g. ConEmu, Git]

Scoop Configuration

{
  "last_update": "2026-02-05T22:27:02.5599184-05:00",
  "aria2-warning-enabled": false,
  "shim": "kiennq",
  "debug": false,
  "aria2-options": "--disable-ipv6",
  "scoop_repo": "https://github.com/ScoopInstaller/Scoop",
  "scoop_branch": "master"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions