Skip to content

"The type is not a known type for the file system" error message misses Junction and HardLink #27248

@KalleOlaviNiemitalo

Description

@KalleOlaviNiemitalo

Prerequisites

Steps to reproduce

New-Item -Path:"TEMP:/demo" -Type:SomethingNotSupported

Expected behavior

New-Item: The type is not a known type for the file system. Only "file","directory","symboliclink","junction" or "hardlink" can be specified.

Actual behavior

New-Item: The type is not a known type for the file system. Only "file","directory" or "symboliclink" can be specified.

Error details

Environment data

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

Visuals

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs-TriageThe issue is new and needs to be triaged by a work group.

    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