Welcome to deBUG.to Community where you can ask questions and receive answers from Microsoft MVPs and other experts in our community.
0 like 0 dislike
861 views
in SharePoint Server by 6 8 10

I checked multiple articles to get SharePoint Central Administration URL using PowerShell then open the SharePoint Central Administration URL from PowerShell but most of these posts get SharePoint Central Administration URL from the registry entry as below

Get-ItemProperty -Path 'HKLM:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\16.0\WSS\' -Name CentralAdministrationURL | select CentralAdministrationURL

I am wondering if there is a better way to get SharePoint Central Administration URL from PowerShell without using Registry entry for SharePoint 2016.


1 Answer

1 like 0 dislike
by 54 119 241
selected by
 
Best answer

Get SharePoint Central Administration URL from PowerShell

To get SharePoint Central Administration URL from PowerShell, try the below cmdlet

$SPCentralURL = [Microsoft.SharePoint.Administration.SPAdministrationWebApplication]::Local.Url
$SPCentralURL

Output

How to get SharePoint Central Administration from PowerShell

Open SharePoint Central Administration from PowerShell

To open SharePoint Central Administration in Interner Explorer using PowerShell, try the below

$SPCentralURL = [Microsoft.SharePoint.Administration.SPAdministrationWebApplication]::Local.Url
[system.Diagnostics.Process]::Start("iexplore",$SPCentralURL)

To open SharePoint Central Administration from PowerShell in Chrome or Firefox, check this Open URL in browser in PowerShell

by 6 8 10
0 0
Very helpful, thank you!
If you don’t ask, the answer is always NO!
...