
You can change the SharePoint list’s field properties by going to list settings and can change the properties. I am sharing PowerShell Script to change the field properties for SharePoint lists I am using PnP PowerShell script:
#connect to sharepoint online site
Connect-PnPOnline -Url "https://mstalk.sharepoint.com" -Interactive
$fieldName = "Email"
$listName = "ContactDetils"
#get the current web
$spWeb = Get-PnPWeb
#this will update the SharePoint list property
if($spWeb -ne $null)
{
#fetch the list field
$spField = Get-PnPField -List $listName -identity $fieldName
#This will update the field to
$spField.required = $true
$spField.update()
$spField.context.executeQuery()
}






No Comments