Skip to main content
Removed DataSourceLibrary, Reporting, and XmlFormLibrary from list of possible features
Source Link
James Grizzle
  • 2.6k
  • 4
  • 38
  • 62
      DisplayName                    Id                                       Scope  
      -----------                    --                                       -----  
##    DocumentRoutingResources       0c8a9a47-22a9-4798-82f1-00e62a96006e     Site      
##    WebPartAdderGroups             2ed1c45e-a73b-4779-ae81-1524e4de467a     Site   
####  PremiumSite                    8581a8a7-cf16-4770-ac54-260265ddb0b2     Site     
##    FastEndUserHelpCollection      6e8f2b8d-d765-4e69-84ea-5702574c11d6     Site     
##    VisioWebAccess                 9fec40ea-a949-407d-be09-6cba26470a0c     Site     
####  BizAppsSiteTemplates           4248e21f-a816-4c88-8cab-79d82201da7b     Site     
##    PortalLayouts                  5f3b0127-2f1d-4cfd-8dd2-85ad1fb00bfc     Site      
##    ExcelServerWebPart             4c42ab64-55af-4c7c-986a-ac216a6e0c0e     Site   
####  BizAppsCTypes                  43f41342-1a37-4372-8ca0-b44d881e4434     Site   
##    LocationBasedPolicy            063c26fa-3ccc-4180-8a84-b6f98e991df3     Site   
##    RecordResources                5bccb9a4-b903-4fd1-8620-b795fa33c9ba     Site     
##    IPFSSiteFeatures               c88c4ff1-dbf5-4649-ad9f-c6c426ebcbf5     Site   
####  BizAppsFields                  5a979115-6b71-45a5-9881-cdc872051a69     Site   
##    MobileExcelWebAccess           e995e28b-9ba8-4668-9933-cf5c146d7a9f     Site   
####  MossChart                      875d1044-c0cf-4244-8865-d2a0039c2a49     Site   
##    ExcelServerSite                3cb475e7-4e87-45eb-a1f3-db96ad7cf313     Site   
##    AccSrvSolutionGallery          744b5fd3-3b09-4da6-9bd1-de18315b045d     Site   
##    SearchExtensions               5eac763d-fbf5-4d6f-a76b-eded7dd7b0a5     Site   
#     Reporting                      7094bd89-2cfe-490a-8c7e-fbace37b4a34     Site




      DisplayName                    Id                                       Scope  
      -----------                    --                                       -----     
####  BizAppsListTemplates           065c78be-5231-477e-a972-14177cc5b3c7     Web     
####  PremiumWeb                     0806d127-06e6-447a-980e-2e90b03101b8     Web     
####  ReportListTemplate             2510d73f-7109-4ccc-8a1c-314894deeb3a     Web       
##    RelatedLinksScopeSettingsLink  e8734bb6-be8e-48a1-b036-5a40ff0b8a81     Web      
##    SlideLibrary                   0be49fe9-9bc9-409d-abf9-702753bd878d     Web        
#     DataSourceLibrary              00bfea71-f381-423d-b9d1-da7a54c50110     Web    
##    DataConnectionLibrary          00bfea71-dbd7-4f72-b8cb-da7ac0440130     Web      
#     XmlFormLibrary                 00bfea71-1e1d-4562-b56a-f05371bb0115     Web    
#     IPFSWebFeatures                a0e5a010-1329-49d4-9e09-f280cdbed37d     Web
      DisplayName                    Id                                       Scope  
      -----------                    --                                       -----  
##    DocumentRoutingResources       0c8a9a47-22a9-4798-82f1-00e62a96006e     Site      
##    WebPartAdderGroups             2ed1c45e-a73b-4779-ae81-1524e4de467a     Site   
####  PremiumSite                    8581a8a7-cf16-4770-ac54-260265ddb0b2     Site     
##    FastEndUserHelpCollection      6e8f2b8d-d765-4e69-84ea-5702574c11d6     Site     
##    VisioWebAccess                 9fec40ea-a949-407d-be09-6cba26470a0c     Site     
####  BizAppsSiteTemplates           4248e21f-a816-4c88-8cab-79d82201da7b     Site     
##   PortalLayouts                  5f3b0127-2f1d-4cfd-8dd2-85ad1fb00bfc     Site      
##    ExcelServerWebPart             4c42ab64-55af-4c7c-986a-ac216a6e0c0e     Site   
####  BizAppsCTypes                  43f41342-1a37-4372-8ca0-b44d881e4434     Site   
##    LocationBasedPolicy            063c26fa-3ccc-4180-8a84-b6f98e991df3     Site   
##    RecordResources                5bccb9a4-b903-4fd1-8620-b795fa33c9ba     Site     
##    IPFSSiteFeatures               c88c4ff1-dbf5-4649-ad9f-c6c426ebcbf5     Site   
####  BizAppsFields                  5a979115-6b71-45a5-9881-cdc872051a69     Site   
##    MobileExcelWebAccess           e995e28b-9ba8-4668-9933-cf5c146d7a9f     Site   
####  MossChart                      875d1044-c0cf-4244-8865-d2a0039c2a49     Site   
##    ExcelServerSite                3cb475e7-4e87-45eb-a1f3-db96ad7cf313     Site   
##    AccSrvSolutionGallery          744b5fd3-3b09-4da6-9bd1-de18315b045d     Site   
##    SearchExtensions               5eac763d-fbf5-4d6f-a76b-eded7dd7b0a5     Site   
#     Reporting                      7094bd89-2cfe-490a-8c7e-fbace37b4a34     Site




      DisplayName                    Id                                       Scope  
      -----------                    --                                       -----     
####  BizAppsListTemplates           065c78be-5231-477e-a972-14177cc5b3c7     Web     
####  PremiumWeb                     0806d127-06e6-447a-980e-2e90b03101b8     Web     
####  ReportListTemplate             2510d73f-7109-4ccc-8a1c-314894deeb3a     Web       
##    RelatedLinksScopeSettingsLink  e8734bb6-be8e-48a1-b036-5a40ff0b8a81     Web      
##    SlideLibrary                   0be49fe9-9bc9-409d-abf9-702753bd878d     Web        
#     DataSourceLibrary              00bfea71-f381-423d-b9d1-da7a54c50110     Web    
##    DataConnectionLibrary          00bfea71-dbd7-4f72-b8cb-da7ac0440130     Web      
#     XmlFormLibrary                 00bfea71-1e1d-4562-b56a-f05371bb0115     Web    
#     IPFSWebFeatures                a0e5a010-1329-49d4-9e09-f280cdbed37d     Web
      DisplayName                    Id                                       Scope  
      -----------                    --                                       -----  
##    DocumentRoutingResources       0c8a9a47-22a9-4798-82f1-00e62a96006e     Site      
##    WebPartAdderGroups             2ed1c45e-a73b-4779-ae81-1524e4de467a     Site   
####  PremiumSite                    8581a8a7-cf16-4770-ac54-260265ddb0b2     Site     
##    FastEndUserHelpCollection      6e8f2b8d-d765-4e69-84ea-5702574c11d6     Site     
##    VisioWebAccess                 9fec40ea-a949-407d-be09-6cba26470a0c     Site     
####  BizAppsSiteTemplates           4248e21f-a816-4c88-8cab-79d82201da7b     Site     
##    PortalLayouts                  5f3b0127-2f1d-4cfd-8dd2-85ad1fb00bfc     Site      
##    ExcelServerWebPart             4c42ab64-55af-4c7c-986a-ac216a6e0c0e     Site   
####  BizAppsCTypes                  43f41342-1a37-4372-8ca0-b44d881e4434     Site   
##    LocationBasedPolicy            063c26fa-3ccc-4180-8a84-b6f98e991df3     Site   
##    RecordResources                5bccb9a4-b903-4fd1-8620-b795fa33c9ba     Site     
##    IPFSSiteFeatures               c88c4ff1-dbf5-4649-ad9f-c6c426ebcbf5     Site   
####  BizAppsFields                  5a979115-6b71-45a5-9881-cdc872051a69     Site   
##    MobileExcelWebAccess           e995e28b-9ba8-4668-9933-cf5c146d7a9f     Site   
####  MossChart                      875d1044-c0cf-4244-8865-d2a0039c2a49     Site   
##    ExcelServerSite                3cb475e7-4e87-45eb-a1f3-db96ad7cf313     Site   
##    AccSrvSolutionGallery          744b5fd3-3b09-4da6-9bd1-de18315b045d     Site   
##    SearchExtensions               5eac763d-fbf5-4d6f-a76b-eded7dd7b0a5     Site   



      DisplayName                    Id                                       Scope  
      -----------                    --                                       -----     
####  BizAppsListTemplates           065c78be-5231-477e-a972-14177cc5b3c7     Web     
####  PremiumWeb                     0806d127-06e6-447a-980e-2e90b03101b8     Web     
####  ReportListTemplate             2510d73f-7109-4ccc-8a1c-314894deeb3a     Web       
##    RelatedLinksScopeSettingsLink  e8734bb6-be8e-48a1-b036-5a40ff0b8a81     Web      
##    SlideLibrary                   0be49fe9-9bc9-409d-abf9-702753bd878d     Web          
##    DataConnectionLibrary          00bfea71-dbd7-4f72-b8cb-da7ac0440130     Web        
#     IPFSWebFeatures                a0e5a010-1329-49d4-9e09-f280cdbed37d     Web
added 517 characters in body
Source Link
James Grizzle
  • 2.6k
  • 4
  • 38
  • 62
$siteFeatures = @("feature_ID1",`
    "feature_ID2",`
    "feature_IDetc")

$webFeatures = @("feature_ID1",`
        "feature_ID2",`
        "feature_IDetc")

Get-SPWebApplication "http://sp2010" | Get-SPWebSPSite -Limit ALL |
ForEach-Object {
   ForEach-Object $thisSiteURL = $_.Url
    foreach($web in $_.AllWebs) {
       Disable $thisWebURL = $_.Url
        foreach ($webFeature in $webFeatures) {
            if (Get-SPFeature "8581a8a7-cf16-4770Web  $thisWebURL | Where {$_.ID -ac54eq $webFeature})
                {
                    Disable-260265ddb0b2"SPFeature $webFeature -Url $_.Url -confirm:$falseWhatIf
       ##Disable         Write-SPFeatureHost other"Feature features..." + $webFeature + " has been deactivated at :" $thisWebURL
                }
        }
Get-SPWebApplication "http://sp2010" |  }
    foreach ($siteFeature in $siteFeatures) {
        if (Get-SPSiteSPFeature -LimitSite ALL $thisWebURL |
ForEach Where {$_.ID -Objecteq $siteFeature})
            {
                Disable-SPFeature "0806d127-06e6-447a-980e-2e90b03101b8"$siteFeature -Url $_.Url -confirm:$falseWhatIf
   ##Disable         Write-SPFeatureHost other"Feature features..." + $siteFeature + " has been deactivated at :" $thisSiteURL
            }
    }
}
Get-SPWebApplication "http://sp2010" | Get-SPWeb -Limit ALL |
    ForEach-Object {
       Disable-SPFeature "8581a8a7-cf16-4770-ac54-260265ddb0b2" -Url $_.Url -confirm:$false
       ##Disable-SPFeature other features...
    }

Get-SPWebApplication "http://sp2010" | Get-SPSite -Limit ALL |
ForEach-Object {
   Disable-SPFeature "0806d127-06e6-447a-980e-2e90b03101b8" -Url $_.Url -confirm:$false
   ##Disable-SPFeature other features...
}
$siteFeatures = @("feature_ID1",`
    "feature_ID2",`
    "feature_IDetc")

$webFeatures = @("feature_ID1",`
        "feature_ID2",`
        "feature_IDetc")

Get-SPWebApplication "http://sp2010" | Get-SPSite -Limit ALL |
ForEach-Object {
    $thisSiteURL = $_.Url
    foreach($web in $_.AllWebs) {
        $thisWebURL = $_.Url
        foreach ($webFeature in $webFeatures) {
            if (Get-SPFeature -Web  $thisWebURL | Where {$_.ID -eq $webFeature})
                {
                    Disable-SPFeature $webFeature -Url $_.Url -WhatIf
                Write-Host "Feature " + $webFeature + " has been deactivated at :" $thisWebURL
                }
        }
    }
    foreach ($siteFeature in $siteFeatures) {
        if (Get-SPFeature -Site  $thisWebURL | Where {$_.ID -eq $siteFeature})
            {
                Disable-SPFeature $siteFeature -Url $_.Url -WhatIf
            Write-Host "Feature " + $siteFeature + " has been deactivated at :" $thisSiteURL
            }
    }
}
added 87 characters in body
Source Link
James Grizzle
  • 2.6k
  • 4
  • 38
  • 62

I am having a hard time determining which features to include in the removal process. Additionally, I am struggling to determine the order in which they should be removed. Could you please help me determine these two things? I included a list of suspect features on a typical site on this web app. In the list below, # means that I suspicious that the feature in question is enterprise, ## means that I have read that it is an enterprise feature, #### means that the feature is disabled if you disable enterprise features from the GUI. Once I have determined which features need to be disabled, I will need to use a script to loop through each web and site to disable these features. The script will likely look like this:

I am having a hard time determining which features to include in the removal process. I included a list of suspect features on a typical site on this web app. In the list below, # means that I suspicious that the feature in question is enterprise, ## means that I have read that it is an enterprise feature, #### means that the feature is disabled if you disable enterprise features from the GUI. Once I have determined which features need to be disabled, I will need to use a script to loop through each web and site to disable these features. The script will likely look like this:

I am having a hard time determining which features to include in the removal process. Additionally, I am struggling to determine the order in which they should be removed. Could you please help me determine these two things? I included a list of suspect features on a typical site on this web app. In the list below, # means that I suspicious that the feature in question is enterprise, ## means that I have read that it is an enterprise feature, #### means that the feature is disabled if you disable enterprise features from the GUI. Once I have determined which features need to be disabled, I will need to use a script to loop through each web and site to disable these features. The script will likely look like this:

Source Link
James Grizzle
  • 2.6k
  • 4
  • 38
  • 62
Loading