Dealing with long file and path names - Copy-Item

Good Afternoon all,

I have a powershell script that deals with leavers - it utilizes the copy-item cmdlet but occasionally I get a copy error about long file or path names.  Please could you let me know if there is anything I can use or an alternative method to deal with this?

Thanks for any help.

No Data
  • """""""I recommend three solutions:

    1. (if the path is too long) First copy the folder to upper levels in windows explorer and then move it to your local computer
    (if file names are too long) First try to zip/rar/7z them with an archive application and then 2. copy the archive file to your local computer and then extract the contents.
    3. Use third party apps. I suggest to use gs richcopy 360. It is """"""""The Fastest Copy/Delete Software on Windows."""""""" It supports UNICODE and over MAX_PATH (260 characters) file path names.
    All of these suggestions assume you have some sort of write access on the network shared folder/computer. If you can't do any of these then you might need help from your administrator"""""""

No Data