diff --git a/include/class.export.php b/include/class.export.php
index d62d4460723d8641e31c5d992dadd5b0f71e74c9..85f021328a2d4a0ac7dccc9aa96f3b6738e3d8e1 100644
--- a/include/class.export.php
+++ b/include/class.export.php
@@ -262,7 +262,7 @@ class Export {
         $filename = $filename ?: sprintf('Agents-%s.csv',
                 strftime('%Y%m%d'));
         Http::download($filename, "text/$how");
-        $depts = Dept::getDepartments();
+        $depts = Dept::getDepartments(null, true, Dept::DISPLAY_DISABLED);
         echo self::dumpQuery($agents, array(
                     '::getName'  =>  'Name',
                     '::getUsername' => 'Username',