Here's what I have working so far. It's searching a list of computers placing all the files from all the machines in one folder.
I'm trying to get the files located to be placed in a folder named after the machine that they came from. Any ideas anyone?
Get-Content C:computers.txt | Foreach-Object {
$ComputerName = $_
Get-Childitem "\$ComputerNamec$Documents and Settings**desktop","\$ComputerNamec$Documents and Settings**My Documents" -Include *.xls*, *.doc*, *.txt, *.pdf, *.jpg -Recurse -Force
} | Copy-Item -Destination \destinationshare
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…