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
tell application "Microsoft Outlook" | |
query freebusy exchange account 1 for attendees {"[email protected]"} range start time date "Thursday, September 8, 2016 at 12:00:00 AM" range end time date "Friday, September 9, 2016 at 12:00:00 AM" interval 60 | |
end tell |
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 | |
# get current active console user | |
shortName=$( /usr/bin/logname ) | |
# AppleScript command to set domain for console user in Outlook | |
command1="tell application \"Microsoft Outlook\" to set domain of Exchange account 1 to \"domainname\"" | |
# AppleScript command to set user for console user in Outlook | |
command2="tell application \"Microsoft Outlook\" to set user name of Exchange account 1 to \"$shortName\"" |
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 | |
# -v = verbose | |
# -r = From address | |
# -c = Cc, '[email protected],[email protected]' | |
# -b = Bcc, '[email protected],[email protected]' | |
# -s = Subject | |
# -S = variable key=value | |
echo "This is the message body and contains the message" | mailx -v -r [email protected] -c "[email protected]" -s "This is the subject" -S smtp="smtp-mail.outlook.com:587" -S smtp-use-starttls -S smtp-auth=login -S smtp-auth-user="[email protected]" -S smtp-auth-password="P@55w0rd" -S nss-config-dir=/etc/pki/nssdb/ -S HOME=/tmp -S ssl-verify=ignore [email protected] |
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 | |
# enter the DNS or IP address of the network proxy | |
proxyAddress="proxy.domain.com" | |
# create a list of all Wi-Fi and Ethernet services | |
interfaces=$( networksetup -listallnetworkservices | egrep "Wi-Fi|Ethernet" ) | |
# always turn of proxy configuration first for each network interface | |
while IFS= read anInterface |
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 | |
# start Remote Management | |
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate | |
# enable access for specified users | |
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -allowAccessFor -specifiedUsers | |
# specify users who can remotely access a machine and enable all privileges | |
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -configure -users teacher,student -access -on -privs -All |
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 | |
# read serial number | |
serialNumber=$( /usr/sbin/system_profiler SPHardwareDataType | /usr/bin/grep "Serial Number" | /usr/bin/awk -F: '{ print $2 }' | /usr/bin/xargs ) | |
# set the three computer names | |
/usr/sbin/scutil --set ComputerName "$serialNumber" | |
/usr/sbin/scutil --set HostName "$serialNumber" | |
/usr/sbin/scutil --set LocalHostName "$serialNumber" |
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 | |
sudo rm /var/db/.AppleSetupDone | |
sudo rm -rf /var/db/ConfigurationProfiles/ | |
sudo rm /Library/Keychains/apsd.keychain | |
sudo jamf removeFramework | |
sudo reboot | |
exit 0 |
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 | |
/Library/Application\ Support/JAMF/bin/jamfHelper.app/Contents/MacOS/jamfHelper \ | |
-windowType fs \ | |
-title "This is the title" \ | |
-heading "This is the heading" \ | |
-description "Completing Step 1 of 4" \ | |
-icon /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/com.apple.cinema-display.icns & | |
sleep 2 |
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 | |
setupProcess=$( /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I | awk '/ SSID/ {print substr($0, index($0, $2))}' ) | |
# specify SSID | |
while [[ "$setupProcess" != "TMI Wi-Fi" ]] | |
do | |
sleep 1 | |
echo "Sleeping 1 second..." | |
setupProcess=$( /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I | awk '/ SSID/ {print substr($0, index($0, $2))}' ) |