Bypass prompting for Clipboard access for scripts running in the Internet Explorer process
Ignorer les invites liées à l’accès au Presse-papiers pour les scripts qui s’exécutent dans le processus Internet Explorer
Explanation
This policy setting allows you to bypass prompting when a script that is running in the Internet Explorer process attempts to perform a Clipboard operation (delete, copy, or paste) and the URL action for the zone is set to prompt.
If you enable this policy setting, the user is not prompted when a script that is running in the Internet Explorer process performs a Clipboard operation. In the Internet Explorer process, if the zone behavior is currently set to prompt, it will be bypassed and enabled.
If you disable this policy setting, the user is prompted when a script that is running in the Internet Explorer process attempts to perform a Clipboard operation.
If you do not configure this policy setting, current values of the URL action for the Internet Explorer process prevail.
Ce paramètre de stratégie vous permet d’ignorer les invites lorsqu’un script qui s’exécute dans le processus Internet Explorer tente d’effectuer une opération sur le Presse-papiers (supprimer, copier ou coller) et que l’action d’URL de la zone est définie pour afficher les invites.
Si vous activez ce paramètre de stratégie, l’utilisateur ne reçoit pas d’invite lorsqu’un script qui s’exécute dans le processus Internet Explorer effectue une opération sur le Presse-papiers. Cela signifie que si le comportement de la zone est défini pour afficher les invites dans le processus Internet Explorer, il est ignoré et activé.
Si vous désactivez ce paramètre de stratégie, l’utilisateur reçoit une invite lorsqu’un script qui s’exécute dans le processus Internet Explorer tente d’effectuer une opération sur le Presse-papiers.
Si vous ne configurez pas ce paramètre de stratégie, les valeurs actuelles de l’action d’URL pour le processus Internet Explorer sont prioritaires.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Internet Explorer\Main\FeatureControl\Feature_Enable_Script_Paste_URLAction_If_PromptHKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Main\FeatureControl\Feature_Enable_Script_Paste_URLAction_If_Prompt- Value name
- not defined in the ADMX
| State | Value written | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Enabled |
| ||||||||||||
| Disabled |
|
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.
Computer (HKLM)
Enable
# Enable: inetres/IESF_PolicyScriptPasteExplorerProcesses
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Main\FeatureControl\Feature_Enable_Script_Paste_URLAction_If_Prompt'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name '(Reserved)' -Value '1' -Type String
Set-ItemProperty -Path $k -Name 'explorer.exe' -Value '1' -Type String
Set-ItemProperty -Path $k -Name 'iexplore.exe' -Value '1' -Type StringDisable
# Disable: inetres/IESF_PolicyScriptPasteExplorerProcesses
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Main\FeatureControl\Feature_Enable_Script_Paste_URLAction_If_Prompt'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name '(Reserved)' -Value '0' -Type String
Set-ItemProperty -Path $k -Name 'explorer.exe' -Value '0' -Type String
Set-ItemProperty -Path $k -Name 'iexplore.exe' -Value '0' -Type StringRevert to "Not configured"
# Revert to "Not configured": inetres/IESF_PolicyScriptPasteExplorerProcesses
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Main\FeatureControl\Feature_Enable_Script_Paste_URLAction_If_Prompt'
Remove-ItemProperty -Path $k -Name '(Reserved)' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'explorer.exe' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'iexplore.exe' -ErrorAction SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"