Prevent indexing of certain file types
Empêcher l’indexation de certains types de fichiers
Explanation
Enabling this policy allows you to edit the list of file types to exclude from indexing. The end user cannot modify this list. You should separate each extension type with a semicolon.
Note that limitations of Group Policy Object Editor require this list to be split across multiple values. Desktop Search combines all these into a single exclusion list.
When this policy is disabled or not configured, the user can edit the default list of excluded file types. If you enable and then disable this policy, the user's original list is restored.
If you want to specify an initial default list of excluded file types that users can change later, see the administration guide for information about how to set up the initial machine preference.
L’activation de cette stratégie permet de modifier la liste des types de fichiers à exclure de l’indexation. L’utilisateur final ne peut pas modifier cette liste. Vous devez séparer chaque type d’extension par un point-virgule.
Les limitations de l’éditeur d’objet stratégie de groupe impliquent le découpage de cette liste entre plusieurs valeurs. Windows Search combine toutes ces extensions dans une seule liste d’exclusion.
Lorsque cette stratégie est désactivée ou non configurée, l’utilisateur peut modifier la liste par défaut des types de fichiers exclus. Si vous activez puis désactivez cette stratégie, la liste originale de l’utilisateur est restaurée.
Si vous voulez spécifier une liste par défaut initiale des types de fichiers exclus que les utilisateurs peuvent modifier par la suite, consultez le guide d’administration pour plus d’informations sur la procédure de définition de la préférence initiale de l’ordinateur.
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/ExcludedExtensionsMultiline
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Exclude
Set-ItemProperty -Path $k -Name 'ExcludedExtensionsMultiline0' -Value '<value>' -Type String
# and
Set-ItemProperty -Path $k -Name 'ExcludedExtensionsMultiline1' -Value '<value>' -Type String
# and
Set-ItemProperty -Path $k -Name 'ExcludedExtensionsMultiline2' -Value '<value>' -Type String
# and
Set-ItemProperty -Path $k -Name 'ExcludedExtensionsMultiline3' -Value '<value>' -Type StringDisable
# Disable: Search/ExcludedExtensionsMultiline
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": Search/ExcludedExtensionsMultiline
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search'
Remove-ItemProperty -Path $k -Name 'ExcludedExtensionsMultiline0' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'ExcludedExtensionsMultiline1' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'ExcludedExtensionsMultiline2' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'ExcludedExtensionsMultiline3' -ErrorAction SilentlyContinueOptions (4)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| ExcludeExclureExcludedExtensionsMultiline_0 | Text boxtext | ExcludedExtensionsMultiline0 | REG_SZ | Default (UI): .386;.aps;.bin;.bk1;.bk2;.bkf;.blf;.bsc;.btr;.cat;.cfg;.cgm;.chk;.ci;.crwl;.cur;.dat;.dbg;.dct;.dir;.dl_;.el;.evt;.ex_;.exp;.eyb;.fnt;.fon;.ghi;.gthr;.hqx;.icm;.idb;.idx;.ilk;.imc;.in_;.inl;.inv |
| andetExcludedExtensionsMultiline_1 | Text boxtext | ExcludedExtensionsMultiline1 | REG_SZ | Default (UI): .ipp;.jbf;.lib;.local;.log;.log1;.log2;.m14;.mac;.man;.manifest;.map;.MAPIMail;.mmf;.mui;.muimanifest;.mv;.ncb;.obj;.oc_;.ocx;.onecache;.onetoc;.onetoc2;.ost;.pch;.pdb;.pds;.pf;.pic;.pma;.pmc;.pml |
| andetExcludedExtensionsMultiline_2 | Text boxtext | ExcludedExtensionsMultiline2 | REG_SZ | Default (UI): .pmr;.pst;.res;.rmp;.rpc;.rsp;.sbr;.sc2;.sit;.sr_;.sy_;.sym;.TMCONTAINER00000000000000000001;.tlb;.tlh;.tmf;.tmp;.ttc;.ttf;.ttx;.TMCONTAINER00000000000000000002;.ufm;.vbx;.vxd;.wll;.wlt;.xbm;.xix;.z96;.ZFSendToTarget |
| andetExcludedExtensionsMultiline_3 | Text boxtext | ExcludedExtensionsMultiline3 | REG_SZ |