设备日志Device logs

适用于:经典控制台中的 IntuneApplies to: Intune in the classic console
正在查找有关 Azure 中的 Intune 的文档?Looking for documentation about Intune on Azure? 请转到此处Go here.

在进行故障诊断工作的过程中,可能希望从用户设备中收集日志。As part of your troubleshooting efforts you might want to collect logs from user devices. 此处介绍了收集这些日志的说明。Instructions for collecting those logs are described here. 通常需要访问设备获取日志,也可请求用户收集日志并发送。Typically you need to access to the device to get these logs or request from the user that they collect the logs and send them to you.

Android 日志Android logs

Android 日志位于 \Phone\Android\data\com.microsoft.windowsintune.companyportal\filesAndroid logs are located in \Phone\Android\data\com.microsoft.windowsintune.companyportal\files.

有时不会显示这些文件,尤其是在较新的 Android 设备上。Sometimes the files don't appear, especially on newer Android devices. 如果请求用户收集日志,请让用户打开 Android 版公司门户应用。If this happens, have your users open the Company Portal app for Android. 然后选择“设置”>“复制日志”并重启设备。Then they should choose Settings>Copy Logs and reboot their device.

有关用户如何能够发送数据日志的详细信息,请参阅以下文章:For more information about how your users can send you data logs, see the following articles:

iOS 日志iOS logs

将 iOS 注册错误发送给 IT 管理员中所述,用户可向你发送注册错误。Users can send you enrollment errors, as described in Send iOS enrollment errors to your IT administrator.

用户可发送设备日志,如发送 iOS 设备日志所述。Users can send device logs, as described in Send iOS Device Logs.

Mac OS X 日志Mac OS X logs

  1. 打开控制台应用。Open the Console app.
  2. 在“文件”下,选择 system.logUnder FILES, choose system.log.
  3. 在顶部的菜单栏中,选择“文件” > “另存副本为...”。On the menu bar on the top, choose File > Save a Copy As…. 然后保存该文件。Then save the file.

Windows PhoneWindows Phone

在 Windows Phone 公司门户应用中,用户可选择三个点(“...”)访问菜单,然后选择“发送日志”。In the Windows Phone Company Portal app, users choose the three dots () to access the menu, and then choose Send Logs. 登录公司门户应用前后,此选项都可用。This option is available both before and after signing in to the Company Portal app.

WindowsWindows

对于 Windows 公司门户,日志位于 %localappdata%\Packages\Microsoft.CompanyPortal_8wekyb3d8bbwe\LocalStateFor the Windows Company Portal, the logs are located in %localappdata%\Packages\Microsoft.CompanyPortal_8wekyb3d8bbwe\LocalState.

要提交产品反馈,请访问 Intune Feedback