
1 - Rename the VM to the chosen name.
2 - Run the following system stored procedures on the SQL Server instance: sp_DropServer sp_AddServer
3 - Join the VM to the domain.
Explanation:
Box 1: Rename the VM to the chosen name.
Box 2:
For a renamed computer that hosts a default instance of SQL Server, run the following procedures:
sp_dropserver <old_name>;
GO
sp_addserver <new_name>, local;
GO
Restart the instance of SQL Server.
Note: When you use sysprep to generalize the image, the SID for the machine is deleted and Windows users you created will be deleted as well. If you rely on Windows login to access SQL Server, you won't be able to log in.
Box 3: Join the VM to the domain
Incorrect:
* The Get-Host cmdlet gets an object that represents the program that is hosting PowerShell.
References:
https://docs.microsoft.com/en-us/sql/database-engine/install-windows/rename-a-computer-that-hosts-a-stand-alone-instance-of-sql-server?view=sql-server-2017