BAT file: SQLCMD -s SQL-SL_SQL01 -E -I “C:\\Users\\sqladmin\\SqlLocationChange.sql”
SQL file: EXEC xp_instance_regwrite N\'HKEY_LOCAL_MACHINE\' , N\'SoftwareMicrosoftMSSQ