This file contains hidden or 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 | |
# Script Name: removezoom.sh | |
# Description: Remove Zoom client form macOS endpoint | |
# Author: Ed Arnold | |
# Date: May 20, 2024 | |
# Version: Script version 1.1 | |
# Exit immediately if a command exits with a non-zero status. | |
# set -e |
This file contains hidden or 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 | |
# Script Name: Jamf EA Report Last Password Change Date | |
# Description: Jamf Pro Extension Attribute that Reports Last Password Change Date | |
# Author: Ed Arnold | |
# Date: May 7, 2024 | |
# Version: Script version 1.1 | |
# Exit immediately if a command exits with a non-zero status. | |
# set -e |
This file contains hidden or 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 | |
# Script Name: Slack Install to Users Applications folder | |
# Description: Slack Install to Users Applications folder, because managed helper need admin to update | |
# Author: Ed Arnold with help and start from Zach Fleck, Mac Admins slack channel | |
# Date: May 7, 2024 | |
# Version: Script version 1.2 | |
# Exit immediately if a command exits with a non-zero status. | |
# set -e |
This file contains hidden or 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 | |
# Prompt the user for their username and password | |
userCredential=$(osascript -e 'Tell application "System Events" to display dialog "Please enter your username and password:" default answer "" with hidden answer' -e 'text returned of result') | |
userPassword=$(osascript -e 'Tell application "System Events" to display dialog "Please enter your password:" default answer "" with hidden answer' -e 'text returned of result') | |
# Parse the username and password from the user input | |
username=$(echo "$userCredential" | cut -d, -f1) | |
password=$(echo "$userPassword" | cut -d, -f1) |
This file contains hidden or 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/sh | |
##### | |
# Installs Cylance along with the token. You enter the token as variable $4 in Jamf | |
##### | |
# version 1.1 | |
# Created by Nathan Beranger, January 2018 | |
##### | |
# Revision notes: | |
# |
This file contains hidden or 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 | |
# Open Terminal | |
# open -a Terminal | |
# define color codes | |
GREEN='\033[0;32m' | |
RED='\033[0;31m' | |
YELLOW='\033[0;33m' | |
NC='\033[0m' # No Color |
This file contains hidden or 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 | |
exec &> /tmp/SplunkEA.log | |
echo "Running Splunk status check..." | |
# Define the path to the Splunk Forwarder binary | |
SPLUNK_FORWARDER_BIN="/Applications/splunkforwarder/bin/splunk" | |
# Check if the Splunk Forwarder binary exists | |
if [ -f "$SPLUNK_FORWARDER_BIN" ]; then |
This file contains hidden or 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 | |
# Define the directory containing your .mobileconfig files. | |
DIRECTORY="/path/to/your/mobileconfig/files" | |
# Loop through all .mobileconfig files in the specified directory | |
for file in "$DIRECTORY"/*.mobileconfig; do | |
# Extract the filename without the extension | |
filename=$(basename "$file" .mobileconfig) |
This file contains hidden or 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 | |
# Force the script to quit if any error encountered | |
set -e | |
osVers=$(sw_vers -productVersion) | |
# Initialize array variable to hold admin usernames | |
list=() | |
NL=$'\n' |
This file contains hidden or 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 | |
# This script enables location services on macOS | |
# Write the default setting to enable location services | |
/usr/bin/defaults write /var/db/locationd/Library/Preferences/ByHost/com.apple.locationd LocationServicesEnabled -bool true | |
# Kickstart the location service to apply changes | |
/bin/launchctl kickstart -k system/com.apple.locationd |
NewerOlder