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:
- $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
- }
- }
- }
Thanks for learning..