bitsadmin setnotifyflags
Sets the event notification flags for the specified job. Windows commands reference
On Windows
Windows
bitsadmin /setnotifyflags <job> <notifyflags>
To set the notification flags to generate an event when an error occurs, for a job named myDownloadJob
bitsadmin /setnotifyflags myDownloadJob 2IdentifyjobThe job's display name or GUID.notifyflagsCan 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.