Posted on 08-27-2018 12:34 PM
Hi Folks,
I'm trying to create an extension attribute to get the MAU status.
By the script is working fine:
But using the same code to create an Extension Attribute is not working.
Does anyone has a tip to solve this?
Thanks in advance,
Solved! Go to Solution.
Posted on 08-27-2018 12:45 PM
MAU How to Check Status EA settings;
Data Type : String
Inventory Display : General
Input Type : Script
HowToCheck=$(defaults read /Users/$loggedInUser/Library/Preferences/com.microsoft.autoupdate2.plist HowToCheck)
if [ "$HowToCheck" ]; then
echo "<result>$HowToCheck</result>"
else
echo "<result>Not Installed</result>"
fi
Posted on 08-27-2018 12:45 PM
MAU How to Check Status EA settings;
Data Type : String
Inventory Display : General
Input Type : Script
HowToCheck=$(defaults read /Users/$loggedInUser/Library/Preferences/com.microsoft.autoupdate2.plist HowToCheck)
if [ "$HowToCheck" ]; then
echo "<result>$HowToCheck</result>"
else
echo "<result>Not Installed</result>"
fi
Posted on 08-27-2018 01:00 PM
Thanks a Lot @Cornoir !
Posted on 08-27-2018 01:51 PM
No worries
Posted on 06-27-2019 11:53 AM
OK, so this was a long time ago, hopefully someone responds, but what Value(s) would you look for this to return to make a Smart Computer Group from this EA?