Quantcast
Channel: TechNet Blogs
Viewing all articles
Browse latest Browse all 34890

Azure Log Analytics for Windows Telemetry data

$
0
0

 

 

I blogged about this last year here

 

 

As best practice, the Upgrade Analytics script checks for far more than just injecting the workspace key and telemetry value.

This could also be managed in an SCCM Compliance setting.

 

Don't forget to assess if you want IE data collection!

 

 

Simple method to update machines to send Windows telemetry data:

 

 

PowerShell script

From PowerShell as Administrator

Set-Location HKLM:

 

$registryPath = "HKLM:SOFTWAREMicrosoftWindowsCurrentVersionPolicies"

$Name = "DataCollection"

$Name2 = "AllowTelemetry"

$CommercialID = "00000000-0000-0000-0000-000000000000"

$value = "2"  # Values from 0-3 accepted

$vIEDataOptInPath = "HKLM:SOFTWAREMicrosoftWindowsCurrentVersionPoliciesDataCollection"

$IEOptInLevel = "2"  # Values from 0-3 accepted

 

If ( (Test-Path $registryPath$Name) ) { write-host -f green "Registry keys already exist" }

If ( ! (Test-Path $registryPath$Name) )

{

New-ItemProperty -Path $registryPath -Name $name

New-ItemProperty -Path $registryPath -Name $CommercialID

New-ItemProperty -Path $vIEDataOptInPath -Name IEDataOptIn -Type DWord -Value $IEOptInLevel

New-ItemProperty -Path $registryPath$Name -Name $name2 -Value $value `

    -PropertyType DWORD -Force | Out-Null

Write-host -f green "Registry keys added for Telemetry"

}

 

 

 

 

References

Configure telemetry

Get Started link

Win 7,8 Opt in link


Viewing all articles
Browse latest Browse all 34890

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>