Wednesday, March 27, 2013

How to Change Central Administration Port in SharePoint

Changing Central Administration Port in SharePoint isn't frequent task, but you may have to do it in some situations:

  1. Perhaps during SharePoint installation, Central Administration Web site may be established with a random port, and you want to change it now.
  2. It was assigned with a port number which is prone to cause port conflicts, 
  3. Some other programs (such as backup software) wants to use the port assigned to Central Admin 
  4. Your organization's IT Policy doesn't allow to host the site on the particular port, etc.
Anyway, If you want to change central administration port number in SharePoint 2010, there is no web interface available! But we have these methods to change port of central administration:

The simplest way to accomplish this is by using the PowerShell cmdlet
To change central administration port in SharePoint 2010 or in SharePoint 2013, use the PowerShell cmdlet: Set-SPCentralAdministration

Set-SPCentralAdministration -port <Port Number>
Change central administration port in SharePoint 2010
The above cmdlet allows ports between 1023 and 32767 and blocks any other ports (Port 443 is not allowed). You will get "Invalid Port" error message if you try some other port doesn't fall under this criteria.

While the above cmdlet helps change SharePoint 2010 central administration port and for SharePoint 2013, In MOSS 2007 we've the same old Stsadm tool!

Use Stsadm to change Central Admin Port in SharePoint 2007:
If  you still want to use the port which is not supported by the Set-SPCentralAdministration or if you are running SharePoint 2007, you got to use the same old STSADM command line tool.

Stsadm -o setadminport -port <PortNumber>
 How to change SharePoint 2007 central administration port
Once you get "Operation completed successfully." you can access the Central Admin in New port.

Not sure, in which port central admin is hosted? sure, run stsadm.exe -o getadminport command if you want to get the current port of central administration. Both the PowerShell cmdlet and STSADM commands updates everything including IIS Bindings, all the shortcuts.

Re-run SharePoint Product Configuration Wizard
You can also change port by run the SharePoint Product & Technologies Configuration Wizard (Psconfigui.exe)
Change central administration port in SharePoint 2010
If you want to change the URL for SharePoint Central Administration site, Refer: Distribute and Load Balance Central Admin

Technet Reference: Change the Central Administration Web site port number
Want to find which ports are being used by the server? Use "Netstat -a" command in command prompt. This will give you the ports already in use!

You might also like:
SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
Document SharePoint Farm
Automatically generate SharePoint documentation.

Check out these SharePoint products:

No comments :

Post a Comment

Please Login and comment to get your questions answered!

You might also like:

Related Posts Plugin for WordPress, Blogger...