Assuming I have 100 Sites in a collection, and a document library named "Phones" on every site, how can I use PowerShell to add the same document from my PC to every one of those libraries named "Phones" on each site?

I've seen a lot of different examples for adding a document to a single library but I'm not positive how to expand on that.

SharePoint Foundation 2010.

1 Answer 1


If it were me, I'd put the document in one place, and then add a link to the document from each library. That way, when the document changes, you only have to change it in one place.

That said, you should be able to wrap the "add" function in an iterator that cycles through all the sites in your site collection.

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.