This powershell script will recursively search and move files if file name matches text patten. I needed to find all Novell GroupWise Archives scattered about users home directories.
get-childitem E:\users -recurse | ? {$_.PSIsContainer -eq $true} | ? {$_.Name -like 'of???arc'} | move-item -destination R:\users\Archives\
No comments:
Post a Comment