Steps
Start your Windows PowerShell on your computer.
Right click and select Run as administrator option.
Paste the below script on the PowerShell window and click the enter button.
Check your SharePoint site Feature will activate successfully.
- $web = Get-SPWeb -Identity http://gowtham.sharepoint.com/teams
- $list = $web.Lists["Tutorials"]
- foreach ($field in $list.Fields)
- {
- if ($field.Indexable)
- {
- if ($field.Indexed)
- { Write-Host "....Indexed Columns are Listed Below"
- Write-Host $field.Title
- }
- }
- }

Naveen KumarPosted Sep 9, 2018, 6:04 AM
Cannot get property value because "Indexed" is a write-only property.At line:5 char:13 + if ($field.Indexed) + ~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : WriteOnlyProperty Cannot get property value because "Indexed" is a write-only property. At line:5 char:13 + if ($field.Indexed) + ~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : WriteOnlyProperty PS C:\Users\spdadmin>