I need to update "Allowed Controls" field of placeholder using Sitecore Powershell. I have used below code -
$contentPlaceholder = Get-Item -Path "master:/sitecore/layout/Placeholder Settings/main"
$contentPlaceholder.Editing.BeginEdit()
$contentPlaceholder.Fields["Allowed Controls"].Value = "{ECACE287-B06E-4530-A4F6-B7FC34AA0FB0}"
$contentPlaceholder.Editing.BeginEdit()
But it is not working. Please suggest a solution.