Scenario/Problem: You want to change the HTTP port value for Central Administration.
Solution: Use the Set-SPCentralAdministration
cmdlet with the Port
parameter.
The Set-SPCentralAdministration
cmdlet is used solely to change the port number configured for the Central Administration web application. Provide a valid port number, as shown in Listing 4.4.
Set-SPCentralAdministration -Port 20222
18.191.239.123