I am writing code to modify files contained on our file servers. A majority of our users work from MAC's and they have created folder structure that exceeds the 260 character limit.

I am able to get into the folder using Cmdlet's from a module called NTFSsecurity which has a Get-ChildItem2 cmdlet. It also has a Remove-Item2 and Get-Item2 both able to work with longer paths. But the module does not have an alternative method for Add-Content.

I need a way to write to the file in question contained in this long path. I have been searching for days and have come up empty.

Anyone have any ideas as too how I can write to a file contained in a long path structure?