hi, i need to run a powershell script that will find all *.sh files on a PC and then copy said files to a network unc changing the name to be the pc it came from.
I have come up with this which finds the files
dir -R c:\*.* *.sh -file | where length -eq 1226
Is there a way to do the copying?