How to get all the links from the top link bar using powershellVijai Anand Ramalingam15yPublished Apr 21, 2011, 12:00 AMUpdated Apr 21, 2011, 7:52 AM4.3k00Reactions×25BlogI have a root site and three subsites. The three subsite links are added to the top link bar and here we are going to retrieve all the links available in the top link bar using powershell.$site=Get-SPSite "http://serverName:1111/sites/sample"$web=$site.OpenWeb()$nodeColl = $web.Navigation.TopNavigationBarforeach ($node in $nodeColl){ write-host $node.Title}CommentsJoin the conversation! Your thoughts help the community grow.Sign in to leave a commentIt is the same account you read, post and publish with — and you will come straight back to this page.Sign inCreate an account
Join the conversation! Your thoughts help the community grow.