Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

New-Item -ItemType Junction can't create relative link #18251

Copy link
Copy link
@Revnixcad

Description

@Revnixcad
Issue body actions

Prerequisites

Steps to reproduce

using the SymbolicLink Example i assumed it would work for Junction as well.

  1. create folder frontend\foo
  2. create folder backend
  3. within the folder backend run the following command:
New-Item -ItemType Junction -Path foo -Target "..\frontend\foo"

with Windows Terminal 1.15.2713.0 on Windows 11 Pro 21H2 and PowerShell 7.2.6

Expected behavior

functioning symlink to relative path `..\frontend\foo`

Actual behavior

Getting error `New-Item: Could not find item ..\frontend\foo.`

Error details

No response

Environment data

Name                           Value
----                           -----
PSVersion                      7.2.6
PSEdition                      Core
GitCommitId                    7.2.6
OS                             Microsoft Windows 10.0.22000
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Visuals

No response

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.