Skip to content

Instantly share code, notes, and snippets.

@rsenk
Created February 15, 2018 15:29
Show Gist options
  • Save rsenk/ffc83914aa1c45a965b882a1e3517011 to your computer and use it in GitHub Desktop.
Save rsenk/ffc83914aa1c45a965b882a1e3517011 to your computer and use it in GitHub Desktop.
Bulk update Sitecore licenses
#requires -RunAsAdministrator
# Update all licenses
# You can find more about automation with Powershell on http://lets-share.senktas.net
$iisRoot = "C:\inetpub\wwwroot"
$licenseFile = "C:\license.xml"
(Get-ChildItem -Path $iisRoot -Filter 'license.xml' -Recurse).DirectoryName | % { Copy-Item -Path $licenseFile -Destination $_ -Verbose}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment