Monday 19 June 2017

Powershell to get display name and internal name of SharePoint list columns

Below is the Powershell script to get column information from SharePoint list to .csv file.

$url = "Your SharePoint Site URL"
$listName = "List Name"
$path ="c:\Columns.csv"

$web = Get-SPWeb $url
$list = $web.Lists.TryGetList($listName)
$list.Fields | select Title, InternalName |  Export-Csv -path $path

Hope this helps!!!!

1 comment:

  1. Powershell to get display name and internal name of SharePoint list columns

    Very interesting post...! Good to know about the powershell to get display name & internal name of sharepoint list columns....

    Well, read our blog - Top 5 Reasons for Hiring Best SharePoint Developers in 2021

    Hire Best SharePoint Developers

    ReplyDelete

Related Posts Plugin for WordPress, Blogger...