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 | |
# Get username of current logged in user | |
# This method breaks if you allow multiple accounts logged in. | |
USERNAME=$(ls -l /dev/console | awk '{print $3}') | |
membership=$(dsmemberutil checkmembership -U $USERNAME -G admin) | |
if [ "$membership" == "user is not a member of the group" ]; | |
then | |
if ! launchctl list|grep -q com.apple.atrun; then launchctl load -w /System/Library/LaunchDaemons/com.apple.atrun.plist; fi |
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
Get-WmiObject -Class Win32_Product ` | |
-Filter "Name = 'Sophos SafeGuard Client Configuration 8.00.2.16'" |