Control rich previews for attachments
Contrôler les aperçus complets pour les pièces jointes
Explanation
Enabling this policy defines a semicolon-delimited list of file extensions which will be allowed to have rich attachment previews.
When this policy is disabled or not configured the default settings will be set to .bmp;.emf;.gif;.jpg;.jpeg;.png;.wmf;.wrn;.txt;.err;.xml;.cpp;.c;.h;.cxx;.hxx;.idl;.cs;.vb;.idl;.xsd;.doc;.docx;.xls;.xlsx;.ppt;.pptx;.vsd;.xlsb;.xltx;.dot;.rtf
L’activation de cette stratégie définit une liste d’extensions de fichier séparées par des points virgules pour lesquelles l’aperçu complet est autorisé.
Si cette stratégie est désactivée ou non configurée, les paramètres par défaut sont définis sur .bmp;.emf;.gif;.jpg;.jpeg;.png;.wmf;.wrn;.txt;.err;.xml;.cpp;.c;.h;.cxx;.hxx;.idl;.cs;.vb;.idl;.xsd;.doc;.docx;.xls;.xlsx;.ppt;.pptx;.vsd;.xlsb;.xltx;.dot;.rtf
Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search- 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: Search/RichAttachmentPreviews
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Control Rich Previews for Attachments
Set-ItemProperty -Path $k -Name 'RichAttachmentPreviews' -Value '<value>' -Type StringDisable
# Disable: Search/RichAttachmentPreviews
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": Search/RichAttachmentPreviews
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search'
Remove-ItemProperty -Path $k -Name 'RichAttachmentPreviews' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Control Rich Previews for AttachmentsContrôler les aperçus complets pour les pièces jointesRichAttachmentPreviews | Text boxtext | RichAttachmentPreviews | REG_SZ |