Skip to content

Instantly share code, notes, and snippets.

@AlexKasaku
Created November 30, 2016 16:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlexKasaku/cff4b0629d05c123bbb929ec54c4483e to your computer and use it in GitHub Desktop.
Save AlexKasaku/cff4b0629d05c123bbb929ec54c4483e to your computer and use it in GitHub Desktop.
Delete Content Delivery files
#
# Takes a list of configuration files that should be disabled on a Content Delivery server and renames them with a
# .octopus_disabled suffix so they are not loaded.
#
# Prepared for Sitecore 8.1 Update 3
$baseFolder = "YOUR WEBSITE FOLDER"
$files = (
"App_Config\Include\001.Sitecore.Speak.Important.config",
"App_Config\Include\Sitecore.Analytics.Automation.TimeoutProcessing.config",
"App_Config\Include\Sitecore.Analytics.Oracle.config.disabled",
"App_Config\Include\Sitecore.Analytics.Processing.Aggregation.config",
"App_Config\Include\Sitecore.Analytics.Processing.Aggregation.Services.config",
"App_Config\Include\Sitecore.Analytics.Processing.config",
"App_Config\Include\Sitecore.Analytics.Processing.Services.config",
"App_Config\Include\Sitecore.Analytics.Reporting.config",
"App_Config\Include\Sitecore.ContentSearch.Lucene.Index.Master.config",
"App_Config\Include\Sitecore.ExperienceEditor.Speak.Requests.config",
"App_Config\Include\Sitecore.ExperienceExplorer.Speak.Requests.config",
"App_Config\Include\Sitecore.Marketing.Client.config",
"App_Config\Include\Sitecore.Marketing.Definitions.MarketingAssets.Repositories.Lucene.Index.Master.config",
"App_Config\Include\Sitecore.Marketing.Lucene.Index.Master.config",
"App_Config\Include\Sitecore.PathAnalyzer.Client.config",
"App_Config\Include\Sitecore.PathAnalyzer.config",
"App_Config\Include\Sitecore.PathAnalyzer.Processing.config",
"App_Config\Include\Sitecore.PathAnalyzer.Services.config",
"App_Config\Include\Sitecore.PathAnalyzer.StorageProviders.config",
"App_Config\Include\Sitecore.Processing.config",
"App_Config\Include\Sitecore.Shell.MarketingAutomation.config",
"App_Config\Include\Sitecore.Speak.AntiCsrf.SheerUI.config",
"App_Config\Include\Sitecore.Speak.Applications.config",
"App_Config\Include\Sitecore.Speak.ContentSearch.Lucene.config",
"App_Config\Include\Sitecore.Speak.Components.config",
"App_Config\Include\Sitecore.Speak.config",
"App_Config\Include\Sitecore.Speak.ItemWebApi.config",
"App_Config\Include\Sitecore.Speak.LaunchPad.config",
"App_Config\Include\Sitecore.Speak.Mvc.config",
"App_Config\Include\Sitecore.WebDAV.config",
"App_Config\Include\ContentTesting\Sitecore.ContentTesting.ApplicationDependencies.config",
"App_Config\Include\ContentTesting\Sitecore.ContentTesting.Lucene.IndexConfiguration.config",
"App_Config\Include\ContentTesting\Sitecore.ContentTesting.Processing.Aggregation.config",
"App_Config\Include\ExperienceAnalytics\Sitecore.ExperienceAnalytics.Aggregation.config",
"App_Config\Include\ExperienceAnalytics\Sitecore.ExperienceAnalytics.Client.config",
"App_Config\Include\ExperienceAnalytics\Sitecore.ExperienceAnalytics.Reduce.config",
"App_Config\Include\ExperienceAnalytics\Sitecore.ExperienceAnalytics.StorageProviders.config",
"App_Config\Include\ExperienceAnalytics\Sitecore.ExperienceAnalytics.WebAPI.config",
"App_Config\Include\ExperienceProfile\Sitecore.ExperienceProfile.Client.config",
"App_Config\Include\ExperienceProfile\Sitecore.ExperienceProfile.config",
"App_Config\Include\ExperienceProfile\Sitecore.ExperienceProfile.Reporting.config",
"App_Config\Include\FXM\Sitecore.FXM.Lucene.DomainsSearch.Index.Master.config",
"App_Config\Include\FXM\Sitecore.FXM.Speak.config",
"App_Config\Include\ListManagement\Sitecore.ListManagement.Client.config",
"App_Config\Include\ListManagement\Sitecore.ListManagement.config",
"App_Config\Include\ListManagement\Sitecore.ListManagement.Lucene.Index.List.config",
"App_Config\Include\ListManagement\Sitecore.ListManagement.Lucene.IndexConfiguration.config",
"App_Config\Include\ListManagement\Sitecore.ListManagement.Services.config",
"App_Config\Include\Social\Sitecore.Social.ExperienceProfile.config",
"App_Config\Include\Social\Sitecore.Social.Lucene.Index.Master.config",
"sitecore\shell\Applications\Reports\Dashboard\CampaignCategoryDefaultSettings.config",
"sitecore\shell\Applications\Reports\Dashboard\Configuration.config",
"sitecore\shell\Applications\Reports\Dashboard\DefaultSettings.config",
"sitecore\shell\Applications\Reports\Dashboard\SingleCampaignDefaultSettings.config",
"sitecore\shell\Applications\Reports\Dashboard\SingleTrafficTypeDefaultSettings.config",
"bin\Sitecore.ExperienceAnalytics.dll",
"bin\Sitecore.ExperienceAnalytics.Client.dll",
"bin\Sitecore.ExperienceAnalytics.ReAggregation.dll"
)
foreach ( $file in $files ) {
$oldPath = Join-Path $baseFolder $file
if (!(Test-Path $oldPath)) {
Write-Host "Could not find $oldPath. Ignoring."
continue
}
$newPath = Join-Path $baseFolder ($file + ".octopus_disabled")
Move-Item $oldPath $newPath -ErrorAction Continue -Force
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment