Configure target Subscription Manager
Configurer le Gestionnaire d’abonnements cible
Explanation
This policy setting allows you to configure the server address, refresh interval, and issuer certificate authority (CA) of a target Subscription Manager.
If you enable this policy setting, you can configure the Source Computer to contact a specific FQDN (Fully Qualified Domain Name) or IP Address and request subscription specifics.
Use the following syntax when using the HTTPS protocol:
Server=https://<FQDN of the collector>:5986/wsman/SubscriptionManager/WEC,Refresh=<Refresh interval in seconds>,IssuerCA=<Thumb print of the client authentication certificate>. When using the HTTP protocol, use port 5985.
If you disable or do not configure this policy setting, the Event Collector computer will not be specified.
Ce paramètre de stratégie permet de configurer l’adresse serveur, l’intervalle d’actualisation et l’autorité de certification de l’émetteur d’un Gestionnaire d’abonnements cible.
Si vous activez ce paramètre de stratégie, vous pouvez configurer l’ordinateur source de sorte qu’il contacte un nom de domaine complet (FQDN, Fully Qualified Domain Name) ou une adresse IP spécifiques et demande des détails précis sur l’abonnement.
Utilisez la syntaxe suivante lorsque le protocole HTTPS est utilisé :
Server=https://<FQDN du collecteur>:5986/wsman/SubscriptionManager/WEC,Refresh=<Intervalle d’actualisation en secondes>,IssuerCA=<Impression miniature du certificat d’authentification client>. Avec le protocole HTTP, utilisez le port 5985.
Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, l’ordinateur collecteur d’événements n’est pas spécifié.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\EventLog\EventForwarding- 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: EventForwarding/SubscriptionManager
$k = 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\EventForwarding\SubscriptionManager'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# SubscriptionManagers
# Non-additive list: existing values of the key are cleared first
if (Test-Path -Path $k) { (Get-Item -Path $k).Property | ForEach-Object { Remove-ItemProperty -Path $k -Name ([WildcardPattern]::Escape($_)) -ErrorAction SilentlyContinue } }
$values = @('<value1>', '<value2>') # Replace the values with your own
$i = 1
foreach ($v in $values) { Set-ItemProperty -Path $k -Name ('' + $i) -Value $v -Type String; $i++ }Disable
# Disable: EventForwarding/SubscriptionManager
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": EventForwarding/SubscriptionManager
$k = 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\EventForwarding\SubscriptionManager'
Remove-Item -Path $k -Recurse -Force -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| SubscriptionManagersSubscriptionManager_Listbox | List (table)list | Software\Policies\Microsoft\Windows\EventLog\EventForwarding\SubscriptionManagerValues named “” + number | REG_SZ (values under the key) |