Purpose: Apply an action to the specified object in quarantine.
If the action is not specified, information about quarantined objects and their identifiers together with brief information about original files put in quarantine is displayed. Information about isolated objects is output according to a format specified with the optional --Format parameter. If the --Format parameter is not specified, the following information is output for every isolated (quarantined) object:
•an identifier assigned to a quarantined object;
•the original path to the file that was moved to quarantine;
•the date of putting the file in quarantine;
•information about the file: its size, owner, time of last modification;
•information about the threat (name of the threat, threat type according to the classification used by the Doctor Web company).
Arguments: None.
Options
--Format "<format string>"—display information about quarantined objects in the specified format. The description of format string is below.

|
If this option is specified together with any action option, it is ignored.
|
-f [--Follow]—wait for new messages about new threats and display them once they are received (CTRL+C interrupts the waiting).

|
If this option is specified together with any action option, it is ignored.
|
-a [--Autonomous]—run a standalone instance of the Dr.Web File Checker file scanning component to perform the specified quarantine action and shut down the component upon completion.
This option can be used together with any options mentioned below.
--Discovery [<list of directories>,] searches for quarantine directories in the specified list of directories and add them to the consolidated quarantine upon detecting a threat. If the <list of directories> is not specified, search for quarantine directories in the common locations of the file system (volume mounting points and user home directories).
This option can be specified not only with the -a (--Autonomous) option (see above), but also with any options/actions listed below. Moreover, if the quarantine command is run in standalone instance mode, that is, with the -a (--Autonomous) option but without the --Discovery option, then it has the same effect as calling:
quarantine --Autonomous --Discovery
|
--Delete <object>—delete the specified quarantined object.

|
Quarantined objects are deleted permanently—this action is irreversible.
|
--Restore <object>—restore the specified object from the quarantine to its original location.

|
This command may require to run drweb-ctl with superuser (the root user) privileges. You can restore the file from quarantine even if it is infected.
|
--Cure <object>—attempt to cure the specified object in the quarantine.

|
Even if the object was successfully cured, it will remain in quarantine. To restore the cured object from quarantine, use the --Restore option.
|
--TargetPath <path>—restore an object from quarantine to the specified location: either as a file with the specified name (if <path> is a path to a file), or to the specified directory (if <path> is a path to a directory). A path can be absolute or relative (with regard to the current directory).

|
This option can only be used in combination with the --Restore option.
|
As an <object>, specify the object identifier in quarantine. To apply the action to all quarantined objects, specify All instead of <object>. For example, the command
$ drweb-ctl quarantine --Restore All --TargetPath test
|
restores all quarantined objects and puts them in the test subdirectory located in the current directory from which the drweb-ctl command was run.

|
If the --Restore All variant is indicated together with the additional option --TargetPath, this option must set a path to a directory, not to a file.
|
|