So, I am trying to make a PowerShell scripted backup of our documentation, solutions, and white papers to a windows server which can be easily accessed
Unfortunately, when I download them I am unable to name the articles and attachments by their long names.
I did attempt a workaround, which somewhat works in some places, where I download the webpage and attachments and just do a Get-ChildItem "$ItemOriginalfilepath" | Rename-Item -NewName "$ItemFullNameWithExtension" -Force
and that works for one location, I don't know why.
My main issue is how do I rename the file in other windows servers, where this trick seems to NOT work.
How do I overcome that 260 limit for renaming or maybe in general?