DirectAccess Passive Mode
Mode passif DirectAccess
Explanation
Specifies whether NCA service runs in Passive Mode or not.
Set this to Disabled to keep NCA probing actively all the time. If this setting is not configured, NCA probing is in active mode by default.
Indique si le service de l’Assistant Connectivité réseau fonctionne ou non en mode passif.
Affectez à ce paramètre de stratégie la valeur Désactivé pour empêcher l’Assistant Connectivité réseau d’effectuer en permanence une détection active. Si vous ne configurez pas ce paramètre de stratégie, la détection par l’Assistant Connectivité réseau est en mode actif par défaut.
Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\NetworkConnectivityAssistant- Value name
PassiveMode
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_DWORD = 0 |
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: nca/PassiveMode
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\NetworkConnectivityAssistant'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'PassiveMode' -Value 1 -Type DWordDisable
# Disable: nca/PassiveMode
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\NetworkConnectivityAssistant'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'PassiveMode' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": nca/PassiveMode
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\NetworkConnectivityAssistant'
Remove-ItemProperty -Path $k -Name 'PassiveMode' -ErrorAction SilentlyContinue