Do not allow Folder Options to be opened from the Options button on the View tab of the ribbon
Ne pas autoriser l’ouverture des Options des dossiers à partir du bouton Options de l’onglet Affichage du ruban
Explanation
This policy setting allows you to prevent users from accessing Folder Options through the View tab on the ribbon in File Explorer.
Folder Options allows users to change the way files and folders open, what appears in the navigation pane, and other advanced view settings.
If you enable this policy setting, users will receive an error message if they tap or click the Options button or choose the Change folder and search options command, and they will not be able to open Folder Options.
If you disable or do not configure this policy setting, users can open Folder Options from the View tab on the ribbon.
Ce paramètre de stratégie vous permet d’empêcher les utilisateurs d’accéder aux Options des dossiers qui se trouvent dans l’onglet Affichage sur le ruban de l’Explorateur de fichiers.
Les Options des dossiers permettent aux utilisateurs de modifier le mode d’ouverture des fichiers et des dossiers, ce qui apparaît dans le volet de navigation, ainsi que d’autres paramètres d’affichage avancés.
Si vous activez ce paramètre de stratégie, les utilisateurs reçoivent alors un message d’erreur s’ils appuient ou cliquent sur le bouton Options, ou s’ils choisissent la commande Modifier les options des dossiers et de recherche. En outre, ils ne sont pas en mesure d’ouvrir les Options des dossiers.
Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, les utilisateurs peuvent ouvrir les Options des dossiers dans l’onglet Affichage situé sur le ruban.
Registry
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer- Value name
NoFolderOptions
| State | Value written |
|---|---|
| Enabled | not defined in the ADMX |
| Disabled | not defined in the ADMX |
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
The ADMX does not specify the value written when enabled; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled). The commands below use 1/0 as an assumption.
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: WindowsExplorer/NoFolderOptions
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'NoFolderOptions' -Value 1 -Type DWord # assumed value (not defined in the ADMX)Disable
# Disable: WindowsExplorer/NoFolderOptions
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'NoFolderOptions' -Value 0 -Type DWord # assumed value (not defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": WindowsExplorer/NoFolderOptions
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
Remove-ItemProperty -Path $k -Name 'NoFolderOptions' -ErrorAction SilentlyContinue