none
How to remove "Get started with your site"

    Question

  • Hello,

    I am in the process of automating the creation of a site collection using PowerShell. Everything works fine but I would like to remove or hide the "Get started with your site" that we see the first time we open a site. Deactivating the Getting started feature will not remove it.

    Friday, March 20, 2015 5:31 PM

Answers

  • Figured it out

    used $spWeb.GetLimitedWebPartManager to list the wp

    then used $spWebPartManager.DeleteWebPart

    • Marked as answer by Mike Logan Thursday, March 26, 2015 3:55 PM
    Thursday, March 26, 2015 3:55 PM

All replies

    • Remove the "Get started with your web site" web part, after deactivating the feature. 
    • It is a promoted links app that you can remove.  See this article: Promoted Links App in SharePoint 2013

    General

    Friday, March 20, 2015 7:09 PM
  • I am trying this using PS so it's easier said than done. What is the name of the getting started feature? For some reason I can't find it when I do get-spfeature for both site and web.
    • Marked as answer by Mike Logan Thursday, March 26, 2015 3:54 PM
    • Unmarked as answer by Mike Logan Thursday, March 26, 2015 3:54 PM
    Friday, March 20, 2015 8:01 PM
  • Figured it out

    used $spWeb.GetLimitedWebPartManager to list the wp

    then used $spWebPartManager.DeleteWebPart

    • Marked as answer by Mike Logan Thursday, March 26, 2015 3:55 PM
    Thursday, March 26, 2015 3:55 PM
  • For other readers, here's the full script needed:

    # First, get a reference to the target web app:
    
    $web = Get-SPWeb "[TargetSiteURL]"
    
    # Assuming that 1) the web page file that you want to examine is 
    # the default landing page and 2) Publishing has been activated 
    # for the containing site collection, the following gets you a 
    # reference to the web part manager:
    
    $wpm = $web.GetLimitedWebPartManage("pages/default.aspx", [System.Web.UI.WebControls.WebParts.PersonalizationScope]::Shared).WebParts
    
    # Note the "pages" in the path.  Next, the following lists out 
    # all web parts on this page:
    
    $web.GetLimitedWebPartManager("pages/default.aspx",[System.Web.UI.WebControls.WebParts.PersonalizationScope]::Shared).WebParts
    
    # Review this list, and then identify the PartOrder of the web 
    # part you want to remove.  It its, say, its "5", you get a 
    # reference to web part like so: 
    
    $wp = $wpm.WebParts[5]
    
    # Now delete the web part:
    
    $wp.DeleteWebPart
    
    # and close the web app reference:
    
    $web.Close()

    It's easier to remove the web part directly from the page, while it's in edit mode, but then the scripted method also works when automation is needed.


    Thursday, March 26, 2015 4:31 PM
  • Not necessary and not the right answer. Why is is marked as an answer anyway? Who makes decisions on those things?

    All you have to do is to go to Site Settings/Manage Site Features and deactivate "Getting Started" feature. Not sure why MS ever decided to release such a makeshift solution (removing the WP from the page should work) or why people on this thread quote PowerShell commands, while the solution does not require PowerShell at all.


    Saturday, August 18, 2018 10:31 PM
  • That's "awesome". Is there a Github project dedicated to answering that question with a full PS script with unit tests?
    Saturday, August 18, 2018 10:32 PM