Steuert, ob unload Ereignishandler deaktiviert werden können.: Registrierungswert ForcePermissionPolicyUnloadDefaultEnabled (WebView2)BenutzerHKCU\Software\Policies\Microsoft\Edge\WebView2
- Richtlinien-ID
- ForcePermissionPolicyUnloadDefaultEnabled
- Bereich
- Computerkonfiguration, Benutzerkonfiguration
- Unterstützt unter
- Microsoft Edge Version 118, Windows 7 oder höher
- Quelle
- Microsoft Edge Policy Templates (Version 155.0.4283.45)
- Kategorie
- Microsoft Edge WebView2
Registrierung
ForcePermissionPolicyUnloadDefaultEnabled
REG_DWORDBenutzerComputer…\Software\Policies\Microsoft\Edge\WebView2HKCU\Software\Policies\Microsoft\Edge\WebView2 Aktueller Schlüssel
HKLM\Software\Policies\Microsoft\Edge\WebView2
HKLM\Software\Policies\Microsoft\Edge\WebView2
- Wert bei Aktivierung
- 1
- Wert bei Deaktivierung
- 0
Mit .reg · CMD · PowerShell anwenden
BenutzerEinstellung pro Konto
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Policies\Microsoft\Edge\WebView2] ; Optionen (nur eine verwenden) ; Aktiviert "ForcePermissionPolicyUnloadDefaultEnabled"=dword:00000001 ; Deaktiviert "ForcePermissionPolicyUnloadDefaultEnabled"=dword:00000000
CMD
:: Optionen (nur eine verwenden) :: Aktiviert reg add "HKCU\Software\Policies\Microsoft\Edge\WebView2" /v "ForcePermissionPolicyUnloadDefaultEnabled" /t REG_DWORD /d 1 /f :: Deaktiviert reg add "HKCU\Software\Policies\Microsoft\Edge\WebView2" /v "ForcePermissionPolicyUnloadDefaultEnabled" /t REG_DWORD /d 0 /f
PowerShell
# Gemeinsam: Schlüssel erstellen New-Item -Path 'HKCU:\Software\Policies\Microsoft\Edge\WebView2' -Force | Out-Null # Optionen (nur eine verwenden) # Aktiviert New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge\WebView2' -Name 'ForcePermissionPolicyUnloadDefaultEnabled' -PropertyType DWord -Value 1 -Force | Out-Null # Deaktiviert New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge\WebView2' -Name 'ForcePermissionPolicyUnloadDefaultEnabled' -PropertyType DWord -Value 0 -Force | Out-Null
ComputerComputerweite Einstellung
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Edge\WebView2] ; Optionen (nur eine verwenden) ; Aktiviert "ForcePermissionPolicyUnloadDefaultEnabled"=dword:00000001 ; Deaktiviert "ForcePermissionPolicyUnloadDefaultEnabled"=dword:00000000
CMD
:: Optionen (nur eine verwenden) :: Aktiviert reg add "HKLM\Software\Policies\Microsoft\Edge\WebView2" /v "ForcePermissionPolicyUnloadDefaultEnabled" /t REG_DWORD /d 1 /f :: Deaktiviert reg add "HKLM\Software\Policies\Microsoft\Edge\WebView2" /v "ForcePermissionPolicyUnloadDefaultEnabled" /t REG_DWORD /d 0 /f
PowerShell
# Gemeinsam: Schlüssel erstellen New-Item -Path 'HKLM:\Software\Policies\Microsoft\Edge\WebView2' -Force | Out-Null # Optionen (nur eine verwenden) # Aktiviert New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge\WebView2' -Name 'ForcePermissionPolicyUnloadDefaultEnabled' -PropertyType DWord -Value 1 -Force | Out-Null # Deaktiviert New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge\WebView2' -Name 'ForcePermissionPolicyUnloadDefaultEnabled' -PropertyType DWord -Value 0 -Force | Out-Null