Get SharePoint Central Admin URL in PowerShell

In PowerShell script writing, I had to get the central admin URL of the SharePoint farm. Tried various approaches and found the below to get SharePoint 2010/SharePoint 2013 Central Administration site URL using PowerShell:

#sharepoint 2010 powershell get central admin url
Get-SPWebApplication -includecentraladministration | where `
  {$_.IsAdministrationWebApplication} | Select -ExpandProperty URL

Alternatively,  you can use:


Salaudeen Rajack

Salaudeen Rajack is a SharePoint Architect with Two decades of SharePoint Experience. He loves sharing his knowledge and experiences with the SharePoint community, through his real-world articles!

Leave a Reply