none
PowerShell script to add the WebPart on Page.

    Question

  • Hi ,

    How to add 

      

    <?xml version="1.0" encoding="utf-8"?>
    <WebPart xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/WebPart/v2">
      <Title>Welcome</Title>

      .................

      <Assembly>Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c</Assembly>
      <TypeName>Microsoft.SharePoint.WebPartPages.ContentEditorWebPart</TypeName>
      <ContentLink xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor" />
      <Content xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor"><![CDATA[
                    Welcome
                  ]]></Content>
      <PartStorage xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor" />
    </WebPart>

    Webpart file on the page with powershell.

    Thanks,

    Wednesday, July 03, 2013 4:44 AM

Answers

All replies