$shell = new-object -com wscript.shell $newpath="C:\new folder" get-childitem -filter *.lnk -recurse | foreach { $lnk = $shell.CreateShortcut($_.fullname) $oldpath= $lnk.TargetPath cp $oldpath $newpath }