Is there a way to update a SharePoint 2010 list entry using PowerShell without using the SharePoint client? If so, how?
To get the desired fields, I would:
$url = 'http://myserver/resource/_vti_bin/ListData.svc/TheList(1234)?$select=Id,Title,StartingDate,Hours'
$webRequest = Invoke-WebRequest -Uri $url -Method Get -UseDefaultCredentials
[xml]$xml = $webRequest.Content
$properties = $xml.feed.entry.content.properties
$properties | Format-Table -Property Id,Title,StartingDate,EndingDate,Hours
I would like to modify the EndingDate
and Hours
fields.