Last active
September 26, 2017 04:43
-
-
Save neilmartin83/46a02662f0245d36f61bd7ae4ec2a9bf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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