Recently we were tasked with changing content types column settings to optional on a particular group, so when a migration happened it wouldn't require data to have information in columns. These groups had hundreds of columns within them and thus this script was born. It take some input from a user and check for all columns that are set to required and flip them to optional, while keeping a document of all the ones it's changed.
The script is available here To start with we've got some parameters to make sure we use when running the script:
[Parameter(Mandatory=$true, HelpMessage=
"URL to the content type hub"
)][string]$ctHubURL,
"Content type group you want to use"
)][string]$ctGroup,
"Location of export file e.g. C:\Temp"
)][string]$ctFileLocation
.\ContentTypeColumnSettings.ps
1
-ctHubURL
"http://contoso/sites/contenttypehub"
-ctGroup
"ContentType Group"
-ctFileLocation
"C:\Temp"