You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run Remove-Item with a UNC path that contains a doubled backslash before the last item and including -WhatIf.
After confirming that you want to delete multiple items even though you didn't specify recurse, check the path it would have deleted.
Remove-Item \\localhost\C$\temp\\ADMF -WhatIf
Expected behavior
What if: Performing the operation "Remove Directory" on target "\\localhost\C$\temp\ADMF"
Actual behavior
What if: Performing the operation "Remove Directory" on target "\\localhost\C$\temp\"
Environment data
Name Value
---- -----
PSVersion 7.1.0-preview.6
PSEdition Core
GitCommitId 7.1.0-preview.6
OS Microsoft Windows 10.0.18363
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Calling this an enhancement while we check if this is a regression.
UPDATE:
It does repro on 7.0 but does not in 5.1. This is not a regression. We won't block 7.1 RTM for this.
Activity
rjmholt commentedon Sep 16, 2020
We should consider fixing this for RC.1
TravisEz13 commentedon Oct 13, 2020
Calling this an enhancement while we check if this is a regression.
UPDATE:
It does repro on 7.0 but does not in 5.1. This is not a regression. We won't block 7.1 RTM for this.
jjolidon commentedon Mar 3, 2022
Just to confirm it is still biting on 7.2.1.
ajansveld commentedon Oct 28, 2022
Why is this considered an "enhancement"? We just had our first incident because of this destructive bug, I feel we should be much louder about this.
Is this being looked at for 7.3?
Tadas commentedon Nov 2, 2022
Looks like this has been fixed with #15873
iSazonov commentedon Nov 3, 2022
/cc Steve Lee (@SteveL-MSFT)
ajansveld commentedon Nov 3, 2022
What is the threshold for backporting the fix to 7.2 (LTS-current), considering it is supported for another 2 years?
iSazonov commentedon Jan 13, 2023
ajansveld Only security fixes are backported. Also regressions from previous version.
SteveL-MSFT commentedon Jan 23, 2023
Since this is a regression from 5.1 and hitting customers, we should consider backport to 7.2