You can script and automate IIS and MSSQL using powershell. I'm willing to bet dollars against pesos that if MS hasn't made everything in Windows scriptable via Powershell, they are currently working towards it.
http://msdn.microsoft.com/en-us/library/hh245198(v=SQL.110)....