It will work, but the account running the code (usually a specific IIS account) needs to be a member of the Backup Operators or Administrators group. If this account has those rights, then when connecting to the TaskService, you do not need to supply any parameters.
↧