Created
September 26, 2017 04:33
-
-
Save neilmartin83/f564f5bf45bc19b3f244825294a0d586 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 last update date | |
data='/Library/Application Support/Microsoft/scep/modules/data/data.txt' | |
if [ -f "$data" ] | |
then | |
unixdate=`grep -A 1 "LastUpdate=" "$data" | grep "LastUpdate=" | cut -d "=" -f 2` | |
realdate=`date -r $unixdate "+%Y-%m-%d %H:%M:%S"` | |
echo "<result>$realdate</result>" | |
else | |
echo "<result>Not Installed</result>" | |
fi | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment