Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Quickly disable Sitecore Analytic configs
$paths = @("C:\inetpub\wwwroot\Console\Website\App_Config\Include\*","C:\inetpub\wwwroot\Demo\Website\App_Config\Include\*")
$patterns = @("Sitecore.Analytics*.config", "Sitecore.ExperienceAnalytics*.config")
$paths | Get-ChildItem -Include $patterns -Recurse | Rename-Item -NewName { $PSItem.Name + ".disabled" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment