Skip to content

Instantly share code, notes, and snippets.

@michaellwest
Last active August 29, 2015 14:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaellwest/18e2707fca903a2ed382 to your computer and use it in GitHub Desktop.
Save michaellwest/18e2707fca903a2ed382 to your computer and use it in GitHub Desktop.
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