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!!!!
$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!!!!
Powershell to get display name and internal name of SharePoint list columns
ReplyDeleteVery 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