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

System Variables?

I'd like to use System Variables for AV exclusions.  Can you tell me if this is possible (doesn't seem to be when I've played with it) and if it is possible, what is allowed?

If you can point me to an appropriate KB article that would be great.

Thanks in advance!

:11121


This thread was automatically locked due to age.
  • Hi,

    This is not possible I'm afraid to report. Out of interest, what are you trying to exclude?

    Regards,

    Jak

    :11127
  • Hi Jak,

    Thanks for the straight forward answer.  I was hoping to use system variables for several different exclusion scenarios, here are a couple of examples:

    • C:\Program Files\Novell\ZENworks\ could be %PROGRAMFILES%\Novell\ZENworks\
    • D:\Documents and Settings\User1\Local Settings\ could be %SYSTEMDRIVE%\%HOMEPATH%\LocalSettings\
    That sort of thing, where the system drive could be different to the usual C: drive, so I don't have to enter mulitple entries for the same exclusion, just in case its on a different drive.  Also, for variables in the middle of a path, such as a userid, so I don't have to enter the specific path for every single user (if you have a LOT of users, that leads to a LOT of exclusions in your list).
    Maybe in a future version...?
    :11133
  • the system drive could be different to the usual C: drive

    You don't have to specify the drive. But a localized version of Program Files poses a challenge (but no longer in Win7)

    D:\Documents and Settings\User1\Local Settings\

    I recommend against excluding these. To repeat - do not exclude a user's Local Settings. In rare cases it makes sense to exclude a specific (program) folder from on-access scanning but then you should perform regular scheduled scans in these areas.

    Christian

    :11137
  • The directories I specified were examples of where a system variable might be used.  They are not examples of what I actually want to exclude at this time.  I just want to be able to use system variables in the path (even in the middle of the path).

    :11139
  • Apart from the inherent "danger" of exclusions - what could be specified with a system variable in the middle of the path which needs to be (generally) excluded? And - are you talking about on-access or scheduled scanning? Just trying to understand where this could help you.

    Christian

    :11141
  • I was asked about why I would want to use system variables in an exclusion and after getting swamped with other things I let it pass.  And now I get handed a list of exclusions that include system variables once again so I thought I'd list them here as an example of exclusions needed based on variables:

    • %ZENWORKS_HOME%\bin\analyze.exe

    Of course, there are many others, but its the system variable (%ZENWORKS_HOME%) that I want to be able to set exclusions on rather than having to enter every permutation of the ZENworks home directory.  On my old XP machine, the above variable points to:  C:\Program Files\Novell\ZENworks\

    So, are there plans to allow exclusions using system variables somewhere in the path?

    :13325
  • Can't say what plans Sophos has or doesn't have.

    Exclusions should not be set with "levity". What's the reason that there should be exclusions for ZENworks - performance? Or do they trigger HIPS alerts?

    Christian

    :13329
  • Hi Christian,

    The exclusions are recommended by Novell for endpoints running ZENworks agents (see Novell knowledgebase article: 7007545).

    The one example that I shared with you earlier:

    • %ZENWORKS_HOME%\bin\analyze.exe

    Actually results in several exclusions (for our possible endpoint configurations):

    • C:\Program Files\Novell\zenworks\bin\analyze.exe
    • C:\Program Files (x86)\Novell\zenworks\bin\analyze.exe
    • D:\Program Files\Novell\zenworks\bin\analyze.exe
    • D:\Program Files (x86)\Novell\zenworks\bin\analyze.exe

    Then there's the short file names that have to be added too:

    • C:\Progra~1\Novell\zenworks\bin\analyze.exe
    • C:\Progra~2\Novell\zenworks\bin\analyze.exe
    • D:\Progra~1\Novell\zenworks\bin\analyze.exe
    • D:\Progra~2\Novell\zenworks\bin\analyze.exe

    So you see, for the want of one system variable, I have to add eight exclusions.  When you have several exclusions to add, that makes it difficult to manage.

    Please, let me have system variables in a future version :smileysad:

    :13339
  • Hello Neil,

    reading the article:

    The ZCM logon process can involve significant HDD I/O.
    Anti-Virus scanning of all of this activity can sometimes significantly slow down computers during the logon process.

    This doesn't sound very convincing :smileywink: - significant HDD I/O ... scanning of all of this activity who says that a decent AV product would do this? Even if, say, analyze.exe would be called several hundred times during logon it'll likely be scanned only once. There have been issues with scanning certain applications (3dsmax for example) but these shouldn't be resolved by once and forever excluding them. [Edit: I had to leave yesterday - here's the rest] Indeed I wouldn't feel confident with permanent exclusions on a client. The article is IMO cryptic (or maybe I just can't grasp its intricacies ): Scheduling Anti-Virus Software and Signature updates during Boot [can also considerably slow down a device's initial logon ] - yeah, sure, obvious. Now what's Boot here especially if you also employ Network Access Control (which would then require the updates anyway)? And reading the whole sentence I doubt that I can correctly read and understand English: In addition to AV Scanning Exclusions, Anti-Virus activity scheduled to occur at startup can also considerably slow down a device's initial logon. To me it says "exclusions can slow down" ... :smileysurprised:   

    But it's a nice segue back to the System Variables. One question is what should be done if a variable doesn't resolve (I think  the exclusion must be ignored) and which variables should be considered? Would you expect %UserProfile% to work? Keep in mind that they don't necessarily contain a path at all. Oh, would you permit the %PATH% variable? Or recursion? You see, it's not that simple. Apart from that it would save you from explicitly specifying the "short names". Then there's the question when to resolve them - at startup and whenever a policy is changed (how to evaluate policy compliance is another matter)? To me it's a can of worms ...

    Christian

    Christian

    :13381
  • Hello all, new to this forum and i was looking for an answer to the same question as the OP.

    I am rolling out Sophos to our servers and i would like to be able to use the variables used in the official MS KB article for file level scanning on a Exchange 2010 server 

    echo %ExchangeInstallPath%
    C:\Program Files\Microsoft\Exchange Server\V14\

     When deploying to several Exchange 2010 servers with different installations paths i wouldnt need as many exclusions as i do now.

    The same could be said for any server with IIS or MS SQL

    Regarding which variables should be allowed. This could be a list published by Sophos and the variables should evaluated on runtime just as normal exclusions. It would still be our responsibility that they evaluate to a valid path. Especialy for %ExchangeInstallPatth% which ends in '\' unlike other systemvariables

     Regards 

    Niels

    :21511