Long file paths – greater than 260 characters – have been a pain to deal with in Windows.
There is an argument that you should avoid file paths of that length but sometimes you don’t have any choice – when you inherit a file structure for instance.
The following cmdlets from the NTFSsecurity module I recently highlighted are designed to work with long file paths.
Copy-Item2
Get-ChildItem2
Get-FileHash2
Get-Item2
Move-Item2
Remove-Item2
Test-Path2
Hopefully, this will make dealing with long file paths easier in the future