Open Skons opened 5 years ago
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
When you try to remove a junction, the following error is returned