How to get the list of List and Document library item counts in SharePoint online using Pnp Powershell ?
Hello SharePointers, Below are the powershell commands to get the list of List and Document library item counts in SharePoint online using Pnp Powershell . $siteurl = “https://organisation.sharepoint.com/sites/selfservice/” $credentials = Get-Credential Connect-PnPOnline -Url $siteurl -Credentials $credentials $Subsites= Get-PnPSubWebs $ListItemCollection = @() Write-Host “Subsite count is ” $Subsites.Count ” in the site” foreach ($subsite in $Subsites) […]