Serveur de rapports
Vérifié avec Windows 11 25H2 — mis à jour le 30 juillet 2026
Pris en charge sur : Au minimum Windows Server 2008 R2 ou Windows 7
Chemin dans la console GPO
Configuration ordinateur\Modèles d'administration\Système\App-V\Création de rapports Description
URL du serveur de rapports : affiche l'URL du serveur de rapports. Heure du rapport : moment auquel les données du client doivent être rapportées au serveur. La plage acceptable est 0~23, ce qui correspond aux 24 heures d'une journée. Il est conseillé de ne pas définir cette heure sur une heure de pointe, par ex. 9 heures. Retarder les rapports du nombre de minutes aléatoires : nombre de minutes maximum de délai aléatoire en plus du temps de rapport. Pour un système occupé, le délai aléatoire permet de réduire la charge du serveur. Répéter les rapports pour chaque (jours) : l'intervalle périodique en jours pour envoyer les données de rapport. Limite du cache de données : cette valeur spécifie la taille maximale en mégaoctets (Mo) du cache XML pour le stockage des informations de rapport. La valeur par défaut est 20 Mo. La taille s'applique au cache en mémoire. Lorsque la limite est atteinte, le fichier journal est substitué. Lorsqu'un nouvel enregistrement doit être ajouté (bas de la liste), un ou plusieurs des plus anciens enregistrements (haut de la liste) sont supprimés pour faire de la place. Un avertissement est journalisé dans le journal Client et dans le journal des événements la première fois que cela se produit et n'est pas de nouveau journalisé tant que le cache n'a pas été correctement effacé lors de la transmission et que le journal n'est pas de nouveau rempli. Taille de bloc de données : cette valeur spécifie la taille maximale en octets à transmettre au serveur à la fois lors d'un transfert de rapports pour éviter les échecs de transmission permanents lorsque le journal a atteint une taille importante. La valeur par défaut est 65536. Lors de la transmission de données au serveur, un bloc à la fois d'enregistrements d'application qui est inférieur ou égal à la taille de bloc en octets de données XML sera supprimé du cache et envoyé au serveur. Chaque bloc contiendra des données Client générales et des données de liste de package globales ajoutées, et ces données ne seront pas incluses dans les calculs de taille de bloc. Il existe un risque potentiel qu'une liste de packages très importante entraîne des échecs de transmission sur des connexions à faible bande passante ou non fiables.
Registre
SOFTWARE\Policies\Microsoft\AppV\Client\Reporting Nom de valeur : ReportingEnabled
Activé : ReportingEnabled = 1
Désactivé : ReportingEnabled = 0
MDM / Intune (CSP)
./Device/Vendor/MSFT/Policy/Config/AppVirtualization/AllowReportingServer Documentation Microsoft Learn Données de correspondance : Microsoft Learn (CC BY 4.0)
Générateur d'exports
BETAConfigurez l'état, la portée et les options, puis générez les sorties .reg, PowerShell, Intune et SCCM — ou ajoutez le paramètre à une collection multi-paramètres.
Ces exports écrivent le registre — ce n'est pas une GPO managée. ⓘ
Fichier .reg
Windows Registry Editor Version 5.00
; Exported from gporais.com
; Policy: Serveur de rapports
; State: Enabled
; Supported on: Au minimum Windows Server 2008 R2 ou Windows 7
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\AppV\Client\Reporting]
"ReportingEnabled"=dword:00000001
"ReportingServerURL"=""
"ReportingStartTime"=dword:00000003
"ReportingRandomDelay"=dword:0000001e
"ReportingInterval"=dword:00000001
"ReportingDataCacheLimit"=dword:00000014
"ReportingDataBlockSize"=dword:00010000 Autres formats (PowerShell, Intune, SCCM)
PowerShell
# Exported from gporais.com
# Policy: Serveur de rapports
# State: Enabled
# Supported on: Au minimum Windows Server 2008 R2 ou Windows 7
$path = 'HKLM:\SOFTWARE\Policies\Microsoft\AppV\Client\Reporting'
New-Item -Path $path -Force | Out-Null
Set-ItemProperty -Path $path -Name 'ReportingEnabled' -Value 1 -Type DWord
Set-ItemProperty -Path $path -Name 'ReportingServerURL' -Value '' -Type String
Set-ItemProperty -Path $path -Name 'ReportingStartTime' -Value 3 -Type DWord
Set-ItemProperty -Path $path -Name 'ReportingRandomDelay' -Value 30 -Type DWord
Set-ItemProperty -Path $path -Name 'ReportingInterval' -Value 1 -Type DWord
Set-ItemProperty -Path $path -Name 'ReportingDataCacheLimit' -Value 20 -Type DWord
Set-ItemProperty -Path $path -Name 'ReportingDataBlockSize' -Value 65536 -Type DWord Intune XML
OMA-URI: ./Device/Vendor/MSFT/Policy/Config/AppVirtualization/AllowReportingServer
Data type: String
Value:
<enabled/>
<data id="Reporting_Server_URL_Prompt" value=""/>
<data id="Start_Time" value="3"/>
<data id="Random_Delay" value="30"/>
<data id="Interval" value="1"/>
<data id="Data_Cache_Limit" value="20"/>
<data id="Data_Block_Size" value="65536"/> Intune Remediation
# === Detection script ===
# Exported from gporais.com
# Policy: Serveur de rapports
# State: Enabled
# Supported on: Au minimum Windows Server 2008 R2 ou Windows 7
function Test-RegistryValue {
param(
[Parameter(Mandatory = $true)][string]$Path,
[Parameter(Mandatory = $true)][string]$Name,
[object]$Expected,
[ValidateSet('String', 'DWord', 'MultiString')][string]$Kind = 'String',
[switch]$Absent
)
try {
$item = Get-ItemProperty -LiteralPath $Path -Name $Name -ErrorAction Stop
} catch {
return $Absent.IsPresent
}
if ($Absent.IsPresent) { return $false }
$actual = $item.$Name
if ($Kind -eq 'DWord') { return ([int64]$actual) -eq ([int64]$Expected) }
if ($Kind -eq 'MultiString') {
$actualValues = @($actual)
$expectedValues = @($Expected)
if ($actualValues.Count -ne $expectedValues.Count) { return $false }
for ($i = 0; $i -lt $expectedValues.Count; $i++) {
if ([string]$actualValues[$i] -ne [string]$expectedValues[$i]) { return $false }
}
return $true
}
return [string]$actual -eq [string]$Expected
}
$checks = @(
(Test-RegistryValue -Path 'HKLM:\SOFTWARE\Policies\Microsoft\AppV\Client\Reporting' -Name 'ReportingEnabled' -Expected 1 -Kind DWord)
(Test-RegistryValue -Path 'HKLM:\SOFTWARE\Policies\Microsoft\AppV\Client\Reporting' -Name 'ReportingServerURL' -Expected '' -Kind String)
(Test-RegistryValue -Path 'HKLM:\SOFTWARE\Policies\Microsoft\AppV\Client\Reporting' -Name 'ReportingStartTime' -Expected 3 -Kind DWord)
(Test-RegistryValue -Path 'HKLM:\SOFTWARE\Policies\Microsoft\AppV\Client\Reporting' -Name 'ReportingRandomDelay' -Expected 30 -Kind DWord)
(Test-RegistryValue -Path 'HKLM:\SOFTWARE\Policies\Microsoft\AppV\Client\Reporting' -Name 'ReportingInterval' -Expected 1 -Kind DWord)
(Test-RegistryValue -Path 'HKLM:\SOFTWARE\Policies\Microsoft\AppV\Client\Reporting' -Name 'ReportingDataCacheLimit' -Expected 20 -Kind DWord)
(Test-RegistryValue -Path 'HKLM:\SOFTWARE\Policies\Microsoft\AppV\Client\Reporting' -Name 'ReportingDataBlockSize' -Expected 65536 -Kind DWord)
)
if ($checks -notcontains $false) {
Write-Output 'Compliant'
exit 0
}
Write-Output 'Non-compliant'
exit 1
# === Remediation script ===
# Exported from gporais.com
# Policy: Serveur de rapports
# State: Enabled
# Supported on: Au minimum Windows Server 2008 R2 ou Windows 7
$path = 'HKLM:\SOFTWARE\Policies\Microsoft\AppV\Client\Reporting'
New-Item -Path $path -Force | Out-Null
Set-ItemProperty -Path $path -Name 'ReportingEnabled' -Value 1 -Type DWord
Set-ItemProperty -Path $path -Name 'ReportingServerURL' -Value '' -Type String
Set-ItemProperty -Path $path -Name 'ReportingStartTime' -Value 3 -Type DWord
Set-ItemProperty -Path $path -Name 'ReportingRandomDelay' -Value 30 -Type DWord
Set-ItemProperty -Path $path -Name 'ReportingInterval' -Value 1 -Type DWord
Set-ItemProperty -Path $path -Name 'ReportingDataCacheLimit' -Value 20 -Type DWord
Set-ItemProperty -Path $path -Name 'ReportingDataBlockSize' -Value 65536 -Type DWord Scripts SCCM
# Exported from gporais.com
# Policy: Serveur de rapports
# State: Enabled
# Supported on: Au minimum Windows Server 2008 R2 ou Windows 7
# SCCM Configuration Item guidance:
# Create a Configuration Item of type "Setting: Script".
# Discovery script: use the Detection script below.
# Remediation script: use the Remediation script below.
# Compliance rule: the Discovery script output equals 'Compliant'.
# === Detection script ===
# Exported from gporais.com
# Policy: Serveur de rapports
# State: Enabled
# Supported on: Au minimum Windows Server 2008 R2 ou Windows 7
function Test-RegistryValue {
param(
[Parameter(Mandatory = $true)][string]$Path,
[Parameter(Mandatory = $true)][string]$Name,
[object]$Expected,
[ValidateSet('String', 'DWord', 'MultiString')][string]$Kind = 'String',
[switch]$Absent
)
try {
$item = Get-ItemProperty -LiteralPath $Path -Name $Name -ErrorAction Stop
} catch {
return $Absent.IsPresent
}
if ($Absent.IsPresent) { return $false }
$actual = $item.$Name
if ($Kind -eq 'DWord') { return ([int64]$actual) -eq ([int64]$Expected) }
if ($Kind -eq 'MultiString') {
$actualValues = @($actual)
$expectedValues = @($Expected)
if ($actualValues.Count -ne $expectedValues.Count) { return $false }
for ($i = 0; $i -lt $expectedValues.Count; $i++) {
if ([string]$actualValues[$i] -ne [string]$expectedValues[$i]) { return $false }
}
return $true
}
return [string]$actual -eq [string]$Expected
}
$checks = @(
(Test-RegistryValue -Path 'HKLM:\SOFTWARE\Policies\Microsoft\AppV\Client\Reporting' -Name 'ReportingEnabled' -Expected 1 -Kind DWord)
(Test-RegistryValue -Path 'HKLM:\SOFTWARE\Policies\Microsoft\AppV\Client\Reporting' -Name 'ReportingServerURL' -Expected '' -Kind String)
(Test-RegistryValue -Path 'HKLM:\SOFTWARE\Policies\Microsoft\AppV\Client\Reporting' -Name 'ReportingStartTime' -Expected 3 -Kind DWord)
(Test-RegistryValue -Path 'HKLM:\SOFTWARE\Policies\Microsoft\AppV\Client\Reporting' -Name 'ReportingRandomDelay' -Expected 30 -Kind DWord)
(Test-RegistryValue -Path 'HKLM:\SOFTWARE\Policies\Microsoft\AppV\Client\Reporting' -Name 'ReportingInterval' -Expected 1 -Kind DWord)
(Test-RegistryValue -Path 'HKLM:\SOFTWARE\Policies\Microsoft\AppV\Client\Reporting' -Name 'ReportingDataCacheLimit' -Expected 20 -Kind DWord)
(Test-RegistryValue -Path 'HKLM:\SOFTWARE\Policies\Microsoft\AppV\Client\Reporting' -Name 'ReportingDataBlockSize' -Expected 65536 -Kind DWord)
)
if ($checks -notcontains $false) {
Write-Output 'Compliant'
exit 0
}
Write-Output 'Non-compliant'
exit 1
# === Remediation script ===
# Exported from gporais.com
# Policy: Serveur de rapports
# State: Enabled
# Supported on: Au minimum Windows Server 2008 R2 ou Windows 7
$path = 'HKLM:\SOFTWARE\Policies\Microsoft\AppV\Client\Reporting'
New-Item -Path $path -Force | Out-Null
Set-ItemProperty -Path $path -Name 'ReportingEnabled' -Value 1 -Type DWord
Set-ItemProperty -Path $path -Name 'ReportingServerURL' -Value '' -Type String
Set-ItemProperty -Path $path -Name 'ReportingStartTime' -Value 3 -Type DWord
Set-ItemProperty -Path $path -Name 'ReportingRandomDelay' -Value 30 -Type DWord
Set-ItemProperty -Path $path -Name 'ReportingInterval' -Value 1 -Type DWord
Set-ItemProperty -Path $path -Name 'ReportingDataCacheLimit' -Value 20 -Type DWord
Set-ItemProperty -Path $path -Name 'ReportingDataBlockSize' -Value 65536 -Type DWord Vous construisez une collection multi-paramètres ? Ajoutez ce paramètre et générez des exports combinés (.reg, PowerShell, GPO).