• Go to your media library and switch to the ‘List View’

  • Then under ‘Screen Options’ bump up the ‘Number of items per page’ to a big number

Screen shot of wordpress media screen

  • Right click to ‘View Page Source, then save it somewhere on your computer

  • Run the following in PowerShell

foreach ($line in select-string filename .\upload.php | Sort-Object -Property line ) {
    $line.line.split(">")[3].split("<")[0]
}

This gives you a list that looks like this:

Screen shot of powershell list