Nagation is broken after upgrade from SharePoint 2007 to SharePoint 2010 with Dutch Language pack


During a SharePoint 2007 to SharePoint 2010 migrations with Dutch Language Packs you will encounter a broken navigation.

Microsoft has published a PowerShell script which is worthwhile to share with you!

$site = Get-SPSite("http://WebApplicationURL")
foreach ($web in $site.AllWebs)
{
  Write-Output("web:" + $web.ServerRelativeUrl);
  $pageslistid = $web.AllProperties["__PagesListId"]
  if ([String]::IsNullOrEmpty($pageslistid))
  {
    Write-Output($web.ServerRelativeUrl +" doesn't have a pages list id set - skipping");
  }
  else
  {
    $pageslistguid = new-object System.Guid($pageslistid)
    $pageslist = $web.Lists[$pageslistguid]
    $pagesurl = $pageslist.RootFolder.Url
    $pb = $web.Properties;
    $pb.Add("__PagesListName", $pagesurl);
    $pb.Update();
    Write-Output($web.ServerRelativeUrl +" set pages list to " + $pagesurl);
  }
}

Reference:

http://support.microsoft.com/kb/2484317