Is it possible to loop through every site via powershell and set the default document library to all owned sites (including Team sites) to be read-only for everyone but the owners? I've seen and tried a lot of code but I cannot get it to work.
I only want the Team Owner to be able to create documents.
Thank you.