Tag Info

New answers tagged

0

You can use GetType() method $web.GetType().Name If it is web it gives you SPWeb otherwise SPSite Edit $currentSite = Get-SPSite -Identity $siteFollowed.Uri.AbsoluteUri if($currentSite.GetType().Name -eq "SPSite" ...



Top 50 recent answers are included