I'm writing a little Powershell script that connects to a sharepoint website and i'm trying to get the items on a list. here's my code:
$Context = New-Object Microsoft.SharePoint.Client.ClientContext($SiteURL)
$SitePassword = ConvertTo-SecureString $SitePwd -AsPlainText -Force
$Creds = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($SiteUser,$SitePassword)
$Context.Credentials = $Creds
$web = $Context.Web
$Context.Load($web)
$Context.ExecuteQuery()
$List = $Context.Web.Lists.GetByTitle('Déposes')
$Context.Load($List)
$Context.ExecuteQuery()
But now i'm stuck with this $List Object and I can't find a way through, for now, I just want to display my list's items.
Thanks!
The following example demonstrates how to retrieve list items using SharePoint CSOM API in PowerShell: