Enable Team Collaboration Lists Feature via PowerShell - SharePoint 2013

I need to enable the Team Collaboration Lists feature across the mysites 2013 web application that we have. I want our server team to do this programatically through powershell. I really have no experience with powershell but I think what we need is the
feature name.
Is there anyone that can provide assistance on this?
Thanks!
-Kyle

DO something like:
$WebApp = Get-SPWebApplication "http://<url of my site host root>"
for($i = 0; $i < $WebApp.Sites.Count; $i++)
       $site = $WebApp.Sites[$i]
for($j = 0; $j < site.Webs.Count; $j++)
$web = $site.Webs[$j]
$teamList = Get-SPFeature | Where{$_.Id -eq "00bfea71-4ea5-48d4-a4ad-7ea5c011abe5"}
Enable-SPFeature -Url $web.Url -Identity $teamList
$web.Dispose()
$site.Dispose()
Nikolas Charlebois-Laprade Microsoft Certified Professional Software Engineer and Senior SharePoint Advisor http://nikcharlebois.com

Similar Messages

  • Activate "Team Collaboration Lists" feature by power shell script - Error

    Hello,
     I have written the following script to activate "Team Collaboration List" feature , But I get the following Error :
       The string is missing the terminator: ".
        + CategoryInfo          : ParserError: (:) [], ParseException
        + FullyQualifiedErrorId : TerminatorExpectedAtEndOfString
     The Script :
    $siteUrl = "http://serverName:2020"
    if ((Get-PSSnapin "Microsoft.SharePoint.PowerShell" -ErrorAction SilentlyContinue) -eq $null) 
        Add-PSSnapin "Microsoft.SharePoint.PowerShell"
    Enable-SPFeature -identity "00bfea71-4ea5-48d4-a4ad-7ea5c011abe5" –URL $subSiteURL
       How Can I solve it?
    ASk

    Hi,
    The dash in front of the “URL” seems a bit different from the normal dash.
    Please try the script below in your environment:
    Enable-SPFeature -identity "00bfea71-4ea5-48d4-a4ad-7ea5c011abe5" -URL $subSiteURL
    Feel free to reply with the test result if the issue still exists.
    Best regards
    Patrick Liang
    TechNet Community Support

  • How enable Security Section and Features on pwa sharepoint 2013

    Dear Friends
    how enable all Features "Security Section and Features" on site project server 2013 "PWA" SITE
    I did Type Command
    set-spprojectpermissionmode
    Mode ProjectServer and Mode sharepoint
    but Not appear Security Section in PWA Settings
    how im Fix a Problem :(( Tanks a milion

    Hi Tahere,
    I understand that you want to know how to enable all properties pwa setting like this Database Admin in PWA Setting.
    However, it is better to have one question one thread, then it will help others who have the same question as the original one can solve their problem too.
    In the meanwhile, as this issue is regarding to Project Server, I recommend to post your issue in Project forum:
    https://social.technet.microsoft.com/Forums/office/en-US/home?forum=projserv2010setup.
    More experts will assist you, then you will get more information relation to Project server.
    In addition, if you think the answer above is helpful, please mark it as an answer and it will help others who have the same issue.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Custom HTML Master Page not updating when activating Feature via PowerShell

    I created a WSP to deploy a HTML Master Page.  I later have code that will publish this Master Page to create a .master, but I stripped this out just to simplify things.  My issue is with the first step - getting the HTML Master Page file to
    update by activating the feature using PowerShell.  I don't understand why it's not working - I'm not even using this Master Page currently.  Plus, oddly the master page does update if I go into the UI and deactivate/activate my feature. 
    I can easily reproduce this problem using the following steps:
    1. Created a SharePoint Empty Project named SharePointProject1
    2. Added a Module named Module1
    3. Added a HTML Master Page called MyMaster.html and updated the elements.xml file for the Module1 with the following:
     <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
      <Module Name="Module1" Url="_catalogs/masterPage/Test">
        <File Path="Module1\MyMaster.html" Url="MyMaster.html" ReplaceContent="TRUE" Level="Published" Type="GhostableInLibrary">
          <Property Name="Title" Value="My Master Page" />
          <Property Name="MasterPageDescription" Value="My Master Page" />
          <Property Name="UIVersion" Value=";#15;#" />
          <Property Name="HtmlDesignAssociated" Value="TRUE" />
          <Property Name="ContentType" Value="Html Master Page" />
        </File>
      </Module>
    </Elements>
    4. Deployed the WSP and activated the Feature containing Module1
    5. Updated the HTML Master Page
    6. Re-deployed the WSP
    7. Deactivated the feature and Reactivated the feature using PowerShell 
         => _catalogs/masterpage/test folder still has OLD file - Why??
        $deployFeatureId = "575ec423-1b20-404c-8b2c-d160426c53e7"
        Disable-SPFeature -Identity $deployFeatureId -Url
    http://sp2013local -confirm:$false
        Enable-SPFeature -Identity $deployFeatureId -Url
    http://sp2013local
    8. Deactivated the feature and Reactivated the feature through UI
         => _catalogs/masterpage/test folder now has the correct file
    I even added event receiver code to delete the HTML file on deactivation but that still didn't work.

    Hi Sagar,
    The second link isn't applicable for me because I'm not setting the Master Page for the site collection just yet.  I'm just trying to get the version to be correct in the master page library first.
    For the first link, I am trying to publish a Master Page, not a Page Layout.  I did try adding some similar code that I found from this article,
    http://www.eliostruyf.com/provision-your-html-designs-master-pages-page-layouts-to-sharepoint-2013/
    but the same result.  PowerShell is still copying an old version of the file to the Master Page Gallery, but the activating/deactivating the feature in the UI works fine. 
    Here is my code:
    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
      <Module Name="Module1" Url="_catalogs/masterPage/Test">
        <File Path="Module1\MyMaster.html" Url="MyMaster.html" ReplaceContent="TRUE" Level="Draft" Type="GhostableInLibrary">
        </File>
      </Module>
    </Elements>
        public class Feature1EventReceiver : SPFeatureReceiver
            public override void FeatureActivated(SPFeatureReceiverProperties properties)
                SPSite site = (SPSite)properties.Feature.Parent;
                PublishMasterPage(site, "/_catalogs/masterpage/Test/MyMaster.html");
            public void PublishMasterPage(SPSite site, string filePath)
                SPFile file = site.RootWeb.GetFile(filePath);
                if (file.CheckOutType != SPFile.SPCheckOutType.None)
                    file.Item.Update();
                else
                    file.CheckOut();
                    file.Item.Update();
                file.CheckIn("Checked in by the branding deploy feature", SPCheckinType.MajorCheckIn);
                if (file.DocumentLibrary.EnableModeration)
                    file.Approve("Approved by the branding deploy feature");

  • Custom List Form creation using Powershell - SharePoint 2013

    Hi,
    I have a custom List called 'IssuesList' with 4 fields - "IssueTitle","IssueID","IssueDesc","Status"
    While displaying display form I should show 3 fields expect Issue ID i.e. IssueID should be hidden.
    and on edit form only Status field should be editable. So using SharePoint designer I created respective Edit form and display forms and changed XSLT to control the display mode on the fields.
    I have everything scripted in powershell till now - creation of custom list, publishing pages, webparts etc. however I am looking for how to provision or associate these 2 list forms with IssuesList after I create the list in new site.
    I have restrictions on using wsp and site/list template due to business needs. So I need to know if there is any way I can upload these 2 files after I create custom list in powershell and associate them as defaultdisplay and defauteditforms?
    Please advise.

    Hi,
    Per my understanding, you might need to apply these custom forms to a list after list creation using PowerShell.
    With PowerShell with SharePoint Object Model, we can hide fields on list forms.
    The similar thread below with code snippet will provide more information about this:
    https://social.technet.microsoft.com/Forums/en-US/ee6fc2eb-197f-4144-94fa-8a4e438675d9/hide-a-field-from-edit-form-list?forum=sharepointgeneralprevious
    If there may be other requirements except for hiding fields, as you have limitation on using custom solution package(which should be preferable in such scenario),
    a workaround I can provide is that, after list creation, you can add Content Editor Web Part contains the CSS style or JavaScript to the form pages of a specific list, it will help you hide/disable the specific elements, this can be achieved programmatically.
    The code below can add a Content Editor Web Part to the DisplayForm of a list(though in C#):
    public static void AddCEWP()
    SPLimitedWebPartManager manager = null;
    SPFile file = null;
    using (SPSite site = new SPSite("http://sp"))
    using (SPWeb web = site.RootWeb)
    try
    web.AllowUnsafeUpdates = true;
    file = web.GetFile(web.Url + "/Lists/List018/DispForm.aspx");
    manager = file.GetLimitedWebPartManager(PersonalizationScope.Shared);
    ContentEditorWebPart webPart = new ContentEditorWebPart();
    XmlDocument xmlDoc = new XmlDocument();
    XmlElement xmlElement = xmlDoc.CreateElement("HtmlContent");
    //xmlElement.InnerText = "<strong>Hello World!</strong>";
    //write the custom CSS style or JavaScript here
    string content = "<style>your custom style here...</style>";
    xmlElement.InnerText = content;
    webPart.Content = xmlElement;
    manager.AddWebPart(webPart, "Top", 0);
    manager.SaveChanges(webPart);
    web.Update();
    catch (Exception ex)
    //Utility.SPTraceLogError(ex);
    finally
    if (manager != null)
    manager.Dispose();
    web.AllowUnsafeUpdates = false;
    About how to hide fields on Standard List Forms using jQuery:
    http://social.technet.microsoft.com/wiki/contents/articles/21730.sharepoint-2010-conditionally-hide-fields-on-standard-list-forms-using-jquery.aspx
    http://stackoverflow.com/questions/10010405/how-to-hide-a-field-in-sharepoint-display-form-based-on-the-field-name-jquery
    Thanks
    Patrick Liang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support,
    contact [email protected]
    Patrick Liang
    TechNet Community Support

  • Remove various accepted domains (exchange 2007) from a list file via powershell

    hello!
    i'm a newbie with powershell and i'm trying to find if is it possible to remove a lot of exchange 2007 accepted domains from a csv file using powershell.
    I want to delete accepted domains contained in a csv, it has only domains name and powershell requires the name , that is different from the domain.
    example of accepted domain in my organization:
    Name                           DomainName                DomainType            Default
    Domain0001        
    domain1.com     Authoritative         False 
    Domain0002 hello1.com
    Authoritative False
    I've only a csv with domains name:
    domain.csv:
    Domain
    domain1.com
    hello1.com
    Deleting an accepted domain via powershell requires the name so I need to extract first the name of , i've tried with this command and it works:
    Get-AcceptedDomain | Where{$_.DomainName -eq 'domain1.com'}
    This works only for 1 domain, I've a lot of domains to delete so it's inviable
    Now, i'm trying to launch this command without success:
    import-csv domain.csv | foreach {Get-AcceptedDomain | Where{$_.DomainName -eq '$_.Domain'}}
    Probably there is a syntax error, or maybe I just can't do it. 
    Any help? 
    Many thanks in advance!!

    Don't know what to tell you, then.  If I create a test file with that data, the Import-CSV works for me:
    Domain
    3414257440.domain.com
    domain1.domain.com
    '@ | set-content c:\testfiles\domain.csv
    $DomainNames =
    Import-CSV 'c:\testfiles\domain.csv' |
    Select -ExpandProperty Domain
    $DomainNames
    3414257440.domain.com
    domain1.domain.com
    [string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "

  • List Custom filter in SharePoint 2013

    I recently upgraded my company's SharePoint 2010 site to SharePoint 2013. Now users are complaining for the List Custom Filter box that was available in SharePoint 2010 but is missing in SharePoint 2013.
    Is there a possibility to activate that feature in SharePoint 2013 in any way?

    Hi Alex,
    You can use Key filters to filter the list items per date entries.
    1. Go to Site settings --> activate 'Metadata Navigation and Filtering' feature.
    2. Go to List settings -->click 'Metadata navigation settings' under 'General Settings' -->Select the desired columns under 'Configure Key Filters' and click 'OK'.
    Please note:
    Fields that are available for use as navigation hierarchies include columns on this list that are one of the following types:
    - Content Type
    - Choice Field
    - Managed Metadata Field
    - Person or Group Field
    - Date and Time Field
    - Number Field
    Hope this info helps you!
    Thanks & Regards, Richlibran

  • Enable report view for anonymous acess in sharepoint 2013

    Hi everyone, I hava a problem with rendered reports in .rdlx files from power gallery in sharepoint 2013. My site is enabled for anonymous access but when I try to see a report in anonymous mode ,I have to specify the credentials to see that report.
    I hope your help , best regards!

    Hi Regolie,
    PowerPivot for SharePoint 2013 and Reporting Services Power View do not support anonymous authentication. So, anonymous authentication must not be enabled for Web apps that host PowerPivot workbooks and Power View reports. This authentication method is disabled
    by default.
    I strongly recommend you take a look at the following document regarding Microsoft BI Authentication and Identity Delegation, please see:
    http://download.microsoft.com/download/D/2/0/D20E1C5F-72EA-4505-9F26-FEF9550EFD44/MSFTBIAuthOverview.docx
    Regards,
    Elvis Long
    TechNet Community Support

  • Display a Teams's Outook 2010 Calendar in SharePoint 2013

    Hi
    I have been running some tests with my users but instead of a seeing an Outlook Team calendar to be overlaid with a team site calendar, I am seeing either personal calendar or simply busy status in multiple events ( depending on share access).
    Overlay Outlook Cal in SharePoint
    Click on the Calendar Overlay ribbon button.
    Fill in the :
    Name: Give a name to this calendar
    Type: Select Exchange
    Outlook Web Access URL: the OWA url of your organization.
    Exchange Web Service URL: which can be determined as follows:
    Is the calendar share in  Outlook not integrated correctly I wonder as I clearly connect to Outlook but not able to select the desired team Calendar.  If it is a infrastructure issue I need to be clear as I will impact the team who manages Exchange.
    SharePoint Calendar Connect to Outlook Ribbon button
    Initially disabled until I remembered the copy settings url workaround but this simply publishes the team cal in Outlook.

    You can't use the Outlook Web Part Calendar in SharePoint 2013, I have been experimenting with the Page viewer
    Actually you can use it if you don't need Exchange Online!
    Make sure you have user profile service application in a good state. Go to Site Setting, then Web Design Galleries -> Web parts -> Files -> New Document -> New
    Select all the "Microsoft.SharePoint.Portal.WebControls.OWA..." parts and click on "Populate Gallery" on the top.
    Now you can insert OWACalendarPart into your SharePoint 2013 pages! Here is a screenshot of my meeting room shown in SharePoint 2013. Don't forget to give "Reviewer" rights on room's calendar to all users and I believe you have to login into meeting room's
    OWA by yourself (once) to get rid off annoying starting screen.

  • Application Configuration List (key/value) in SharePoint 2013

    What is the best way to have a application configuration list in SharePoint 2013? Think of a SharePoint portal with around 50 key/value pairs that needs to be configured
    (Similar to configuration manager that we had as part of Microsoft patterns and practices library - These libraries are not yet updated for SharePoint 2013)
    pratap R

    As a quick answer, you may go with hidden list -
    link, however what is your environment (O365/On Prem). Site property Bag also another way. Actually it depends on situation and NFRs.
    Regards Sudip Misra [email protected] +1-412-237-5435 Pittsburgh, PA

  • Error when running workflow form list item - workflow manager SharePoint 2013

    I am getting the following error in the workflow services log when I tried to run a SPD 2013 workflow from as list item. The workflow page comes up with an "An unexpected error has occurred"
    page when opened:
    Error processing management request. Method: GET, RequestUri: http://servername:12291/$Workflows/$Instances?$skip=0&$top=100&monitoringParameter=1f51aa43-2f1c-4fc5-a86d-f638ca57c00d, Error: System.Data.SqlClient.SqlException (0x80131904): The procedure "GetInstances" has no parameter named "@OtherWorkflowStatus".
    at Microsoft.Workflow.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
    at Microsoft.Workflow.Gateway.HttpAsyncResult.End[TAsyncResult](IAsyncResult result)
    at Microsoft.Workflow.Gateway.WorkflowServiceGateway.<>c__DisplayClass9d.<EndGetInstances>b__9c()
    at Microsoft.Workflow.Gateway.WorkflowServiceGateway.ExceptionFilter[T](Func`1 body)
    at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
    ClientConnectionId:d2039360-b352-4d81-9bb7-b647e2938d06
    Can't find anything on google.
    Edit: Ok, when I look at the error, it is saying the the "GetInstances" stored procedure in the WFInstanceManagementDB database does not have a parameter named "@OtherWorkflowStatus".
    For laughs, I added the parameter (which wasn't in there). Now I get the error:
    Procedure or function 'GetInstances' expects parameter '@OtherWorkflowStatus', which was not supplied
    It seems like there is something not right about my installation. Previously, I couldn't get the workflow backend service to run because there were config values missing from the workflow manager database. At the time I tried to uninstall/reinstall
    WFM to no avail. I eventually had to manually add the values to get it to work. Something is not right about the WFM install/config process.

    Here is what I had to do to get it working:
    Leave the WFM (Workflow Manager) farm using the WFM config tool
    Uninstall WFM, Service Bus, and the CU's from control panel
    Uninstall Workflow Manager Client if it exists in the control panel, it didn't in mine
    Delete the following databases in SQL Server:
    SbGatewayDatabase
    SbManagementDB
    SBMessageContainer01
    WFInstanceManagementDB
    WFManagementDB
    WFResourceManagementDB
    Delete the workflow proxy service in Central Admin (important)
    Application Management > Manage Service Applications
    Highlight (select) the Workflow Service Application Proxy service (don’t click the hyperlink)
    Select “Delete” from the ribbon.
    Restart the server
    Reinstall
    Enable the workflow proxy service in CA for the web app, the 2013 workflow option will not show up in SPD unless you do this.
    Application Management > Manage Web Applications
    Select your web app
    Select “Service Connections” from the ribbon
    Check the Workflow Service Application Proxy item and click “OK”

  • How to get site workflow tasks not list workflow tasks in SharePoint 2013 programatically ?

    i want to customize wrkstat.aspx based on site workflow not list workflow, so i want to filter section of tasks view to filtering based on site workflow, i made this to list workflow and i cannot do that to site workflow.
    Please advise me.
    Thanks.

    Hi Ramakrishnan,
    you can use the below code to post comments in newsfeed. I think this will helps you.
    var feedManagerEndpoint;  
    // Get the SPAppWebUrl parameter from the query string and build  
    // the feed manager endpoint.  
    $(document).ready(function () {  
        var appweburl;  
        var params = document.URL.split("?")[1].split("&");  
        for (var i = 0; i < params.length; i = i + 1) {  
            var param = params[i].split("=");  
            if (param[0] === "SPAppWebUrl") appweburl = param[1];  
        feedManagerEndpoint = decodeURIComponent(appweburl)+ "/_api/social.feed";  
        postToMyFeed();  
    // Publish a post to the current user's feed by using the   
    // "<app web URL>/_api/social.feed/my/Feed/Post" endpoint.  
    function postToMyFeed() {  
        $.ajax( {  
            url: feedManagerEndpoint + "/my/Feed/Post",  
            type: "POST",  
            data: JSON.stringify( {   
                'restCreationData':{  
                    '__metadata':{   
                        'type':'SP.Social.SocialRestPostCreationData'  
                    'ID':null,   
                    'creationData':{   
                        '__metadata':{   
                            'type':'SP.Social.SocialPostCreationData'  
                    'ContentText':'This post was published using REST.',  
                    'UpdateStatusText':false  
            headers: {   
                "accept": "application/json;odata=verbose",  
                "content-type":"application/json;odata=verbose",  
                "X-RequestDigest": $("#__REQUESTDIGEST").val()  
            success: getMyFeed,  
            error: function (xhr, ajaxOptions, thrownError) {   
                alert("POST error:\n" + xhr.status + "\n" + thrownError);  

  • Cannot delete Document Content Type. Getting error "Document Content Type Still in use" powershell, sharepoint 2013

    not able to delete "Document" content type from a library. I have a custom content type. I have added the custom content type to all the items of library. also, i have added the custom columns from "Document" content type to my custom
    content type. Still cannot delete the "Document" content type. I am doing the same process in different site collections and different libraries. But not able to delete in a few say- 10 in 100. Get the error - "Document content type is still
    in use"

    Hello 
    Here you go
    http://blog.octavie.nl/index.php/2012/09/14/error-the-content-type-is-in-use-explained
    https://social.technet.microsoft.com/Forums/en-US/e81020e3-2c12-4f39-a2f4-f1fd88ba6547/content-type-is-still-in-use-on-document-library
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Sharepoint 2013 some List Templates missing in add an app

    I am using sharepoint 2013. I uploaded 13 list templates in gallery but i can view only 8 templates other templates are missing when i am clicking
    add an app. Whats wrong this? Thanks in advance.

    Hi,
    According to your description, you uploaded 13 list templates in gallery,
    some List Templates were not visible on add an app page.
    Let us verify the following:
    What kind of template you used for the Site, publishing or Team?
    Did you activate the Team Collaboration Lists feature at the site?
    Compare the difference between the 13 list templates you uploaded in gallery. Probably these list templates are using different site definitions.
    Here are two links similar with your issue , you can take a look at:
    http://sharepointfarmer.com/deployed-list-template-is-not-visible-on-add-and-app-page-on-create/
    http://www.go4sharepoint.com/Forum/uploaded-list-templates-not-appear-15885.aspx
    Best Regards
    Lisa Chen

  • List teamplate (template created on migrated custom list from SP 2010 to 2013) not appearing in Add an app section in SP 2013

    We have migrated from SP 2010 to SP 2013. When we are trying to create list template from the migrated OOB custom list. List template successfully created but it is not appearing in Add an app section in SP 2013.

    Please make sure you have activated "Team Collaboration Lists" feature under Site Features. Also check if the template in the list template gallery is published.

Maybe you are looking for