How to get the SUM of Item Count from "Media" library in all site collections(more than 100) in SP2010 using JavaScript(or any other way).

I've more than 100 site collections and each site collection has Media library, each Media library has 'n' number of items.

Here I want to get the count for all Media files in all site collection in a web application.

Thanks in advance.

1 Answer 1


It is not possible through the as that only operates on the site collection it gets executed from.

You can achieve what you want using C#/VB or powershell.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.