Skip to content

Instantly share code, notes, and snippets.

@RobsonAutomator
Created February 15, 2018 15:31
Show Gist options
  • Save RobsonAutomator/825d8641d7be9b026746b33ba38b60cb to your computer and use it in GitHub Desktop.
Save RobsonAutomator/825d8641d7be9b026746b33ba38b60cb to your computer and use it in GitHub Desktop.
Bulk update Sitecore license
#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