Open in the explorer

Restrict potentially unsafe HTML Help functions to specified folders

Restreindre des fonctions d’aide HTML potentiellement non sécurisées à des dossiers spécifiés

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › System FR: Configuration ordinateur › Stratégies › Modèles d'administration › Système
Supported on
At least Internet Explorer 6 Service Pack 1 FR: Au minimum Internet Explorer 6 Service Pack 1
ADMX file
Help.admx
Internal name
Help/HelpQualifiedRootDir_Comp

Explanation

This policy setting allows you to restrict certain HTML Help commands to function only in HTML Help (.chm) files within specified folders and their subfolders. Alternatively, you can disable these commands on the entire system. It is strongly recommended that only folders requiring administrative privileges be added to this policy setting.

If you enable this policy setting, the commands function only for .chm files in the specified folders and their subfolders.

To restrict the commands to one or more folders, enable the policy setting and enter the desired folders in the text box on the Settings tab of the Policy Properties dialog box. Use a semicolon to separate folders. For example, to restrict the commands to only .chm files in the %windir%\help folder and D:\somefolder, add the following string to the edit box: "%windir%\help;D:\somefolder".

Note: An environment variable may be used, (for example, %windir%), as long as it is defined on the system. For example, %programfiles% is not defined on some early versions of Windows.

The "Shortcut" command is used to add a link to a Help topic, and runs executables that are external to the Help file. The "WinHelp" command is used to add a link to a Help topic, and runs a WinHLP32.exe Help (.hlp) file.

To disallow the "Shortcut" and "WinHelp" commands on the entire local system, enable the policy setting and leave the text box on the Settings tab of the Policy Properties dialog box blank.

If you disable or do not configure this policy setting, these commands are fully functional for all Help files.

Note: Only folders on the local computer can be specified in this policy setting. You cannot use this policy setting to enable the "Shortcut" and "WinHelp" commands for .chm files that are stored on mapped drives or accessed using UNC paths.

For additional options, see the "Restrict these programs from being launched from Help" policy.

French text from Windows 11 26H2

Ce paramètre de stratégie vous permet de limiter le fonctionnement de certaines commandes de l’aide HTML aux fichiers d’aide HTML (.chm) dans les dossiers indiqués et leurs sous-dossiers. Vous pouvez également désactiver ces commandes sur l’intégralité du système. Il est vivement conseillé d’ajouter uniquement les dossiers nécessitant des privilèges d’administration à ce paramètre de stratégie.

Si vous activez ce paramètre de stratégie, les commandes ne fonctionnent que pour les fichiers .chm dans les dossiers spécifiés et leurs sous-dossiers.

Pour limiter les commandes à un ou plusieurs dossiers, activez le paramètre de stratégie et entrez les dossiers souhaités dans la zone de texte figurant sous l’onglet Paramètres de la boîte de dialogue Propriétés de la stratégie. Séparez les dossiers par un point-virgule. Par exemple, pour restreindre les commandes aux seuls fichiers .chm dans le dossier %windir%\help et D:\dossier, ajoutez la chaîne suivante à la zone d’édition : « %windir%\help;D:\dossier ».

Remarque : une variable d’environnement peut être utilisée (par exemple %windir%), tant qu’elle est définie sur le système. Par exemple, %programfiles% n’est pas défini dans certaines versions anciennes de Windows.

La commande « Raccourci » permet d’ajouter un lien à une rubrique d’aide et d’exécuter des exécutables externes au fichier d’aide. La commande « WinHelp » permet d’ajouter un lien à une rubrique d’aide et d’exécuter un fichier d’aide WinHLP32.exe (.hlp).

Pour interdire les commandes « Raccourci » et « WinHelp » sur l’intégralité du système local, activez le paramètre de stratégie et laissez vide la zone de texte figurant sous l’onglet Paramètres de la boîte de dialogue Propriétés de la stratégie.

Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, ces commandes fonctionnent pour tous les fichiers d’aide.

Remarque : seuls les dossiers sur l’ordinateur local peuvent être spécifiés dans ce paramètre de stratégie. Vous ne pouvez pas utiliser ce paramètre de stratégie pour activer les commandes « Raccourci » et « WinHelp » lorsque les fichiers .chm sont stockés sur des lecteurs mappés ou accessibles par des chemins d’accès UNC.

Pour obtenir des options supplémentaires, voir la stratégie « Restreindre l’exécution de ces programmes à partir de l’aide ».

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\System
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: Help/HelpQualifiedRootDir_Comp
$k = 'HKLM:\Software\Policies\Microsoft\Windows\System'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Enter folder names separated by semi-colons
Set-ItemProperty -Path $k -Name 'HelpQualifiedRootDir' -Value '<value>' -Type String

Disable

# Disable: Help/HelpQualifiedRootDir_Comp
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": Help/HelpQualifiedRootDir_Comp
$k = 'HKLM:\Software\Policies\Microsoft\Windows\System'
Remove-ItemProperty -Path $k -Name 'HelpQualifiedRootDir' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Enter folder names separated by semi-colons:Entrez les noms de dossiers en les séparant par un point-virgule :HelpQualifiedRootDir_EditText boxtextHelpQualifiedRootDirREG_SZ

Availability