i need help with readonly content type on list.
I have sitecollection ex. "sites/SC".
In that sitecollection i have 1000 subwebs ex. "sites/SC/web1".
In each subweb i have one document library ex. "DOCS" (all subwebs are same).
In that library "DOCS" i have content type "Document" and that content type is set to readonly=True (need to be readonly=False).
After that i need to change one field in that list content type from Required=True to Required=False and set that list content type back to Readonly=True.
Need powershell script which:
- loop all subwebs
- get list by name
- get list CT by name
- if list CT readonly is set to true, set readonly to false
- get CT field by name
- if field Required is set to true, change Required to false
- change CT back to readonly=true
- proceed to next subweb
Thanks