Usage: 1. Edit Get-FileManifest-LongPaths.ps1 to update the full path to Get-FolderItem-B.ps1 2. Run PowerShell as Administrator, then, e.g. .\Get-FileManifest-LongPaths.ps1 This pair of scripts gets around the following (completely stupid and utterly embarassing for Microsoft in 2017) PowerShell limitation: Get-ChildItem : 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. + gci <<<< -recurse -force + CategoryInfo : ReadError: (C:\Temp\la la l...agsd - Copy (2):String) [Get-ChildItem], PathTooLongException + FullyQualifiedErrorId : DirIOError,Microsoft.PowerShell.Commands.GetChildItemCommand