To know up front the work that needs to be performed when we need to rename a computer that has SQL Server installed on it.
My way of achieving it
Using some of the code that other people already wrote and modifying it together with the Microsoft recommendations when it comes to renaming the computer name. I tried to have this overview in order to estimate how long or how hard it will be to modify the computer name depending on how many instances we have there and what features are already enabled. The script is far from being complete but as I built on top of other scripts we can use it as base for other checks and tests and so on.
The output of the script will look similar to this
The script can be downloaded from here