Use Get-ChildItem to get all desired file types. Sort by filename extension and then by file size, if you like; use Format-Table to group by filename extension, which will separate the different file types into their own sub-tables. That output won't be suitable for an HTML report; you could look at our free ebook, "Creating HTML Reports in Windows PowerShell," to produce more attractive HTML than ConvertTo-HTML will do by itself.
↧