Let's say you need to find a server where Central admin is hosted. In a large scale environment, you have multiple servers for SharePoint. And the central admin is installed on any of your SharePoint servers.
Using PowerShell :
Get-spwebapplication -includecentraladministration |
where {$_.DisplayName -match "SharePoint Central Administration*"} |
select DisplayName,Url
where {$_.DisplayName -match "SharePoint Central Administration*"} |
select DisplayName,Url

C BPosted Aug 3, 2018, 12:09 AM
Completely irrelevant topic. heading and contents do not concur. Heading says server name hosting ca site, whereas code is pulling web application list.