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 | |
################################################################################################################# | |
# This script can be used together with "JAMF UAPI LAPS initialization script which will set LAPS Computer Extension Attribute to a desired password" | |
# URL of the other script: https://gist.github.com/shurkin18/50ae6e9da329a9332592df19e10744bb | |
################################################################################################################# | |
# Please note: this script requires jq JSON parser to be installed on the mac, otherwise the script won't work | |
# You can install jq JSON parser using brew by running this script, which will install brew and jq automatically (non-interactive): | |
# https://gist.github.com/shurkin18/62ec34967794a32f9d63615db881ab5c | |
# |
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 | |
################################################################################################################# | |
# This script assumes, JSS is using default read and write usernames: jamf, jamfadmin | |
# This script also assumes that local administrator account used on the mac is named: administrator | |
################################################################################################################# | |
#Ask user to point to the share folder, browse to it via "cd" | |
FOLDER_TO_PROCESS=$(/usr/bin/osascript << EOD | |
tell application "System Events" |
NewerOlder