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/zsh | |
#shellcheck shell=bash | |
# Title :macOS Download Upgrade Reinstall Erase.sh | |
# Description :Performs an upgrade, reinstall, or erase of macOS based on Jamf variables | |
# Author :John Hutchison | |
# Date :2022-12-23 | |
# Contact :[email protected], [email protected] | |
# Version :1.3.4.3 | |
# Notes : Updated to support disk spce checking on HFS+ filesystems |
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 | |
# Title :macOS_Upgrade_Reinstall_Erase_Workflow.sh | |
# Description :Performs an upgrade, reinstall, or erase of macOS based on Jamf variables | |
# Author :John Hutchison | |
# Date :2021-04-19 | |
# Contact :[email protected], [email protected] | |
# Version :1.3.2 | |
# Notes : Updated to support disk spce checking on HFS+ filesystems | |
# Updated to use custom installer paths |
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
#!/usr/bin/env zsh | |
# https://social.technet.microsoft.com/wiki/contents/articles/7608.srv-records-registered-by-net-logon.aspx | |
# https://docs.microsoft.com/en-us/troubleshoot/windows-server/networking/verify-srv-dns-records-have-been-created | |
declare -a activeDirectoryDomainNameTests=( | |
_ldap._tcp."$1". | |
_ldap._tcp.dc._msdcs."$1" | |
_ldap._tcp.pdc._msdcs."$1". | |
_kerberos._tcp. "$1" . |
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
/Applications/Safari.app | |
/Library/Apple | |
/Library/Application Support/com.apple.TCC | |
/Library/CoreAnalytics | |
/Library/Filesystems/NetFSPlugins/Staged | |
/Library/Filesystems/NetFSPlugins/Valid | |
/Library/Frameworks/iTunesLibrary.framework | |
/Library/GPUBundles | |
/Library/KernelCollections | |
/Library/MessageTracer |
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
<?xml version="1.0" encoding="UTF-8"?><extensionAttribute> | |
<displayName>Randomized Clinical Trial Number</displayName> | |
<description/> | |
<dataType>number</dataType> | |
<scriptContentsMac>#!/usr/bin/env zsh | |
| |
preferenceDomain="" | |
if [[ "$preferenceDomain" = "" ]]; then | |
preferenceDomain="com.github" | |
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
#!/usr/bin/env zsh | |
### Collecting current user attributes ### | |
currentUser=$(/bin/ls -l /dev/console | /usr/bin/awk '{print $3}') | |
currentUserUID=$(/usr/bin/id -u "$currentUser") | |
currentUserHomeDirectoryPath="$(dscl . -read /Users/$currentUser NFSHomeDirectory | awk -F ': ' '{print $2}')" | |
########################################################################################## | |
##Box Edit PostInstall | |
sudo -u "$currentUser" mkdir -p "$currentUserHomeDirectoryPath/Library/Application Support/Box/Box Edit/PKG Installer log/" |
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
#!/usr/bin/env zsh | |
### Collecting current user attributes ### | |
currentUser=$(/bin/ls -l /dev/console | /usr/bin/awk '{print $3}') | |
currentUserUID=$(/usr/bin/id -u "$currentUser") | |
currentUserHomeDirectoryPath="$(dscl . -read /Users/$currentUser NFSHomeDirectory | awk -F ': ' '{print $2}')" | |
########################################################################################## | |
if [[ "$currentUser" = "root" ]]; then | |
echo "No user is logged in, wait until later to perform Box preinstall/postinstall |
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/sh | |
#################################################################################################### | |
# | |
# Copyright (c) 2010, JAMF Software, LLC. All rights reserved. | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are met: | |
# * Redistributions of source code must retain the above copyright | |
# notice, this list of conditions and the following disclaimer. | |
# * Redistributions in binary form must reproduce the above copyright |
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/sh | |
echo "<result>$(system_profiler SPStorageDataType | awk '/Medium Type/ {print $3}' | head -1)</result>" |
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/sh | |
currentUser=$( echo "show State:/Users/ConsoleUser" | scutil | awk '/Name :/ && ! /loginwindow/ { print $3 }' ) | |
echo "<result>$(w -h "$currentUser" | head -1 | awk '{print $5}')</result>" |
NewerOlder