
$site=Get-SPSite "http://serverName:1111/sites/sample"
$web=$site.OpenWeb()
$nodeColl = $web.Navigation.TopNavigationBar
foreach ($node in $nodeColl)
{
write-host $node.Title
}
In this blog we will be seeing how to get all the links from the top link bar using powershell

DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegisterMembers onlyeBook · SharePointSharePoint Online And Office 365 AdministrationDownload nowWrite a blog post and earn +250 SHARP when it is approved.
Write a blog
Join the conversation! Your thoughts help the community grow.