
$site=Get-SPSite "http://serverName:1111/sites/sample"
$web=$site.OpenWeb("Subsite3")
$nodeColl = $web.ParentWeb.Navigation.TopNavigationBar
$node=New-Object Microsoft.SharePoint.Navigation.SPNavigationNode($web.Title, $web.ServerRelativeUrl)
$nodeColl.AddAsLast($node)

Join the conversation! Your thoughts help the community grow.