Skip to content

Instantly share code, notes, and snippets.

View shurkin18's full-sized avatar
🏠
Working from home

Aleksandr Kamenev shurkin18

🏠
Working from home
View GitHub Profile
@shurkin18
shurkin18 / laps-prod.sh
Last active October 3, 2023 21:45
JAMF UAPI LAPS script for continuous local administrator password change, with password securely stored in JSS
#!/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
#
@shurkin18
shurkin18 / jssdistrorepair.sh
Last active March 2, 2022 21:15
JSS distribution point share folder permissions and accounts repair
#!/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"