On-demand OS and Applicaiton diagnostic logs from cloud managed PCs

Microsoft

 

When PCs encounter problems, a perennial challenge for IT is pulling detailed diagnostic logs from the device without relying on user instructions, scripts, etc.

For Windows 1903 we have enhanced the DiagnosticLog CSP so that MDM providers for Windows (e.g., Intune) can provide IT with diagnostic logs from the device as needed.

While the first class IT experience for this will come through a management provider such as Intune, savvy Insiders can try out this functionality today using Custom URI policy.

Want to try out this feature, plus other new ENS features? Visit http://aka.ms/olympiav2.   

 

Following are the steps to deploy the new DiagnosticLog CSP using Intune:

Step 1 :  Set up Storage Account

  1. Open Browser.
  2. Navigate to https://portal.azure.com and Sign in with admin credentials.
  3. On the left navigation bar, click All services.
  4. Enter “Storage accounts” in search.
  5. Click on Storage accounts.
  6. Click on “+Add”.
  7. Select valid Azure Subscription.

                   Fill out the form:

                   Resource group (Create new if needed)

                   Storage account name

                   Location

                 Leave rest of the things unchanged.

  1. Click Review + create
  2. Click newly created storage account
  3. Click Storage Explorer(preview)
  4. Right Click BLOB CONTAINERS -> Create blob container
  5. Give Name
  6. Click OK
  7. Right click on new blob container -> Get Shared Access Signature
    1. Update Expiry time to a month later than current date (Default is  1 day)
    2. Update Permissions to Read, Write and List
    3. Click Create
  8. Copy URL in Notepad – This will be needed in next step.

Step 2: Create Custom policy for Diagnostic logs

  1. Open Browser.
  2. Navigate to https://portal.azure.com and Sign in with admin
  3. On the left navigation bar, click All services.
  4. Enter “Intune” in search.
  5. Click on Intune.
  6. Click on “Device configuration”.
  7. Click on “Profiles”.
  8. Click on “+ Create profile”.
  9. Fill in form
    • Name – Diagnostics CSP
    • Platform – Windows 10 and later
    • Profile type – Custom
    • Click Settings -> On OMA-URI settings, Click Add
      • Name–
      • OMA-URI - ./Vendor/MSFT/DiagnosticLog/DiagnosticArchive/ArchiveDefinition
      • Data Type – String
      • Value –  <<Refer below sample>>
<Collection>
<ID>new GUID value</ID>
<SasUrl><![CDATA[Storage account URL Copied in Line Step 15]]></SasUrl>
<RegistryKey>HKLM\Software\Microsoft</RegistryKey>
<Command>%windir%\system32\mdmdiagnosticstool.exe -out %ProgramData%\temp\</Command>          
<FoldersFiles>%ProgramData%\temp\*.*</FoldersFiles>
<FoldersFiles>%ProgramData%\Microsoft\DiagnosticLogCSP\Collectors\*.etl</FoldersFiles>
<Command>c:\windows\system32\ipconfig.exe /all</Command>
<Events>System</Events>
</Collection>            
  1. Select Create.
  2. Select Assignments.
  3. Select “Select groups to include”.
  4. Select “DiagnosticsLogsDemo” and click Select.
  5. Click on Save.
0 Replies