Markdown preview: Show images from local and network sources
Cette stratégie n'a pas de traduction française dans les modèles de l'éditeur ; le texte original est en anglais.
Explication
This policy configures whether images from local and network (UNC) sources should be displayed in Markdown file previews.
If you enable this setting, images from the document's folder and network shares will always be shown and the user won't be able to disable it.
If you disable this setting, all images will be blocked and the user won't be able to enable local image rendering.
If you don't configure this setting, users are able to enable or disable showing local images.
Note: Online/remote images (http/https URLs) are always blocked regardless of this setting. Images are rendered inside a sandboxed WebView2 control with scripts disabled. The Mark-of-the-Web (Zone Identifier) is not checked; access is controlled by path validation against the document's directory (local) or share root (UNC).
Registre
HKEY_LOCAL_MACHINE\Software\Policies\PowerToysHKEY_CURRENT_USER\Software\Policies\PowerToys- Nom de la valeur
MarkdownAllowLocalImages
| État | Valeur écrite |
|---|---|
| Activé | REG_DWORD = 1 |
| Désactivé | REG_DWORD = 0 |
PowerShell
Commandes PowerShell qui écrivent dans le registre ce que la stratégie écrirait. Les valeurs entre chevrons (<…>) sont à remplacer.
Écrire directement dans le registre contourne la stratégie de groupe : si une GPO gère cette valeur, elle sera réécrite au prochain gpupdate ; sinon la valeur reste en place (effet « tatouage »). Préférez une GPO ou, en local, LGPO.exe. Exécutez PowerShell en administrateur pour HKLM. Certaines stratégies demandent un redémarrage ou gpupdate /force.
Ordinateur (HKLM)
Activer
# Activer : PowerToys/MarkdownAllowLocalImages
$k = 'HKLM:\Software\Policies\PowerToys'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'MarkdownAllowLocalImages' -Value 1 -Type DWordDésactiver
# Désactiver : PowerToys/MarkdownAllowLocalImages
$k = 'HKLM:\Software\Policies\PowerToys'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'MarkdownAllowLocalImages' -Value 0 -Type DWordRevenir à « Non configuré »
# Revenir à « Non configuré » : PowerToys/MarkdownAllowLocalImages
$k = 'HKLM:\Software\Policies\PowerToys'
Remove-ItemProperty -Path $k -Name 'MarkdownAllowLocalImages' -ErrorAction SilentlyContinueUtilisateur (HKCU)
Activer
Désactiver
Revenir à « Non configuré »
Application
Microsoft PowerToys (Microsoft) — modèles de novembre 2026
Modèles officiels téléchargés le 12 novembre 2026.