You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The **Collect diagnostics** remote action lets you collect and download Windows device logs without interrupting the user. Only non-user locations and file types can be accessed, so no personal information is collected.
36
+
The **Collect diagnostics** remote action lets you collect and download Windows device logs without interrupting the user. Only non-user locations and file types are accessed.
37
+
38
+
<!--1895390-->
39
+
The **Collect diagnostics** remote action can also be configured to automatically collect and upload Windows devices logs upon an Autopilot failure on a device. When an Autopilot failure occurs, logs will be processed on the failed device and then automatically captured and uploaded to Intune.
37
40
38
41
The diagnostic collection is stored for 28 days and then deleted. Each device can have up to 10 collections stored at one time.
39
42
@@ -55,102 +58,134 @@ The *Collect diagnostics* remote action is supported for:
55
58
56
59
To use the *Collect diagnostics* action:
57
60
58
-
1. Sign in to the [Microsoft Endpoint Manager admin center](https://go.microsoft.com/fwlink/?linkid=2109431) > **Devices** > **Windows** > select a supported device.
59
-
2. On the device’s **Overview** page, select **…** > **Collect diagnostics** > **Yes**. A pending notification appears on the device’s **Overview** page.
60
-
3. To see the status of the action, select **Device diagnostics monitor**.
61
-
4. After the action completes, select **Download** in the row for the action > **Yes**.
61
+
1. Sign in to the [Microsoft Endpoint Manager admin center](https://go.microsoft.com/fwlink/?linkid=2109431)
62
+
2. Navigate to **Devices** > **Windows** > select a supported device.
63
+
3. On the device’s **Overview** page, select **…** > **Collect diagnostics** > **Yes**. A pending notification appears on the device’s **Overview** page.
64
+
4. To see the status of the action, select **Device diagnostics monitor**.
65
+
5. After the action completes, select **Download** in the row for the action > **Yes**.
66
+
6. The data zip file is added to your download tray and you can save it to your computer.
67
+
68
+
## Diagnostics collection on Autopilot failure
69
+
<!--1895390-->
70
+
71
+
For Autopilot diagnostics collection, no additional action is required. Autopilot diagnostics will be automatically captured when devices experience a failure as long as the Autopilot automatic capture diagnostic feature is enabled.
72
+
73
+
To view the diagnostics collected after an Autopilot failure:
74
+
75
+
1. Sign in to the [Microsoft Endpoint Manager admin center](https://go.microsoft.com/fwlink/?linkid=2109431)
76
+
2. Navigate to **Devices** > **Monitor** > **Autopilot deployments (preview)**.
77
+
3. In the middle pane, select a device.
78
+
4. On the right hand **Properties** pane, under **Device Diagnostics**, select **Download**.
62
79
5. The data zip file is added to your download tray and you can save it to your computer.
63
80
64
81
## Data collected
65
82
66
-
No personal information is collected. If you've installed [KB5011543](https://support.microsoft.com/topic/march-22-2022-kb5011543-os-builds-19042-1620-19043-1620-and-19044-1620-preview-4fe2d1c0-720f-47fe-9523-75339bc107a1) on Windows 10 or [KB5011563](https://support.microsoft.com/topic/march-28-2022-kb5011563-os-build-22000-593-preview-40df54c9-b5a9-42e5-ae1c-9a33ff91ca91) on Windows 11, the format of the zip file will be simpler, including a flattened structure where the logs collected are named to match the data collected, and when multiple files are collected a folder is created.
83
+
<!--1895390-->
84
+
While there's no intent to collect personal data, diagnostics may include user identifiable information such as user or device name.
85
+
86
+
If you've installed [KB5011543](https://support.microsoft.com/topic/march-22-2022-kb5011543-os-builds-19042-1620-19043-1620-and-19044-1620-preview-4fe2d1c0-720f-47fe-9523-75339bc107a1) on Windows 10 or [KB5011563](https://support.microsoft.com/topic/march-28-2022-kb5011563-os-build-22000-593-preview-40df54c9-b5a9-42e5-ae1c-9a33ff91ca91) on Windows 11, the format of the zip file will be simpler including:
87
+
88
+
- A flattened structure where the logs collected are named to match the data collected
89
+
- When multiple files are collected a folder is created.
67
90
68
91
This list below is the same order as the diagnostic zip. Each collection contains the following data:
- %ProgramData Microsoft Update Health Tools\Logs\*.etl
153
+
- %temp%\MDMDiagnostics\battery-report.html
154
+
- %temp%\MDMDiagnostics\energy-report.html
155
+
- %temp%\MDMDiagnostics\mdmlogs-<Date/Time>.cab
156
+
- %temp%\MDMDiagnostics\msinfo32.log
157
+
- %windir%\ccm\logs\*.log
158
+
- %windir%\ccmsetup\logs\*.log
159
+
- %windir%\logs\CBS\cbs.log
160
+
- %windir%\logs\measuredboot\*.*
161
+
- %windir%\Logs\WindowsUpdate\*.etl
162
+
- %windir%\temp\%computername%*.log
163
+
- %windir%\temp\officeclicktorun*.log
141
164
142
165
## Disable device diagnostics
143
166
144
-
You can disable the **Collect diagnostics** remote action for all devices by following these steps:
167
+
The **Collect diagnostics** remote action is enabled by default. You can disable the **Collect diagnostics** remote action for all devices by following these steps:
168
+
169
+
1. Sign in to the [Microsoft Endpoint Manager admin center](https://go.microsoft.com/fwlink/?linkid=2109431)
170
+
2. Navigate to **Tenant administration** > **Device diagnostics**.
171
+
3. Change the control under **Device diagnostics are available for corporate-managed devices running Windows 10, version 1909 and later, or Windows 11.** to **Disabled**.
172
+
173
+
:::image type="content" source="./media/collect-diagnostics/disable-device-diagnostics.png" alt-text="Screenshot that shows the Device diagnostics pane with the highlighted control for device diagnostics set to Disabled.":::
174
+
175
+
## Disable Autopilot automatic collection of diagnostics
176
+
<!--1895390-->
177
+
178
+
Autopilot automatic diagnostic capture is enabled by default. You can disable Autopilot automatic diagnostic capture by following these steps:
145
179
146
-
1. Sign in to the [Microsoft Endpoint Manager admin center](https://go.microsoft.com/fwlink/?linkid=2109431) > **Tenant administration** > **Device diagnostics**.
147
-
2. Change the control to **Disabled**.
180
+
1. Sign in to the [Microsoft Endpoint Manager admin center](https://go.microsoft.com/fwlink/?linkid=2109431)
181
+
2. Navigate to **Tenant administration** > **Device diagnostics**.
182
+
3. Change the control under **Automatically capture diagnostics when devices experience a failure during the Autopilot process on Windows 10 version 1909 or later and Windows 11. Diagnostics may include user identifiable information such as user or device name (preview).** to **Disabled**.
148
183
149
-
:::image type="content" source="./media/collect-diagnostics/disable-device-diagnostics.png" alt-text="Screenshot that shows the Device diagnostics pane with the highlighted control set to Disabled.":::
184
+
:::image type="content" source="./media/collect-diagnostics/disable-autopilot-diagnostics.png" alt-text="Screenshot that shows the Device diagnostics pane with the highlighted control for Autopilot automatic diagnostics collection set to Disabled.":::
150
185
151
186
## Known issues with device diagnostics
152
187
153
188
Currently there are the two main issues that may cause device diagnostics to fail:
154
189
155
190
1. A timeout may occur on devices without patches [KB4601315](https://support.microsoft.com/topic/february-9-2021-kb4601315-os-build-18363-1377-bdd71d2f-6729-e22a-3150-64324e4ab954) or [KB4601319](https://support.microsoft.com/topic/february-9-2021-kb4601319-os-builds-19041-804-and-19042-804-87fc8417-4a81-0ebb-5baa-40cfab2fbfde). These patches contain a fix to the DiagnosticLog CSP that prevents timeout during upload. After the update installs, make sure to reboot your device.
156
-
2. The device wasn't able to receive the device action within a 24-hour window. If the device is offline or turned off this may cause a failure.
191
+
2. The device wasn't able to receive the device action within a 24-hour window. If the device is offline or turned off, it may cause a failure.
0 commit comments