Skip to content

Latest commit

 

History

History
11 lines (6 loc) · 517 Bytes

File metadata and controls

11 lines (6 loc) · 517 Bytes

Remove-Item may ignore items specified by Exclude

Test-1.exclude.file.ps1 shows that the parameter Exclude works for the file, at least in v5.1. In v2 Exclude ignores the specified value and removes the file.

Test-2.exclude.directory.ps1 shows that the parameter Exclude ignores the directory.