PowerShell

How to use –Exclude switch in Remove-Item cmdlet in PowerShell

Hi, today i was trying to remove some junk folders and files in a  specific folder. But i don’t want to remove all of file and folder , i want to keep few folders. Then i think that i should use the –Exclude switch with Remove-Item Cmdlet. I tried to use –Exclude switch but somehow… Continue reading How to use –Exclude switch in Remove-Item cmdlet in PowerShell