/ Published in: Windows PowerShell

Powershell 1.0's Remove-Item recursion "doesn't work" according to the help, so you must find all instances with Get_ChildItem then pass the results to Remove-Item. Use th ecommented -"WhatIf" argument to determine what will be deleted before executing for real.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
Get-ChildItem -Path . -Include Thumbs.db -Recurse -Name -Force | Remove-Item -Force #-WhatIf
Comments
