-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Open
Labels
Area-FileSystem-Providerspecific to the FileSystem providerspecific to the FileSystem providerNeeds-TriageThe issue is new and needs to be triaged by a work group.The issue is new and needs to be triaged by a work group.WG-Cmdlets-Managementcmdlets in the Microsoft.PowerShell.Management modulecmdlets in the Microsoft.PowerShell.Management module
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest released version
- Search the existing issues.
- Refer to the FAQ.
- Refer to Differences between Windows PowerShell 5.1 and PowerShell.
Steps to reproduce
- Create a new junction (reparse point) of an arbitrary directory
New-Item -Path junction -ItemType Junction -Value 'C:\Program Files\'- Create a new symbolic link of an arbitrary directory
New-Item -Path symlink -ItemType SymbolicLink -Value 'C:\Program Files\'- Run the
Remove-Itemcommand with the-WhatIfswitch parameter
Remove-Item -Path .\junction\ -WhatIf
Remove-Item -Path .\symlink\ -WhatIfExpected behavior
Should not remove junction or symbolic linkActual behavior
Removes the junction and symbolic linkError details
No response
Environment data
PS C:\Users\tospaa> $PSVersionTable
Name Value
---- -----
PSVersion 7.2.1
PSEdition Core
GitCommitId 7.2.1
OS Microsoft Windows 10.0.19043
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0Visuals
2021-12-22.10-43-06.mp4
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Area-FileSystem-Providerspecific to the FileSystem providerspecific to the FileSystem providerNeeds-TriageThe issue is new and needs to be triaged by a work group.The issue is new and needs to be triaged by a work group.WG-Cmdlets-Managementcmdlets in the Microsoft.PowerShell.Management modulecmdlets in the Microsoft.PowerShell.Management module