schtasks /create /S rcsitms /tn SchTaskName /tr "sqlcmd.exe -S server\instance -E -d Operations -Q \""execute SQLProcedure\"" " /sc DAILY /st 02:00:00 /sd 09/09/2014 /ru domain\srvcAcct /rp abc123

You need to double the internal double-quotes..

+ Recent posts