您的位置:首页 > 移动开发

Mapping Guids in IIS with Friendly Names

2013-08-08 16:51 246 查看
To map the IIS Application Pools that appear as GUIDs (Service Application Pools) to their friendly names, run:

PowerShell

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

1
2
3
4
5

$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:

PowerShell

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

1
2
3
4
5

$sas
= Get-SPServiceApplication

$ServiceApps =
@{}
foreach($sa
in $sas)

{$ServiceApps[$sa.DisplayName]
= $sa.IisVirtualDirectoryPath}
$ServiceApps

Hopefully this de-mystifies the GUIDs as shown in IIS.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐