A work machine provided with: a control means which causes the work machine to perform work in a first work mode in which the work machine performs work without collecting diagnostic data; a reception means which receives a diagnostic instruction; and a switching means which, when the reception means has received the diagnostic instruction, switches the work machine from the first work mode to a second work mode in which the work machine performs work while collecting the diagnostic data, wherein when the switching means has switched the work machine to the second work mode, the control means causes the work machine to perform work in the second work mode.Machine de travail pourvue : d'un moyen de commande qui amène la machine de travail à effectuer un travail dans un premier mode de travail dans lequel la machine de travail effectue un travail sans collecter des données de diagnostic ; d'un moyen de réception qui reçoit une instruction de diagnostic ; et d'un moyen de commutation qui, lorsque le moyen de réception a reçu l'instruction de diagnostic, commute la machine de travail du premier mode de travail sur un second mode de travail dans lequel la machine de travail effectue un travail tout en collectant les données de diagnostic, lorsque le moyen de commutation a commuté la machine de travail sur le second mode de travail, le moyen de commande amenant la machine de travail à effectuer un travail dans le second mode de travail.作業機であって、診断用データを収集せずに作業を行う第1の作業モードで前記作業機に作業を実行させる制御手段と、診断指示を受け付ける受付手段と、前記受付手段により前記診断指示が受け付けられた場合、前記第1の作業モードから、前記診断用データを収集しながら作業を行う第2の作業モードへ切り替える切替手段と、を備え、前記制御手段は、前記切替手段により前記第2の作業モードへ切り替えられた場合、前記第2の作業モードで前記作業機に作業を実行させる。