I have a custom SharePoint list, that has 3 fields, Title, UserName, Location. Can someone please point me in the right direction to write a simple script that will return the 3 columns for each Item in the list... I can return Title happily, but not UserName or Location.
So far I've Got:
$spsite = new-object Microsoft.SharePoint.SPSite("
http://SiteURL/")
$web = $spsite.OpenWeb() $list = $web.Lists["ListName"]
$list.Items | select Title
$list.Items | select Title, UserName, Location
BUT this doesn't return the extra columns.
All help gratefully received.
Russ