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 SymbolicLink - can't create functioning relative links  #12784

Copy link
Copy link
@sukkergris

Description

@sukkergris
Issue body actions

Steps to reproduce

Follow example 7 here: [ https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/new-item?view=powershell-7

1. Create a folder eg. named "power"
2. In this (power) folder create an empty folder named "Notice"
3. In this (power) folder create a file named "Notice.txt"
4. As admin run this script: 
New-Item -ItemType SymbolicLink -Path .\link -Target .\Notice

Expected behavior

Functioning link to Notice named "link"

Actual behavior

link not working

#Note
Working perfectly with absolute path and in cmd
cmd >mklink /d "./link2" "./Notice"

Environment data

PS C:\retus\test2Die\power problems> $psversiontable

Name Value


PSVersion 7.1.0-preview.3
PSEdition Core
GitCommitId 7.1.0-preview.3
OS Microsoft Windows 10.0.18362
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-FileSystem-Providerspecific to the FileSystem providerspecific to the FileSystem providerIssue-BugIssue has been identified as a bug in the productIssue has been identified as a bug in the productIssue-Enhancementthe issue is more of a feature request than a bugthe issue is more of a feature request than a bugResolution-No ActivityIssue has had no activity for 6 months or moreIssue has had no activity for 6 months or moreUp-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsWG-Cmdlets-Managementcmdlets in the Microsoft.PowerShell.Management modulecmdlets in the Microsoft.PowerShell.Management module

    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.