diff --git a/console.php b/console.php
index 30f4b729214b3e91c26012052b2404f6998a7d70..b8dd5e08790d7b8ba6e30876b9a53b04b4f3062e 100644
--- a/console.php
+++ b/console.php
@@ -26,7 +26,7 @@ if (!OC::$CLI) {
 $defaults = new OC_Defaults;
 $application = new Application($defaults->getName(), \OC_Util::getVersionString());
 require_once 'core/register_command.php';
-foreach(OC_App::getEnabledApps() as $app) {
+foreach(OC_App::getAllApps() as $app) {
 	$file = OC_App::getAppPath($app).'/appinfo/register_command.php';
 	if(file_exists($file)) {
 		require $file;