Rename a Server on the Farm

Scenario/Problem: You want to rename a server that participates in the SharePoint farm.

Solution: Use the Rename-SPServer cmdlet.

The Rename-SPServer cmdlet renames a server in the farm. However, note that it renames the server only from a SharePoint standpoint and does not actually rename the physical server. Use the current name as the Identity parameter and the new name for the Name parameter, as shown in Listing 4.9.

Listing 4.9. Renaming a Server on the Farm

Rename-SPServer -Identity "OldServerName" -Name "NewServerName"

Warning

If the rename procedure does not complete successfully, the server being renamed may no longer function as a SharePoint server. Running the SharePoint 2013 Products Configuration ...

Get PowerShell™ for SharePoint® 2013 How-To now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.