Created
August 14, 2013 20:55
-
-
Save mirontoli/6235511 to your computer and use it in GitHub Desktop.
Add links into a Top Navigation Bar in SharePoint Central Admin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Add links into a Top Navigation Bar in SharePoint Central Admin | |
if(-not(gsnp | ? { $_.Name -eq "Microsoft.SharePoint.PowerShell"})) { asnp Microsoft.SharePoint.PowerShell } | |
$url = "http://dev:2013" | |
$web = Get-SPWeb $url | |
$links = @{ | |
"Farm Solutions" = "/_admin/Solutions.aspx" | |
"Service Applications" = "/_admin/ServiceApplications.aspx" | |
"Site Collection Owners" = "/_admin/owners.aspx" | |
"UPA" = "/_layouts/15/ManageUserProfileServiceApplication.aspx?ApplicationID=c32b96b6%2D7c34%2D4113%2D9982%2Df4e47aad1e50" | |
"SSA" = "/searchadministration.aspx?appid=5f037fe9-0cde-4bbb-a3a0-30f2605a0220" | |
} | |
$links.GetEnumerator() | % { | |
$newLink = New-Object Microsoft.SharePoint.Navigation.SPNavigationNode -ArgumentList @($_.Name, $_.Value) | |
$web.Navigation.TopNavigationBar.AddAsLast(($newLink) | |
} | |
$web.Update() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment