SharePoint 2010 and 2013 PowerShell script for showing list columns

clear
$site= New-Object Microsoft.SharePoint.SPSite (“http://domain/site/”)
$web=$site.OpenWeb()
$list=$web.Lists[“listName”]
$list.Fields |select ID, title, internalname,type | more

Leave a Reply

Your email address will not be published. Required fields are marked *