0
I want to get web part XML from SharePoint Web Parts Gallery(not locally) for add webpart into a List page. This is my code: $spWeb = Get-SPWeb $webURL $spSiteCollection = Get-SPWeb -Identity $spWeb.Site.Url $pubWeb = [Microsoft.SharePoint.Publishing.PublishingWeb]::GetPublishingWeb($spSiteCo...