PowerShell

SharePoint Brunei User Group Monthly Gathering – March 2015

Posted on

I’m really happy to announce that i will be speaking at the SharePoint Brunei User Group in Brunei, March 31 2015. http://www.sharepointbrunei.net/

SPBUG_Mar2015

Advertisements

SharePoint 2013 Feature Packs

Posted on Updated on

Using below PowerShell script you can create SharePoint 2013 feature packs..here is the Technet Article Link .

#validate pre-reqs
$app = Get-SPServiceApplication |? {$_.TypeName -eq “Microsoft SharePoint Foundation Subscription Settings Service Application”}
if($app -eq $null){
“Settings Service Application must already exist”
exit;
}

#Create an alias for Add-SPSiteSubscriptionFeaturePackMember
Set-Alias AddFeature Add-SPSiteSubscriptionFeaturePackMember

# create a new feature pack, and store it in the Farm’s Property Bag
$ffp = New-SPSiteSubscriptionFeaturePack

# add foundation features to the feature pack

# web scoped features…
AddFeature -identity $ffp -FeatureDefinition  XmlFormLibrary
AddFeature -identity $ffp -FeatureDefinition  LinksList
AddFeature -identity $ffp -FeatureDefinition  WorkflowProcessList
AddFeature -identity $ffp -FeatureDefinition  GridList
AddFeature -identity $ffp -FeatureDefinition  WorkflowHistoryList
AddFeature -identity $ffp -FeatureDefinition  TeamCollab
AddFeature -identity $ffp -FeatureDefinition  GanttTasksList
AddFeature -identity $ffp -FeatureDefinition  PictureLibrary
AddFeature -identity $ffp -FeatureDefinition  IssuesList
AddFeature -identity $ffp -FeatureDefinition  DiscussionsList
AddFeature -identity $ffp -FeatureDefinition  ContactsList
AddFeature -identity $ffp -FeatureDefinition  ExternalList
AddFeature -identity $ffp -FeatureDefinition  TasksList
AddFeature -identity $ffp -FeatureDefinition  WebPageLibrary
AddFeature -identity $ffp -FeatureDefinition  AnnouncementsList
AddFeature -identity $ffp -FeatureDefinition  WikiPageHomePage
AddFeature -identity $ffp -FeatureDefinition  CustomList
AddFeature -identity $ffp -FeatureDefinition  DocumentLibrary
AddFeature -identity $ffp -FeatureDefinition  SurveysList
AddFeature -identity $ffp -FeatureDefinition  EventsList
AddFeature -identity $ffp -FeatureDefinition  DataSourceLibrary
AddFeature -identity $ffp -FeatureDefinition  NoCodeWorkflowLibrary
AddFeature -identity $ffp -FeatureDefinition  OsrvLinks
AddFeature -identity $ffp -FeatureDefinition  FCGroupsList
AddFeature -identity $ffp -FeatureDefinition  TenantAdminBDC
AddFeature -identity $ffp -FeatureDefinition  OssNavigation
AddFeature -identity $ffp -FeatureDefinition  IMEDicList
AddFeature -identity $ffp -FeatureDefinition  CallTrackList
AddFeature -identity $ffp -FeatureDefinition  SSSvcAdmin
AddFeature -identity $ffp -FeatureDefinition  MpsWebParts
AddFeature -identity $ffp -FeatureDefinition  GBWWebParts
AddFeature -identity $ffp -FeatureDefinition  FacilityList
AddFeature -identity $ffp -FeatureDefinition  ScheduleList
AddFeature -identity $ffp -FeatureDefinition  ObaProfilePages
AddFeature -identity $ffp -FeatureDefinition  GBWProvision
AddFeature -identity $ffp -FeatureDefinition  OSSSearchSearchCenterUrlFeature
AddFeature -identity $ffp -FeatureDefinition  WikiWelcome
AddFeature -identity $ffp -FeatureDefinition  MaintenanceLogs
AddFeature -identity $ffp -FeatureDefinition  TenantAdminLinks
AddFeature -identity $ffp -FeatureDefinition  HolidaysList
AddFeature -identity $ffp -FeatureDefinition  GroupWork
AddFeature -identity $ffp -FeatureDefinition  WhereaboutsList
AddFeature -identity $ffp -FeatureDefinition  CirculationList
AddFeature -identity $ffp -FeatureDefinition  TenantAdminSecureStore
AddFeature -identity $ffp -FeatureDefinition  SearchAdminWebParts
AddFeature -identity $ffp -FeatureDefinition  ObaSimpleSolution
AddFeature -identity $ffp -FeatureDefinition  TimecardList
AddFeature -identity $ffp -FeatureDefinition  WhatsNewList
AddFeature -identity $ffp -FeatureDefinition  MobilityRedirect
AddFeature -identity $ffp -FeatureDefinition  AdminLinks
AddFeature -identity $ffp -FeatureDefinition  SearchCenterLiteFiles
AddFeature -identity $ffp -FeatureDefinition  CorporateCatalog
AddFeature -identity $ffp -FeatureDefinition  BlogContent
AddFeature -identity $ffp -FeatureDefinition  PromotedLinksList
AddFeature -identity $ffp -FeatureDefinition  AppLockdown
AddFeature -identity $ffp -FeatureDefinition  AppRequestsList
AddFeature -identity $ffp -FeatureDefinition  SearchCenterUpgrade
AddFeature -identity $ffp -FeatureDefinition  SearchConfigFields
AddFeature -identity $ffp -FeatureDefinition  PhonePNSubscriber
AddFeature -identity $ffp -FeatureDefinition  SearchConfigContentType
AddFeature -identity $ffp -FeatureDefinition  GettingStarted
AddFeature -identity $ffp -FeatureDefinition  GettingStartedWithAppCatalogSite
AddFeature -identity $ffp -FeatureDefinition  ExternalSubscription
AddFeature -identity $ffp -FeatureDefinition  SearchCenterFiles
AddFeature -identity $ffp -FeatureDefinition  BcsEvents
AddFeature -identity $ffp -FeatureDefinition  OfficeExtensionCatalog
AddFeature -identity $ffp -FeatureDefinition  MDSFeature
AddFeature -identity $ffp -FeatureDefinition  TenantSearchAdmin
AddFeature -identity $ffp -FeatureDefinition  SiteAssets
AddFeature -identity $ffp -FeatureDefinition  PremiumSearchVerticals
AddFeature -identity $ffp -FeatureDefinition  AccessRequests
AddFeature -identity $ffp -FeatureDefinition  SearchConfigList
AddFeature -identity $ffp -FeatureDefinition  ReportAndDataSearch
AddFeature -identity $ffp -FeatureDefinition  MBrowserRedirect
AddFeature -identity $ffp -FeatureDefinition  BlogHomePage
AddFeature -identity $ffp -FeatureDefinition  SearchConfigListTemplate
AddFeature -identity $ffp -FeatureDefinition  SiteNotebook
AddFeature -identity $ffp -FeatureDefinition  HierarchyTasksList
AddFeature -identity $ffp -FeatureDefinition  BlogSiteTemplate
AddFeature -identity $ffp -FeatureDefinition  SearchCenterLiteUpgrade

# site scoped features…                                                                                                                                                                                              
AddFeature -identity $ffp -FeatureDefinition  BasicWebParts
AddFeature -identity $ffp -FeatureDefinition  OSSSearchEndUserHelpFeature
AddFeature -identity $ffp -FeatureDefinition  HelpLibrary
AddFeature -identity $ffp -FeatureDefinition  OfficeWebApps
AddFeature -identity $ffp -FeatureDefinition  WordServerViewing
AddFeature -identity $ffp -FeatureDefinition  OnenoteServerViewing
AddFeature -identity $ffp -FeatureDefinition  SiteHelp
AddFeature -identity $ffp -FeatureDefinition  ctypes
AddFeature -identity $ffp -FeatureDefinition  OSSSearchSearchCenterUrlSiteFeature
AddFeature -identity $ffp -FeatureDefinition  OpenInClient
AddFeature -identity $ffp -FeatureDefinition  ExcelServerEdit
AddFeature -identity $ffp -FeatureDefinition  AdminReportCore
AddFeature -identity $ffp -FeatureDefinition  fields
AddFeature -identity $ffp -FeatureDefinition  SearchServerWizardFeature
AddFeature -identity $ffp -FeatureDefinition  OSearchHealthReports
AddFeature -identity $ffp -FeatureDefinition  SearchWebParts
AddFeature -identity $ffp -FeatureDefinition  IssueTrackingWorkflow
AddFeature -identity $ffp -FeatureDefinition  ShareWithEveryone
AddFeature -identity $ffp -FeatureDefinition  MonitoredApps
AddFeature -identity $ffp -FeatureDefinition  SearchTaxonomyRefinementWebParts
AddFeature -identity $ffp -FeatureDefinition  SearchTaxonomyRefinementWebPartsHtml
AddFeature -identity $ffp -FeatureDefinition  SearchMaster
AddFeature -identity $ffp -FeatureDefinition  EnableAppSideLoading
AddFeature -identity $ffp -FeatureDefinition  Developer
AddFeature -identity $ffp -FeatureDefinition  AutohostedAppLicensing
AddFeature -identity $ffp -FeatureDefinition  AppRegistration

#Standard Feature Pack
$sfp = New-SPSiteSubscriptionFeaturePack
AddFeature -identity $sfp -FeatureDefinition AccSrvRestrictedList -ea SilentlyContinue                                                                                                                 
AddFeature -identity $sfp -FeatureDefinition AdminLinks -ea SilentlyContinue                                                                                                                           
AddFeature -identity $sfp -FeatureDefinition AdminReportCore -ea SilentlyContinue                                                                                                                      
AddFeature -identity $sfp -FeatureDefinition AnnouncementsList -ea SilentlyContinue                                                                                                                    
AddFeature -identity $sfp -FeatureDefinition AssetLibrary -ea SilentlyContinue                                                                                                                         
AddFeature -identity $sfp -FeatureDefinition BaseSite -ea SilentlyContinue                                                                                                                             
AddFeature -identity $sfp -FeatureDefinition BaseWeb -ea SilentlyContinue                                                                                                                              
AddFeature -identity $sfp -FeatureDefinition BasicWebParts -ea SilentlyContinue                                                                                                                        
AddFeature -identity $sfp -FeatureDefinition BDR -ea SilentlyContinue                                                                                                                                  
AddFeature -identity $sfp -FeatureDefinition CallTrackList -ea SilentlyContinue                                                                                                                        
AddFeature -identity $sfp -FeatureDefinition CirculationList -ea SilentlyContinue                                                                                                                      
AddFeature -identity $sfp -FeatureDefinition ContactsList -ea SilentlyContinue                                                                                                                         
AddFeature -identity $sfp -FeatureDefinition ContentTypeHub -ea SilentlyContinue                                                                                                                       
AddFeature -identity $sfp -FeatureDefinition ContentTypePublish -ea SilentlyContinue                                                                                                                   
AddFeature -identity $sfp -FeatureDefinition CTypes -ea SilentlyContinue                                                                                                                               
AddFeature -identity $sfp -FeatureDefinition CustomList -ea SilentlyContinue                                                                                                                           
AddFeature -identity $sfp -FeatureDefinition DataSourceLibrary -ea SilentlyContinue                                                                                                                    
AddFeature -identity $sfp -FeatureDefinition DeploymentLinks -ea SilentlyContinue                                                                                                                      
AddFeature -identity $sfp -FeatureDefinition DiscussionsList -ea SilentlyContinue                                                                                                                      
AddFeature -identity $sfp -FeatureDefinition DocId -ea SilentlyContinue                                                                                                                                
AddFeature -identity $sfp -FeatureDefinition DocumentLibrary -ea SilentlyContinue                                                                                                                      
AddFeature -identity $sfp -FeatureDefinition DocumentRouting -ea SilentlyContinue                                                                                                                      
AddFeature -identity $sfp -FeatureDefinition DocumentRoutingResources -ea SilentlyContinue                                                                                                             
AddFeature -identity $sfp -FeatureDefinition DocumentSet -ea SilentlyContinue                                                                                                                          
AddFeature -identity $sfp -FeatureDefinition EMailRouting -ea SilentlyContinue                                                                                                                         
AddFeature -identity $sfp -FeatureDefinition EnhancedTheming -ea SilentlyContinue                                                                                                                      
AddFeature -identity $sfp -FeatureDefinition EnterpriseWiki -ea SilentlyContinue                                                                                                                       
AddFeature -identity $sfp -FeatureDefinition EnterpriseWikiLayouts -ea SilentlyContinue                                                                                                                
AddFeature -identity $sfp -FeatureDefinition EventsList -ea SilentlyContinue                                                                                                                           
AddFeature -identity $sfp -FeatureDefinition ExpirationWorkflow -ea SilentlyContinue                                                                                                                   
AddFeature -identity $sfp -FeatureDefinition ExternalList -ea SilentlyContinue                                                                                                                         
AddFeature -identity $sfp -FeatureDefinition FacilityList -ea SilentlyContinue                                                                                                                         
AddFeature -identity $sfp -FeatureDefinition FCGroupsList -ea SilentlyContinue                                                                                                                         
AddFeature -identity $sfp -FeatureDefinition Fields -ea SilentlyContinue                                                                                                                               
AddFeature -identity $sfp -FeatureDefinition GanttTasksList -ea SilentlyContinue                                                                                                                       
AddFeature -identity $sfp -FeatureDefinition GBWProvision -ea SilentlyContinue                                                                                                                         
AddFeature -identity $sfp -FeatureDefinition GBWWebParts -ea SilentlyContinue                                                                                                                          
AddFeature -identity $sfp -FeatureDefinition GridList -ea SilentlyContinue                                                                                                                             
AddFeature -identity $sfp -FeatureDefinition GroupWork -ea SilentlyContinue                                                                                                                            
AddFeature -identity $sfp -FeatureDefinition HelpLibrary -ea SilentlyContinue                                                                                                                          
AddFeature -identity $sfp -FeatureDefinition Hold -ea SilentlyContinue                                                                                                                                 
AddFeature -identity $sfp -FeatureDefinition HolidaysList -ea SilentlyContinue                                                                                                                         
AddFeature -identity $sfp -FeatureDefinition IMEDicList -ea SilentlyContinue                                                                                                                           
AddFeature -identity $sfp -FeatureDefinition InPlaceRecords -ea SilentlyContinue                                                                                                                       
AddFeature -identity $sfp -FeatureDefinition IPFSTenantFormsConfig -ea SilentlyContinue                                                                                                                
AddFeature -identity $sfp -FeatureDefinition IPFSTenantWebProxyConfig -ea SilentlyContinue                                                                                                             
AddFeature -identity $sfp -FeatureDefinition IPFSWebFeatures -ea SilentlyContinue                                                                                                                      
AddFeature -identity $sfp -FeatureDefinition IssuesList -ea SilentlyContinue                                                                                                                           
AddFeature -identity $sfp -FeatureDefinition IssueTrackingWorkflow -ea SilentlyContinue                                                                                                                
AddFeature -identity $sfp -FeatureDefinition LegacyDocumentLibrary -ea SilentlyContinue                                                                                                                
AddFeature -identity $sfp -FeatureDefinition LegacyWorkflows -ea SilentlyContinue                                                                                                                      
AddFeature -identity $sfp -FeatureDefinition LinksList -ea SilentlyContinue                                                                                                                            
AddFeature -identity $sfp -FeatureDefinition LocalSiteDirectoryControl -ea SilentlyContinue                                                                                                            
AddFeature -identity $sfp -FeatureDefinition LocalSiteDirectoryMetaData -ea SilentlyContinue                                                                                                           
AddFeature -identity $sfp -FeatureDefinition LocalSiteDirectorySettingsLink -ea SilentlyContinue                                                                                                       
AddFeature -identity $sfp -FeatureDefinition LocationBasedPolicy -ea SilentlyContinue                                                                                                                  
AddFeature -identity $sfp -FeatureDefinition MetaDataNav -ea SilentlyContinue                                                                                                                          
AddFeature -identity $sfp -FeatureDefinition MobilityRedirect -ea SilentlyContinue                                                                                                                     
AddFeature -identity $sfp -FeatureDefinition MpsWebParts -ea SilentlyContinue                                                                                                                          
AddFeature -identity $sfp -FeatureDefinition MySiteBlog -ea SilentlyContinue                                                                                                                           
AddFeature -identity $sfp -FeatureDefinition MySiteHost -ea SilentlyContinue                                                                                                                           
AddFeature -identity $sfp -FeatureDefinition MySiteHostPictureLibrary -ea SilentlyContinue                                                                                                             
AddFeature -identity $sfp -FeatureDefinition MySiteLayouts -ea SilentlyContinue                                                                                                                        
AddFeature -identity $sfp -FeatureDefinition MySiteNavigation -ea SilentlyContinue                                                                                                                     
AddFeature -identity $sfp -FeatureDefinition MySitePersonalSite -ea SilentlyContinue                                                                                                                   
AddFeature -identity $sfp -FeatureDefinition MySiteQuickLaunch -ea SilentlyContinue                                                                                                                    
AddFeature -identity $sfp -FeatureDefinition Navigation -ea SilentlyContinue                                                                                                                           
AddFeature -identity $sfp -FeatureDefinition NavigationProperties -ea SilentlyContinue                                                                                                                 
AddFeature -identity $sfp -FeatureDefinition NoCodeWorkflowLibrary -ea SilentlyContinue                                                                                                                
AddFeature -identity $sfp -FeatureDefinition ObaProfilePages -ea SilentlyContinue                                                                                                                      
AddFeature -identity $sfp -FeatureDefinition ObaSimpleSolution -ea SilentlyContinue                                                                                                                    
AddFeature -identity $sfp -FeatureDefinition OffWFCommon -ea SilentlyContinue                                                                                                                          
AddFeature -identity $sfp -FeatureDefinition OpenInClient -ea SilentlyContinue                                                                                                                         
AddFeature -identity $sfp -FeatureDefinition OSearchHealthReports -ea SilentlyContinue                                                                                                                 
AddFeature -identity $sfp -FeatureDefinition OsrvLinks -ea SilentlyContinue                                                                                                                            
AddFeature -identity $sfp -FeatureDefinition OssNavigation -ea SilentlyContinue                                                                                                                        
AddFeature -identity $sfp -FeatureDefinition OSSSearchEndUserHelpFeature -ea SilentlyContinue                                                                                                          
AddFeature -identity $sfp -FeatureDefinition OSSSearchSearchCenterUrlFeature -ea SilentlyContinue                                                                                                      
AddFeature -identity $sfp -FeatureDefinition OSSSearchSearchCenterUrlSiteFeature -ea SilentlyContinue                                                                                                  
AddFeature -identity $sfp -FeatureDefinition PersonalizationSite -ea SilentlyContinue                                                                                                                  
AddFeature -identity $sfp -FeatureDefinition PictureLibrary -ea SilentlyContinue                                                                                                                       
AddFeature -identity $sfp -FeatureDefinition PortalLayouts -ea SilentlyContinue                                                                                                                        
AddFeature -identity $sfp -FeatureDefinition Publishing -ea SilentlyContinue                                                                                                                           
AddFeature -identity $sfp -FeatureDefinition PublishingLayouts -ea SilentlyContinue                                                                                                                    
AddFeature -identity $sfp -FeatureDefinition PublishingPrerequisites -ea SilentlyContinue                                                                                                              
AddFeature -identity $sfp -FeatureDefinition PublishingResources -ea SilentlyContinue                                                                                                                  
AddFeature -identity $sfp -FeatureDefinition PublishingSite -ea SilentlyContinue                                                                                                                       
AddFeature -identity $sfp -FeatureDefinition PublishingWeb -ea SilentlyContinue                                                                                                                        
AddFeature -identity $sfp -FeatureDefinition Ratings -ea SilentlyContinue                                                                                                                              
AddFeature -identity $sfp -FeatureDefinition RecordResources -ea SilentlyContinue                                                                                                                      
AddFeature -identity $sfp -FeatureDefinition RecordsCenter -ea SilentlyContinue                                                                                                                        
AddFeature -identity $sfp -FeatureDefinition RedirectPageContentTypeBinding -ea SilentlyContinue                                                                                                       
AddFeature -identity $sfp -FeatureDefinition RelatedLinksScopeSettingsLink -ea SilentlyContinue                                                                                                        
AddFeature -identity $sfp -FeatureDefinition ReportCenterSampleData -ea SilentlyContinue                                                                                                               
AddFeature -identity $sfp -FeatureDefinition Reporting -ea SilentlyContinue                                                                                                                            
AddFeature -identity $sfp -FeatureDefinition ReviewPublishingSPD -ea SilentlyContinue                                                                                                                  
AddFeature -identity $sfp -FeatureDefinition ReviewPublishingSPD1033 -ea SilentlyContinue                                                                                                              
AddFeature -identity $sfp -FeatureDefinition ReviewWorkflows -ea SilentlyContinue                                                                                                                      
AddFeature -identity $sfp -FeatureDefinition ReviewWorkflowsSPD -ea SilentlyContinue                                                                                                                   
AddFeature -identity $sfp -FeatureDefinition ReviewWorkflowsSPD1033 -ea SilentlyContinue                                                                                                               
AddFeature -identity $sfp -FeatureDefinition ScheduleList -ea SilentlyContinue                                                                                                                         
AddFeature -identity $sfp -FeatureDefinition SearchAdminWebParts -ea SilentlyContinue                                                                                                                  
AddFeature -identity $sfp -FeatureDefinition SearchServerWizardFeature -ea SilentlyContinue                                                                                                            
AddFeature -identity $sfp -FeatureDefinition SearchWebParts -ea SilentlyContinue                                                                                                                       
AddFeature -identity $sfp -FeatureDefinition SignaturesWorkflow -ea SilentlyContinue                                                                                                                   
AddFeature -identity $sfp -FeatureDefinition SignaturesWorkflowSPD -ea SilentlyContinue                                                                                                                
AddFeature -identity $sfp -FeatureDefinition SignaturesWorkflowSPD1033 -ea SilentlyContinue                                                                                                            
AddFeature -identity $sfp -FeatureDefinition SiteHelp -ea SilentlyContinue                                                                                                                             
AddFeature -identity $sfp -FeatureDefinition SitesList -ea SilentlyContinue                                                                                                                            
AddFeature -identity $sfp -FeatureDefinition SlideLibrary -ea SilentlyContinue                                                                                                                         
AddFeature -identity $sfp -FeatureDefinition SSSvcAdmin -ea SilentlyContinue                                                                                                                           
AddFeature -identity $sfp -FeatureDefinition SurveysList -ea SilentlyContinue                                                                                                                          
AddFeature -identity $sfp -FeatureDefinition TasksList -ea SilentlyContinue                                                                                                                            
AddFeature -identity $sfp -FeatureDefinition TaxonomyFieldAdded -ea SilentlyContinue                                                                                                                   
AddFeature -identity $sfp -FeatureDefinition TaxonomyTenantAdmin -ea SilentlyContinue                                                                                                                  
AddFeature -identity $sfp -FeatureDefinition TeamCollab -ea SilentlyContinue                                                                                                                           
AddFeature -identity $sfp -FeatureDefinition TenantAdminBDC -ea SilentlyContinue                                                                                                                       
AddFeature -identity $sfp -FeatureDefinition TenantAdminDeploymentLinks -ea SilentlyContinue                                                                                                           
AddFeature -identity $sfp -FeatureDefinition TenantAdminLinks -ea SilentlyContinue                                                                                                                     
AddFeature -identity $sfp -FeatureDefinition TenantAdminSecureStore -ea SilentlyContinue                                                                                                               
AddFeature -identity $sfp -FeatureDefinition TenantProfileAdmin -ea SilentlyContinue                                                                                                                   
AddFeature -identity $sfp -FeatureDefinition TimeCardList -ea SilentlyContinue                                                                                                                         
AddFeature -identity $sfp -FeatureDefinition TranslationWorkflow -ea SilentlyContinue                                                                                                                  
AddFeature -identity $sfp -FeatureDefinition TransMgmtLib -ea SilentlyContinue                                                                                                                         
AddFeature -identity $sfp -FeatureDefinition UpgradeOnlyFile -ea SilentlyContinue                                                                                                                      
AddFeature -identity $sfp -FeatureDefinition V2VPublishedLinks -ea SilentlyContinue                                                                                                                    
AddFeature -identity $sfp -FeatureDefinition V2VPublishingLayouts -ea SilentlyContinue                                                                                                                 
AddFeature -identity $sfp -FeatureDefinition ViewFormPagesLockDown -ea SilentlyContinue                                                                                                                
AddFeature -identity $sfp -FeatureDefinition WACentralAdminReports -ea SilentlyContinue                                                                                                                
AddFeature -identity $sfp -FeatureDefinition WAMaster -ea SilentlyContinue                                                                                                                             
AddFeature -identity $sfp -FeatureDefinition WAReports -ea SilentlyContinue                                                                                                                            
AddFeature -identity $sfp -FeatureDefinition WAWhatsPopularWebPart -ea SilentlyContinue                                                                                                                
AddFeature -identity $sfp -FeatureDefinition WebPageLibrary -ea SilentlyContinue                                                                                                                       
AddFeature -identity $sfp -FeatureDefinition WebPartAdderGroups -ea SilentlyContinue                                                                                                                   
AddFeature -identity $sfp -FeatureDefinition WhatsNewList -ea SilentlyContinue                                                                                                                         
AddFeature -identity $sfp -FeatureDefinition WhereaboutsList -ea SilentlyContinue                                                                                                                      
AddFeature -identity $sfp -FeatureDefinition WikiPageHomePage -ea SilentlyContinue                                                                                                                     
AddFeature -identity $sfp -FeatureDefinition WikiWelcome -ea SilentlyContinue                                                                                                                          
AddFeature -identity $sfp -FeatureDefinition WorkflowHistoryList -ea SilentlyContinue                                                                                                                  
AddFeature -identity $sfp -FeatureDefinition workflowProcessList -ea SilentlyContinue                                                                                                                  
AddFeature -identity $sfp -FeatureDefinition Workflows -ea SilentlyContinue                                                                                                                            
AddFeature -identity $sfp -FeatureDefinition XmlFormLibrary -ea SilentlyContinue

#Enterprise Feature Pack
$efp = New-SPSiteSubscriptionFeaturePack
AddFeature -identity $efp -FeatureDefinition PublishingStapling -ea SilentlyContinue 
AddFeature -identity $efp -FeatureDefinition SiteStatusBar -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition BasicWebParts -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition XmlFormLibrary -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition LinksList -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition workflowProcessList -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition GridList -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition WorkflowHistoryList -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition TeamCollab -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition GanttTasksList -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition PictureLibrary -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition IssuesList -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition DiscussionsList -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition ContactsList -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition ExternalList -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition TasksList -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition WebPageLibrary -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition AnnouncementsList -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition WikiPageHomePage -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition DataConnectionLibrary -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition CustomList -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition DocumentLibrary -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition SurveysList -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition EventsList -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition DataSourceLibrary -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition NoCodeWorkflowLibrary -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition FeaturePushdown -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition AutohostedAppLicensingStapling -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition ReviewWorkflows -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition MySiteQuickLaunch -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition EduAdminLinks -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition OSSSearchEndUserHelpFeature -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition MyTasksDashboardCustomRedirect -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition PPSMonDatasourceCtype -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition LocationBasedPolicy -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition BizAppsListTemplates -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition EnhancedTheming -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition OsrvLinks -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition HelpLibrary -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition SearchCenterLiteFiles -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition PremiumWeb -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition FCGroupsList -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition EduShared -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition UserProfileUserSettingsProvider -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition TenantSearchAdminStapling -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition OSearchHealthReportsPushdown -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition TenantAdminBDC -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition CorporateCatalog -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition Workflows -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition PPSSiteMaster -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition SlideLibrary -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition OfficeWebApps -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition DocumentRoutingResources -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition BlogContent -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition PremiumWebApplication -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition MySiteStorageDeployment -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition ContentLightup -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition MySiteCleanup -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition OssNavigation -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition ShareWithEveryone -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition VisioProcessRepositoryContentTypes -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition PageConverters -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition LocalSiteDirectoryControl -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition CrossSiteCollectionPublishing -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition IPFSTenantFormsConfig -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition SiteFeed -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition WordServerViewing -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition SearchEngineOptimization -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition docmarketplace -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition PromotedLinksList -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition ReviewPublishingSPD1033 -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition AccSrvUserTemplate -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition MonitoredAppsUI -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition IMEDicList -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition AccSrvApplication -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition SearchAndProcess -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition docmarketplacesampledata -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition MruDocsWebPart -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition DMContentTypeSettings -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition CmisProducer -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition PublishingTimerJobs -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition Publishing -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition AppLockdown -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition CallTrackList -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition EDiscoveryConsole -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition ReportListTemplate -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition BICenterDataconnectionsLib -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition AccSrvUSysAppLog -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition TransMgmtLib -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition CommunityPortal -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition SPSearchFeature -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition WorkflowServiceStore -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition MBrowserRedirectStapling -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition EduCommunitySite -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition WebPartAdderGroups -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition UpgradeOnlyFile -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition V2VPublishingLayouts -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition ProjectBasedPolicy -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition RedirectPageContentTypeBinding -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition GlobalWebParts -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition TenantProfileAdmin -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition AppRequestsList -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition MonitoredApps -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition SSSvcAdmin -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition ReportsAndDataFields -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition SearchCenterUpgrade -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition FastCentralAdminHelpCollection -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition EmailTemplates -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition BICenterSampleData -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition ItemFormRecommendations -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition MpsWebParts -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition BICenterFeatureStapler -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition CollaborationMailboxFarm -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition DocumentManagement -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition DocumentSet -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition ReviewWorkflowsSPD1033 -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition IPFSTenantWebProxyConfig -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition ExcelServerSite -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition GBWWebParts -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition OnenoteServerViewing -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition TenantProfileAdminStapling -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition AccSvcAddAccessAppStapling -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition BICenterDataConnections -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition BDR -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition ProductCatalogResources -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition TaxonomyFeatureStapler -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition MySiteUnifiedNavigation -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition EduInstitutionAdmin -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition SearchConfigFields -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition PhonePNSubscriber -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition BizAppsSiteTemplates -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition SocialSite -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition BizAppsCTypes -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition ProjectDiscovery -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition OSearchEnhancedFeature -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition PPSWorkspaceList -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition SearchConfigContentType -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition TaxonomyTimerJobs -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition SmallBusinessWebsite -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition MySiteHost -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition GettingStarted -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition AssetLibrary -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition ExcelServerWebPart -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition MyTasksDashboardStapling -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition GettingStartedWithAppCatalogSite -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition Translation -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition BaseWebApplication -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition EduDashboard -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition CollaborationMailbox -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition AccSvcApplication -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition SiteFeedController -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition NavigationProperties -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition AdminReportCorePushdown -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition docmarketplacesafecontrols -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition UPAClaimProvider -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition WorkflowTask -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition PublishingMobile -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition SiteHelp -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition FacilityList -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition RollupPageLayouts -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition SearchDrivenContent -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition MobileEwaFarm -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition BizAppsFields -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition ExternalSubscription -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition MediaWebPart -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition RecordResources -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition PPSDatasourceLib -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition SearchExtensions -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition TopicPages -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition MySiteHostPictureLibrary -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition PortalLayouts -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition ExchangeSync -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition VisioServer -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition SearchCenterFiles -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition BcsEvents -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition SpellChecking -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition OfficeExtensionCatalog -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition SiteFeedStapling -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition TenantAdminSecureStoreStapling -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition ScheduleList -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition MySiteInstantiationQueues -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition SlideLibraryActivation -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition SearchTaxonomyRefinementWebParts -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition ObaProfilePages -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition MySiteLayouts -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition CTypes -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition MySite -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition MySiteNavigation -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition SignaturesWorkflow -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition RecordsManagement -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition SPSBlogStapling -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition VideoAndRichMedia -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition LegacyDocumentLibrary -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition GBWProvision -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition FastEndUserHelpCollection -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition Reporting -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition SPSDisco -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition MetaDataNav -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition EduCommunityCustomSiteActions -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition TaxonomyFieldAdded -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition TopicPageLayouts -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition AccSrvSolutionGallery -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition IPFSAdminWeb -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition SocialRibbonControl -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition EnterpriseWiki -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition XmlSitemap -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition IfeDependentApps -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition ContentFollowing -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition OSSSearchSearchCenterUrlSiteFeature -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition OSSSearchSearchCenterUrlFeature -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition DocumentRouting -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition ViewFormPagesLockDown -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition ExchangeSyncSiteSubscription -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition TaxonomyTenantAdmin -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition EduWebApplication -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition VisioProcessRepositoryFeatureStapling -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition VisioProcessRepository -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition VisioProcessRepositoryUs -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition EduUserCache -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition AccSvcShell -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition EnhancedHtmlEditing -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition EduCourseCommunitySite -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition TransMgmtFunc -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition PPSSiteStapling -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition PremiumSite -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition MySiteBlog -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition MDSFeature -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition MossChart -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition ShareWithEveryoneStapling -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition MyTasksDashboard -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition Navigation -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition OpenInClient -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition MasterSiteDirectoryControl -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition SearchTemplatesandResources -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition WorkflowServiceStapler -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition SearchTaxonomyRefinementWebPartsHtml -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition RecordsManagementTenantAdminStapling -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition WikiWelcome -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition MaintenanceLogs -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition EduSearchDisplayTemplates -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition WAWhatsPopularWebPart -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition LocalSiteDirectoryMetaData -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition TaxonomyTenantAdminStapler -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition ObaProfilePagesTenantStapling -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition Ratings -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition SearchWebPartsStapler -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition EduMySiteHost -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition SkuUpgradeLinks -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition MembershipList -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition CommunitySite -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition EduInstitutionSiteCollection -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition BaseSiteStapling -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition TenantAdminLinks -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition TenantSearchAdmin -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition SiteAssets -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition TenantAdminDeploymentLinks -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition BaseWeb -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition ContentTypeHub -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition HolidaysList -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition OrganizationsClaimHierarchyProvider -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition GroupWork -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition SearchMaster -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition WhereaboutsList -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition Hold -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition PremiumSearchVerticals -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition SearchConfigTenantStapler -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition VisioWebAccess -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition IPFSWebFeatures -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition AccessRequests -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition ipfsAdminLinks -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition DownloadFromOfficeDotCom -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition EduCourseCommunity -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition PPSSiteCollectionMaster -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition SitesList -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition ContentFollowingList -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition BICenterPPSContentPages -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition PublishingPrerequisites -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition SignaturesWorkflowSPD1033 -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition ReviewPublishingSPD -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition EduStudyGroupCommunity -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition HtmlDesign -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition AccSrvRestrictedList -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition CirculationList -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition PremiumSiteStapling -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition CrossFarmSitePermissions -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition BICenterDataConnectionsListInstance -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition FollowingContent -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition EnterpriseWikiLayouts -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition EduMySiteCommunity -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition SPAppAnalyticsUploaderJob -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition SearchConfigList -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition PPSRibbon -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition EnableAppSideLoading -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition PublishingResources -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition BulkWorkflow -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition ProfileSynch -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition VisioProcessRepositoryContentTypesUs -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition BaseSite -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition SiteServicesAddins -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition MySiteSocialDeployment -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition ExcelServerEdit -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition ReportsAndDataListTemplates -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition DocId -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition ReviewWorkflowsSPD -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition TenantAdminBDCStapling -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition RecordsManagementTenantAdmin -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition SiteUpgrade -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition TenantAdminSecureStore -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition AdminReportCore -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition ReportAndDataSearch -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition OSearchBasicFeature -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition AccSrvShell -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition EduMembershipUI -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition EduCommunity -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition Preservation -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition EduAdminPages -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition SRPProfileAdmin -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition SignaturesWorkflowSPD -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition ManageUserProfileServiceApplication -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition ReportCenterSampleData -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition TranslationWorkflow -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition SearchAdminWebParts -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition AbuseReportsList -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition ExcelServerWebPartStapler -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition LegacyWorkflows -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition ExpirationWorkflow -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition IPFSSiteFeatures -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition OSearchCentralAdminLinks -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition OffWFCommon -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition DeploymentLinks -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition Fields -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition EduFarmWebApplication -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition ContentDeploymentSource -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition DataConnectionLibraryStapling -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition TranslationTimerJobs -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition ObaSimpleSolution -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition AddDashboard -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition AccSvcAddAccessApp -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition CategoriesList -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition PublishingLayouts -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition EMailRouting -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition TimeCardList -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition AccSrvSolutionGalleryStapler -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition WhatsNewList -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition MBrowserRedirect -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition QueryBasedPreservation -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition SPSBlog -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition BulkWorkflowTimerJob -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition InPlaceRecords -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition ContentTypePublish -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition ProductCatalogListTemplate -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition MySiteMicroBlogCtrl -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition RollupPages -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition SearchServerWizardFeature -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition RecordsCenter -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition ReportsAndDataCTypes -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition ContentFollowingStapling -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition ProjectFunctionality -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition Developer -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition BlogHomePage -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition SearchConfigListTemplate -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition ExcelServer -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition RelatedLinksScopeSettingsLink -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition EDiscoveryCaseResources -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition LocalSiteDirectorySettingsLink -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition MobileExcelWebAccess -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition MySiteDocumentLibrary -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition MySiteMicroBlog -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition MySiteUnifiedQuickLaunch -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition SearchWebParts -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition WorkflowAppOnlyPolicyManager -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition PersonalizationSite -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition OSearchPortalAdminLinks -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition StapledWorkflows -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition PPSWebParts -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition UserMigrator -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition SiteNotebook -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition SharedServices -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition MobilityRedirect -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition PPSWorkspaceCtype -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition V2VPublishedLinks -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition MySitePersonalSite -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition PublishingSite -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition CorporateCuratedGallerySettings -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition BICenterDashboardsLib -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition BICenterPPSWorkspaceListInstance -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition ObaStaple -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition HierarchyTasksList -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition AutohostedAppLicensing -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition SocialDataStore -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition BlogSiteTemplate -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition BICenterPPSNavigationLink -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition MySiteMaster -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition SearchCenterLiteUpgrade -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition ListTargeting -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition AppRegistration -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition IssueTrackingWorkflow -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition SiteSettings -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition ContentTypeSettings -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition AdminLinks -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition TaskListNewsFeed -ea SilentlyContinue
AddFeature -identity $efp -FeatureDefinition TemplateDiscovery -ea SilentlyContinue

$out = “foundationFeatures = “+$ffp.ID
$out = $out + “standardFeatures = “+$sfp.ID
$out = $out + “enterpriseFeatures = “+$efp.ID
$out | out-File “featurePacks.txt”

Hope this will helpful to you guys. HAPPY SCRIPTING Smile

Saving a list as a list template & creating lists from custom template using PowerShell

Posted on Updated on

  • To save list as a template use following code

$site = get-spsite("http://testsite")

$web = $site.RootWeb

$list = $web.Lists["Announcements"]

SharePoint $list.SaveAsTemplate() PowerShell Command use following parameters.

$list.SaveAsTemplate(“Template Name”,”Template Title”,”Template Description”,1)

In the forth parameter of SaveAsTemplate(), if you want to save the specified site as template along with data use 1, otherwise use 0.

Eg:- $list.SaveAsTemplate("TestListTemplate.stp", "TestListTemplate", "Test List Template", $false)

 

  • Creating a new list from the template created.

$listTemplates = $site.GetCustomListTemplates($web)

$web.Lists.Add("TestList", "Test List", $listTemplates["TestListTemplate"])