PowerShell Script to update Alt tag missing for Images
Hello everyone. I am back with another powershell script that can be very useful if you want to update alt tag missing for all images in sitecore.We all know, how important is alt tag from SEO perspective and that's why, this powershell script can come very handy when we have lot of missing alt tag for images. Below is the powershell script for your reference.The script is pretty simple to understand. $rootPathOfImages = "/sitecore/media library/Project/" $testMode = $false $secondsToWaitOnLimitError = 60 $successCount = 0 $errorCount = 0 $errorList = "" $date = Get-Date $formattedDate =$date.tostring('dd-mmm-yyyy-hhmmss') # List of template ids to exclude from processing $excludedTemplateIds = @( "{FE5DD826-48C6-436D-B87A-7C4210C7413B}", #media folder "{0603F166-35B8-469F-8123-E8D87BEDC171}", #pdf "{16692733-9A61-45E6-B0D4-4C0C06F8DD3C}", #doc "{7BB0411F-50CD-4C21-AD8F-1FCDE7C3AFFE}", #...