Skip to main content
Jamf Nation, hosted by Jamf, is the largest Apple IT management community in the world. Dialog with your fellow IT professionals, gain insight about Apple device deployments, share best practices and bounce ideas off each other. Join the conversation.

runSophosScan.sh -- Run Sophos Anti-Virus Scan

Synopsis

sudo runSophosScan.sh
sudo runSophosScan.sh <mountPoint> <computerName> <currentUsername> <scanPath> <quarantine>

If there is a hardcoded value specified for the <scanPath> parameter or if there is a value
passed to <scanPath> by the Casper Suite, only the specified path will be scanned. By
default, the entire contents of the boot volume will be scanned.

If there is a hardcoded value specified for the <quarantine> parameter, or if there is a
value passed to <quarantine> from the Casper Suite, files will also be quarantined if they
are found to be infected. The files will be quarantined only if passed one of the
following values:

"TRUE"
"YES"

Description

This script will force sophos to perform a virus scan on the hard drive and will quarantine any infected files if desired. The default behavior of the script is to simply perform a scan of the drive and report back any infected files in the output of the script. Additionally, files can be quarantined if found to be infected with a virus. Please note that this script was created using the latest version of Sophos AV available at the time of the script creation (4.9). Compatibility with versions of Sophos AV created prior to and post 4.9 is unknown at this time.

Download

Preview

Generating Preview...

301 Downloads
Uploaded: 11/5/11 at 5:09 PM by jake
Product: Sophos Antivirus for Mac