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
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
Hopefully this de-mystifies the GUIDs as shown in IIS.
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 |
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 |
相关文章推荐
- No mapping found for HTTP request with URI [/index.html] in DispatcherServlet with name 'springmvc'
- 相对路径获取项目文件 及报错 No mapping found for HTTP request with URI XXX in DispatcherServlet with name ‘springmvc’解决方法
- No mapping found for HTTP request with URI [/exam3/welcome.do] in DispatcherServlet with name 'XXX'
- Error creating bean with name 'simpleUrlHandlerMapping' defined in ServletContext resource [/WEB-IN
- 警告: No mapping found for HTTP request with URI [/springmv/iew] in DispatcherServlet with name 'sprin
- No mapping found for HTTP request with URI [/caonima/item/itemlist.action] in DispatcherServlet with
- No mapping found for HTTP request with URI [/Test/findbyid] in DispatcherServlet
- springmvc No mapping found for HTTP request with URI in Dispatc
- Repeated column in mapping for entity:(should be mapped with insert="false" update="false")
- No mapping found for HTTP request with URI [/zjic] in DispatcherServlet
- 警告: No mapping found for HTTP request with URI [/Springmvc/test] in DispatcherServlet with dispatche
- Repeated column in mapping for entity:should be mapped with insert="false" update="false"
- There are multiple modules with names that only differ in casing. This can lead to unexpected....
- 玩转JPA(一)---异常:Repeated column in mapping for entity/should be mapped with insert="false" update="fal
- 关于警告: No mapping found for HTTP request with URI [/spMVC/] in DispatcherServlet with name 'spMVC'的问题
- No mapping found for HTTP request with URI [/cwgl/department/index] in DispatcherServlet with name
- springmvc No mapping found for HTTP request with URI in Dispatc
- Run WWW service in IIS 5.0 isolation mode with IIS 6.0
- Repeated column in mapping for entity: .... should be mapped with insert="false" update="false"
- No mapping found for HTTP request with URI [/superMarket/css/style.css] in DispatcherServlet with na