This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Proper folder exclususion syntax

I am trying to find the correct syntax for entering Exclusions for folders.

File exclusions are not at issue  path\filemane.ext

My
question is simple do we need the ending backslash \ when excluding folders  ??????

Correct
format for folder (and sub folders)  exclusion—for any drive:    ???

\program files\sophos\

or

\program files\sophos\*.*

Are both correct ??

Incorrect format :  ?????

\program files\sophos

I found both formats in the documents as correct.

Sources of info -- In your document From Sophos Endpoint Security and Control - help  document

Section 4.3.4 Specifying file names and paths of scanning exclusion items Standard naming conventions

Exclude a specific folder

Specify a folder path including a drive letter or network share name to exclude everything in that folder and below:

D:\Tools\logs

Exclude  all folders with the same name

Specify a folder path without a drive letter or network share name to exclude everything from that folder and below on any
drive or network share. For example, \Tools\logs excludes the following folders:

C:\Tools\logs

\\Server\Tools\logs

Note: You must specify the entire path up to the drive letter or network share name. In the example

above, specifying \logs   would not exclude any files.

From kb’’’’s on the web

You can specify a folder path without drive letter or share,
and Sophos Anti-Virus excludes everything from that folder and below on any
drive or share. For example

 \Tools\logs\

excludes everything from the Tools\logs folder and below on
any drive or share, including \\Server2\Tools\logs\foo.log and
F:\Tools\logs\bar.txt.

Note: If specifying a folder path without drive letter or share,
you must specify the entire path up to the drive letter or share. So in the
above example, specifying simply \logs\ would not exclude any files.

Folder exclusion  example

To exclude C:\Program Files\Sophos\ ('Program Files' has 12 characters and a space) you must add to
the exclusion list:

  1.     C:\Program Files\Sophos\
  2.     C:\Progra~1\Sophos\

      
Article ID: 13045

      
Created: 5 May 2005

      
Last updated: 22 Mar
2012

:23209


This thread was automatically locked due to age.
  • Hello jfe,

    first of all about what seems to be a contradiction (or at least an inconsistency): The Help describes the client GUI - you will notice that you have a drop down for Type. If you select Folder you can enter the name with or without a trailing backslash - after pressing OK the name will end with a backslash (which is also there if you edit the item).

    Editing an AV policy you don't have theType drop down thus you need the trailing backslash to indicate a folder.

    *.* denotes all files in the folder with an extension - so neither subfolders nor name-only items will be excluded.

    HTH

    Christian

    :23219