Skip to content

Instantly share code, notes, and snippets.

@neilmartin83
Last active September 26, 2017 04:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neilmartin83/46a02662f0245d36f61bd7ae4ec2a9bf to your computer and use it in GitHub Desktop.
Save neilmartin83/46a02662f0245d36f61bd7ae4ec2a9bf to your computer and use it in GitHub Desktop.
#!/bin/bash
#
# Gathers Microsoft System Center Endpoint Protection Virus Def Version and Date
lastupd='scep/modules/data/updfiles/lastupd.ver'
cd /Library/Application\ Support/Microsoft/
if [ -f "$lastupd" ]
then
scepVer=$(grep -A 2 CONTINUOUS_ENGINE1\] $lastupd | grep versionid | cut -d "=" -f 2 | tr -d '\r')
echo "<result>$scepVer</result>"
else
echo "<result>Not Installed</result>"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment