Btw, I also did this to the SQL Server instance to fix the machine name.
sp_dropserver '<MyOldMachineName>';
GO
sp_addserver '<MyNewMachineName>', local;
GO
SELECT @@SERVERNAME As [@@SERVERNAME],
CAST(SERVERPROPERTY('MACHINENAME') AS VARCHAR(128)) + COALESCE('' +
CAST(SERVERPROPERTY('INSTANCENAME') AS VARCHAR(128)), '') As RealInstanceName