Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Difference between Remove-Item in Powershell 3.0 and 4.0

$
0
0

Hi! Just a simple question

Seems that there is a difference between PS version 3 and 4 running this command, because in PS 3 it leaves the content in the GetFoldersizePortable (which is a folder) and in PS 4 it doesnt

Remove-Item -Path 'C:\temp\*' -Recurse -Exclude WindirStat.exe, GetFoldersizePortable

My question is why, and how to work around this



Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>