Service Application Shortcuts

When configuring and managing service applications within SharePoint 2010, I was always frustrated by the number of clicks it takes to get from the Central Administration home page to a given service application, and the number of clicks required to change from one service app to another. As a quick fix to give more direct navigation to service applications, this PowerShell script will add a shortcut to each service application on the default "Resources" list on the Central Administration home page.

Add-PSSnapIn Microsoft.SharePoint.PowerShell -EA 0

$centralAdminWebApp = Get-SPWebApplication -IncludeCentralAdministration | Where {$_.IsAdministrationWebApplication -eq "True"}

$centralAdminSites = $centralAdminWebApp | Get-SPSite

foreach ($centralAdminSite in $centralAdminSites) {
    if ($centralAdminSite.ServerRelativeUrl -eq "/") {
        Write-Host "Central Administration Site Identified";
        $web = $centralAdminSite.RootWeb
        $resourcesList = $web.Lists["Resources"]
        Write-Host "Resources List Identified"

        $serviceApplications = Get-SPServiceApplication
        Write-Host "Service Applications Captured"
        foreach ($serviceApp in $serviceApplications) {
            $manageUrl = $serviceApp.ManageLink.Url
            $manageTitle = $serviceApp.DisplayName

            if ($manageUrl) {
                try {
                    $shortcut = $resourcesList.Items.Add()
                    $shortcut["URL"] = "$manageUrl, $manageTitle"
                    Write-Host " - $manageTitle Shortcut Added"
                } catch {
                    Write-Host " - Error adding shortcut to $manageTitle" -ForegroundColor "Red"