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
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
How to delete a link from the top link bar in SharePoint 2010 using PowerShell
WhatsApp
Vijai Anand Ramalingam
13y
13.7
k
0
0
25
Blog
I have one root site collection and three subsites. I am going to remove Subsite3 link from the top link bar using powershell.
$site=Get-SPSite "
http://serverName:1111/sites/sample
"
$web=$site.OpenWeb()
$nodeColl = $web.Navigation.TopNavigationBar
[int]$count=$nodeColl.Count
while($count -ne 0)
{
if ($nodeColl[$count-1].Title -eq "Subsite3")
{
$nodeColl[$count-1].Delete()
}
$count--
}
How to delete a link from the top link bar in SharePoint 2010 using PowerShell
Up Next
MCPD In SharePoint 2010
Ebook Download
View all
Printing in C# Made Easy
Read by 22.3k people
Download Now!
Learn
View all
Membership not found