Configure the Commercial ID
Configurer l’ID commercial
Explanation
This policy setting defines the identifier used to uniquely associate this device’s diagnostic data data as belonging to a given organization. If your organization is participating in a program that requires this device to be identified as belonging to your organization then use this setting to provide that identification. The value for this setting will be provided by Microsoft as part of the onboarding process for the program.
If you disable or do not configure this policy setting, then Microsoft will not be able to use this identifier to associate this machine and its diagnostic data data with your organization.
Ce paramètre de stratégie définit l’identificateur utilisé pour associer de façon unique les données de diagnostic de cet appareil à une organisation donnée. Si votre organisation participe à un programme qui nécessite l’identification de cet appareil comme appartenant à votre organisation, utilisez ce paramètre pour fournir cette identification. La valeur de ce paramètre est fournie par Microsoft dans le cadre du processus d’intégration au programme.
Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, Microsoft ne peut pas utiliser cet identificateur pour associer cet ordinateur et ses données de diagnostic à votre organisation.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\DataCollection- Value name
- not defined in the ADMX
Enable / disable values: not defined in the ADMX (see the options below).
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Enable
# Enable: DataCollection/CommercialIdPolicy
$k = 'HKLM:\Software\Policies\Microsoft\Windows\DataCollection'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Commercial Id
Set-ItemProperty -Path $k -Name 'CommercialId' -Value '<value>' -Type StringDisable
# Disable: DataCollection/CommercialIdPolicy
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": DataCollection/CommercialIdPolicy
$k = 'HKLM:\Software\Policies\Microsoft\Windows\DataCollection'
Remove-ItemProperty -Path $k -Name 'CommercialId' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Commercial Id:ID commercial :CommercialIdValue | Text boxtext | CommercialId | REG_SZ | Required |