A family of Microsoft on-premises document management and storage systems.
Hi @Priyansh gupta ,
I notice you have post a thread before, you could use this command to iterate all site collections:
$SPWebApp = Get-SPWebApplication http://portal
foreach ($SPSite in $SPWebApp.Sites)
{
if ($SPSite -ne $null)
{
}
}
Reference:
Powershell script to iterate all site collections
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.