I am using Powershell to iterate through items in a document library and when I am running the ISE debugger there are no items in my list. I can see that the list is recognized, but I do not see any items.
Here's what I am attempting:
$site = New-Object Microsoft.SharePoint.SPSite("https://site")
$web = $site.OpenWeb()
$docLib = $web.GetList("https://site/docs")
# $docLib.Items is blank
$items = $docLib.Items
Any ideas? Thank you!
