After migration from 2007>2010>2013 for all lists ImageUrl property is still on 2007. If someone have powershell script which updates all lists on site SPList.ImageUrl property from SP2007 version to SP2013 version that will be great :)
I have this right now on SP2013 for all lists.
SPList.ImageUrl property for SP2007
/_layouts/images/lttask.gif
And i need update ImageUrl for all web, sub web and lists on web app that i get this
SPList.ImageUrl property for SP2013
/_layouts/15/images/ittask.png?rev=23
This powershell is only for one list.
if ( (Get-PSSnapin -Name Microsoft.SharePoint.Powershell -ErrorAction SilentlyContinue) -eq $null )
{
Add-PsSnapin Microsoft.SharePoint.Powershell -ErrorAction SilentlyContinue
Write-Host "PSSnapin for SharePoint is now ON" -ForegroundColor Green `n
}
else{
Write-Host "PSSnapin for SharePoint already ON" -ForegroundColor Magenta `n
}
$web = Get-SPWeb http://SITE
$list = $web.Lists["Test"]
$list.ImageUrl = "/_layouts/15/images/itann.png?rev=23"
$list.Update()
I need powershell script for all lists on web app which will change /_layouts/images/ittask.gif
into /_layouts/15/images/ittask.png?rev=23
.
Image names are different for lists (ittask,ltgen...)
Thank you ;)