TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
How to get all the links from the top link bar using powershell
Vijai Anand Ramalingam
Apr 21, 2011
3.7
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
In this blog we will be seeing how to get all the links from the top link bar using powershell
I 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.TopNavigationBar
foreach ($node in $nodeColl)
{
write-host $node.Title
}
How to get all the links from the top link bar using powershell
Next Recommended Reading
How to add a link to the top link bar in SharePoint using powershell