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.
- Get-ChildItem -Path . -Include Thumbs.db -Recurse -Name -Force | Remove-Item -Force #-WhatIf
CommentsSubscribe to comments
You need to login to post a comment.