Restoring to non-file servers with different names or administrative accounts If you must restore a server (that is not a Filer Server or SQL Server) to a server or servers with server names or administrative accounts that are different from those of the original, you must: 1. Import the WebSites module 2. Update the credentials 3. Remove the old server names from the farm 4. Add the new servers to the proper farms 1. First, before running any of the other commands, import the WebSites module: Import-Module WebSites Now run the commands 2-4 on the Controller as Administrator. 2. If the credentials for the role <RoleType> have changed, run the following for each changed credential: Set-WebSitesConfig Credential -CredentialName <RoleType> Credential -UserName <RoleAdminUser> -Password <RoleAdminPassword> Note Possible values for <RoleType> in the Set-WebSitesConfig command are: ManagementServer, FileServer, FrontEnd, Publisher, and Worker. 3. For each old server name <OldName> that is no longer used, run: Remove-WebSitesServer -Name <OldName> 4. For each new server name <NewName> of role <RoleType> run this: New-WebSitesServer -Name <NewName> -ServerType <RoleType> Note Possible values for <RoleType> in the New-WebSitesServer command are: ManagementServer, FileServer, LoadBalancer, Publisher, and WebWorker. Example If you had an old Web Worker role named "OldWorker" and a new Web Worker role called "NewWorker", and you had updated the WebWorker credentials to "WebWorkerAdmin", you would run: Import-Module WebSites Set-WebSitesConfig Credential -CredentialName WorkerCredential -UserName WebWorkerAdmin $WebWorkerPassword Remove-WebSitesServer -Name OldWorker
Restoring to non-file servers with different names or administrative accounts If you must restore a server (that is not a Filer Server or SQL Server) to a server or servers with server names or administrative accounts that are different from those of the original, you must: 1. Import the WebSites module 2. Update the credentials 3. Remove the old server names from the farm 4. Add the new servers to the proper farms 1. First, before running any of the other commands, import the WebSites module: Import-Module WebSites Now run the commands 2-4 on the Controller as Administrator. 2. If the credentials for the role <RoleType> have changed, run the following for each changed credential: Set-WebSitesConfig Credential -CredentialName <RoleType> Credential -UserName <RoleAdminUser> -Password <RoleAdminPassword> Note Possible values for <RoleType> in the Set-WebSitesConfig command are: ManagementServer, FileServer, FrontEnd, Publisher, and Worker. 3. For each old server name <OldName> that is no longer used, run: Remove-WebSitesServer -Name <OldName> 4. For each new server name <NewName> of role <RoleType> run this: New-WebSitesServer -Name <NewName> -ServerType <RoleType> Note Possible values for <RoleType> in the New-WebSitesServer command are: ManagementServer, FileServer, LoadBalancer, Publisher, and WebWorker. Example If you had an old Web Worker role named "OldWorker" and a new Web Worker role called "NewWorker", and you had updated the WebWorker credentials to "WebWorkerAdmin", you would run: Import-Module WebSites Set-WebSitesConfig Credential -CredentialName WorkerCredential -UserName WebWorkerAdmin $WebWorkerPassword Remove-WebSitesServer -Name OldWorker