Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove-Item2 unable to remove Junction #42

Open
Skons opened this issue Jan 11, 2019 · 1 comment
Open

Remove-Item2 unable to remove Junction #42

Skons opened this issue Jan 11, 2019 · 1 comment
Assignees
Labels
Question Someone has a question about feature or usability

Comments

@Skons
Copy link

Skons commented Jan 11, 2019

When you try to remove a junction, the following error is returned

remove-item2 : (87) The parameter is incorrect: [\\?\D:\testjunction]
At line:1 char:1
+ remove-item2 -Path .\testjunction\
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (.\testjunction\:String) [Remove-Item2], IOException
    + FullyQualifiedErrorId : DeleteError,NTFSSecurity.RemoveItem2

image

@raandree raandree self-assigned this Apr 3, 2019
@raandree
Copy link
Owner

raandree commented Apr 3, 2019

Thanks for reporting this. However I am unable to repro it. What OS / PowerShell version do you use?

PS D:\Test> New-Item -Name Juntion1 -Value .\Folder1\ -ItemType Junction


    Directory: D:\Test


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d----l         4/3/2019   1:18 PM                Juntion1


PS D:\Test> dir


    Directory: D:\Test


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-----         4/3/2019   1:18 PM                Folder1
d----l         4/3/2019   1:18 PM                Juntion1

PS D:\Test> Remove-Item2 -Path .\Juntion1\
PS D:\Test> dir


    Directory: D:\Test


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-----         4/3/2019   1:18 PM                Folder1

@raandree raandree added the Question Someone has a question about feature or usability label Apr 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Someone has a question about feature or usability
Projects
None yet
Development

No branches or pull requests

2 participants