Mapping Guids in IIS with Friendly Names

To map the IIS Application Pools that appear as GUIDs (Service Application Pools) to their friendly names, run:

$pools = Get-SPServiceApplicationPool
$AppPools = @{}
foreach($pool in $pools)
{$AppPools[$pool.DisplayName] = $pool.Id.ToString().Replace("-", "")}
$AppPools

This will output the friendly name of the Application Pool along with the ID of the Application Pool as you see it in IIS Manager.

For Service Applications that appear under the IIS Site commonly known as “SharePoint Web Services”, run:

$sas = Get-SPServiceApplication
$ServiceApps = @{}
foreach($sa in $sas)
{$ServiceApps[$sa.DisplayName] = $sa.IisVirtualDirectoryPath}
$ServiceApps

Hopefully this de-mystifies the GUIDs as shown in IIS.

Trevor Seward is a Microsoft Office Apps and Services MVP who specializes in SharePoint Server administration, hybrid scenarios, and SharePoint Online. He has been working with SharePoint for 16 years from SharePoint 2003 on up, managing environments with terabytes of content for 150,000+ user organizations. Trevor is an author of Deploying SharePoint 2016 and Deploying SharePoint 2019. You can find him on Twitter and in /r/sharepoint.