What is the best solution to deal with Long File Path or File names Errors using Copy-item? I am copying from one UNC directory to another UNC Directory. Currently I am manually mapping the source and destination then manually copying over the long names. I cannot modify any of the file paths or file names. I have had the same issue with Robocopy but might be missing a switch.
The specified path, file name, or both are too long.
The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.