Want to become a Vibe Coder? Join Vibe Coding Training here
x
C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
How to get all the links from the top link bar using powershell
WhatsApp
Vijai Anand Ramalingam
14y
3.9
k
0
0
25
Blog
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
People also reading
Membership not found