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 add a link to the top link bar in SharePoint using powershell
WhatsApp
Vijai Anand Ramalingam
14y
15.2
k
0
0
25
Blog
I am going to add the subsite link to the root site top link bar using powershell.
$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)
How to add a link to the top link bar in SharePoint using powershell
Recommended related topics
Membership not found