I follow a format similar to the first code posted. The only thing I see in the second posted code is no quotes on the server name. -smtpServer smtp.qwerty.org
Start SQL Server in minimal configuration mode from the command line (-f flag). This will create tempdb in the default location and allow you to run an ALTER command.