Powershell Snippet: Get unused media items
This is one of the most common scripts I have seen being used as is requested by clients. The known caveat here being – this only brings back all media referenced using their IDs alone – in image fields or in rich text fields. Here’s the reference