I have following powershell:
$webUrl = 'http://demo2010a:90/sites/Contracts'
$web = Get-SPWeb $webUrl;
$lists = $web.GetListsOfType($SPBaseTypeDocumentLibrary);
foreach ($list in $lists)
{
$folders = $list.Folders
foreach ($spFolder in $folders)
{
#$item = $spFolder.Item
$item = [Microsoft.SharePoint.SPListItem]::$spFolder.Item
if ($item -eq $null)
{
Write-Host "Null found"
}
else
{
}
}
}
$web.Dispose()
The problem is I can't seem to get SPListItem from SPFolder
