bitsadmin setnotifyflags

Sets the event notification flags for the specified job.

Syntax

bitsadmin /setnotifyflags <job> <notifyflags>

Parameters

Parameter Description
job The job's display name or GUID.
notifyflags Can include one or more of the following notification flags, including:
  • 1. Generates an event when all files in the job have been transferred.
  • 2. Generates an event when an error occurs.
  • 3. Generates an event when all files have completed transfer or when an error occurs.
  • 4. Disables notifications.

Examples

To set the notification flags to generate an event when an error occurs, for a job named myDownloadJob:

bitsadmin /setnotifyflags myDownloadJob 2