Skip to content

Commit ce4c9b5

Browse files
author
Angela Fleischmann
authored
Merge pull request #8531 from frankroj/fr-autopilot-diags
Add Autopilot diagnostics
2 parents 3315177 + c82b6e1 commit ce4c9b5

5 files changed

Lines changed: 107 additions & 72 deletions

File tree

memdocs/autopilot/windows-autopilot-whats-new.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ms.date: 09/22/2022
1212
ms.collection:
1313
- M365-modern-desktop
1414
- highpri
15-
ms.topic: article
15+
ms.topic: article
1616
---
1717

1818
# Windows Autopilot: What's new

memdocs/intune/remote-actions/collect-diagnostics.md

Lines changed: 106 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ ms.collection:
3333

3434
# Collect diagnostics from a Windows device
3535

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 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.
3740

3841
The diagnostic collection is stored for 28 days and then deleted. Each device can have up to 10 collections stored at one time.
3942

@@ -55,102 +58,134 @@ The *Collect diagnostics* remote action is supported for:
5558

5659
To use the *Collect diagnostics* action:
5760

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**.
6279
5. The data zip file is added to your download tray and you can save it to your computer.
6380

6481
## Data collected
6582

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.
6790

6891
This list below is the same order as the diagnostic zip. Each collection contains the following data:
6992

7093
Registry Keys:
7194

72-
1. HKLM\SOFTWARE\Microsoft\CloudManagedUpdate
73-
1. HKLM\SOFTWARE\Microsoft\IntuneManagementExtension
74-
1. HKLM\SOFTWARE\Microsoft\SystemCertificates\AuthRoot
75-
1. HKLM\SOFTWARE\Microsoft\Windows Advanced Threat Protection
76-
1. HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI
77-
1. HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings
78-
1. HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
79-
1. HKLM\SOFTWARE\Policies
80-
1. HKLM\SOFTWARE\Policies\Microsoft\Cryptography\Configuration\SSL
81-
1. HKLM\SOFTWARE\Policies\Microsoft\Windows Advanced Threat Protection
82-
1. HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall
83-
1. HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL
84-
1. HKLM\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\Mdm
95+
- HKLM\SOFTWARE\Microsoft\CloudManagedUpdate
96+
- HKLM\SOFTWARE\Microsoft\IntuneManagementExtension
97+
- HKLM\SOFTWARE\Microsoft\SystemCertificates\AuthRoot
98+
- HKLM\SOFTWARE\Microsoft\Windows Advanced Threat Protection
99+
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI
100+
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings
101+
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
102+
- HKLM\SOFTWARE\Policies
103+
- HKLM\SOFTWARE\Policies\Microsoft\Cryptography\Configuration\SSL
104+
- HKLM\SOFTWARE\Policies\Microsoft\Windows Advanced Threat Protection
105+
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall
106+
- HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL
107+
- HKLM\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\Mdm
85108

86109
Commands:
87110

88-
1. %programfiles%\windows defender\mpcmdrun.exe -GetFiles
89-
1. %windir%\system32\certutil.exe -store
90-
1. %windir%\system32\certutil.exe -store -user my
91-
1. %windir%\system32\Dsregcmd.exe /status
92-
1. %windir%\system32\ipconfig.exe /all
93-
1. %windir%\system32\mdmdiagnosticstool.exe
94-
1. %windir%\system32\msinfo32.exe /report %temp%\MDMDiagnostics\msinfo32.log
95-
1. %windir%\system32\netsh.exe advfirewall show allprofiles
96-
1. %windir%\system32\netsh.exe advfirewall show global
97-
1. %windir%\system32\netsh.exe lan show profiles
98-
1. %windir%\system32\netsh.exe winhttp show proxy
99-
1. %windir%\system32\netsh.exe wlan show profiles
100-
1. %windir%\system32\netsh.exe wlan show wlanreport
101-
1. %windir%\system32\ping.exe -n 50 localhost
102-
1. %windir%\system32\powercfg.exe /batteryreport /output %temp%\MDMDiagnostics\battery-report.html
103-
1. %windir%\system32\powercfg.exe /energy /output %temp%\MDMDiagnostics\energy-report.html
111+
- %programfiles%\windows defender\mpcmdrun.exe -GetFiles
112+
- %windir%\system32\certutil.exe -store
113+
- %windir%\system32\certutil.exe -store -user my
114+
- %windir%\system32\Dsregcmd.exe /status
115+
- %windir%\system32\ipconfig.exe /all
116+
- %windir%\system32\mdmdiagnosticstool.exe
117+
- %windir%\system32\msinfo32.exe /report %temp%\MDMDiagnostics\msinfo32.log
118+
- %windir%\system32\netsh.exe advfirewall show allprofiles
119+
- %windir%\system32\netsh.exe advfirewall show global
120+
- %windir%\system32\netsh.exe lan show profiles
121+
- %windir%\system32\netsh.exe winhttp show proxy
122+
- %windir%\system32\netsh.exe wlan show profiles
123+
- %windir%\system32\netsh.exe wlan show wlanreport
124+
- %windir%\system32\ping.exe -n 50 localhost
125+
- %windir%\system32\powercfg.exe /batteryreport /output %temp%\MDMDiagnostics\battery-report.html
126+
- %windir%\system32\powercfg.exe /energy /output %temp%\MDMDiagnostics\energy-report.html
104127

105128
Event Viewers:
106129

107-
1. Application
108-
1. Microsoft-Windows-AppLocker/EXE and DLL
109-
1. Microsoft-Windows-AppLocker/MSI and Script
110-
1. Microsoft-Windows-AppLocker/Packaged app-Deployment
111-
1. Microsoft-Windows-AppLocker/Packaged app-Execution
112-
1. Microsoft-Windows-AppxPackaging/Operational
113-
1. Microsoft-Windows-Bitlocker/Bitlocker Management
114-
1. Microsoft-Windows-HelloForBusiness/Operational
115-
1. Microsoft-Windows-SENSE/Operational
116-
1. Microsoft-Windows-SenseIR/Operational
117-
1. Microsoft-Windows-Windows Firewall With Advanced Security/Firewall
118-
1. Microsoft-Windows-WinRM/Operational
119-
1. Microsoft-Windows-WMI-Activity/Operational
120-
1. Setup
121-
1. System
130+
- Application
131+
- Microsoft-Windows-AppLocker/EXE and DLL
132+
- Microsoft-Windows-AppLocker/MSI and Script
133+
- Microsoft-Windows-AppLocker/Packaged app-Deployment
134+
- Microsoft-Windows-AppLocker/Packaged app-Execution
135+
- Microsoft-Windows-AppxPackaging/Operational
136+
- Microsoft-Windows-Bitlocker/Bitlocker Management
137+
- Microsoft-Windows-HelloForBusiness/Operational
138+
- Microsoft-Windows-SENSE/Operational
139+
- Microsoft-Windows-SenseIR/Operational
140+
- Microsoft-Windows-Windows Firewall With Advanced Security/Firewall
141+
- Microsoft-Windows-WinRM/Operational
142+
- Microsoft-Windows-WMI-Activity/Operational
143+
- Setup
144+
- System
122145

123146
Files:
124147

125-
1. %ProgramData%\Microsoft\DiagnosticLogCSP\Collectors\*.etl
126-
1. %ProgramData%\Microsoft\IntuneManagementExtension\Logs\*.*
127-
1. %ProgramData%\Microsoft\Windows Defender\Support\MpSupportFiles.cab
128-
1. %ProgramData%\Microsoft\Windows\WlanReport\wlan-report-latest.html
129-
1. %ProgramData Microsoft Update Health Tools\Logs\*.etl
130-
1. %temp%\MDMDiagnostics\battery-report.html
131-
1. %temp%\MDMDiagnostics\energy-report.html
132-
1. %temp%\MDMDiagnostics\mdmlogs-<Date/Time>.cab
133-
1. %temp%\MDMDiagnostics\msinfo32.log
134-
1. %windir%\ccm\logs\*.log
135-
1. %windir%\ccmsetup\logs\*.log
136-
1. %windir%\logs\CBS\cbs.log
137-
1. %windir%\logs\measuredboot\*.*
138-
1. %windir%\Logs\WindowsUpdate\*.etl
139-
1. %windir%\temp\%computername%*.log
140-
1. %windir%\temp\officeclicktorun*.log
148+
- %ProgramData%\Microsoft\DiagnosticLogCSP\Collectors\*.etl
149+
- %ProgramData%\Microsoft\IntuneManagementExtension\Logs\*.*
150+
- %ProgramData%\Microsoft\Windows Defender\Support\MpSupportFiles.cab
151+
- %ProgramData%\Microsoft\Windows\WlanReport\wlan-report-latest.html
152+
- %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
141164

142165
## Disable device diagnostics
143166

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:
145179

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**.
148183

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.":::
150185

151186
## Known issues with device diagnostics
152187

153188
Currently there are the two main issues that may cause device diagnostics to fail:
154189

155190
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.
108 KB
Loading
43.6 KB
Loading
64.5 KB
Loading

0 commit comments

Comments
 (0)