Files
Alte_Skripte/VW Skripte/Scripte/500_SetComputerName_DEU_After-1.0.sh
2026-02-16 15:05:15 +01:00

15 lines
320 B
Bash

#!/bin/sh
set -x
COMPUTERNAME=$(osascript -e '
tell application "Finder"
display dialog "Bitte geben Sie einen Computernamen ein" default answer ""
set COMPUTERNAME to the (text returned of the result)
end tell')
/usr/local/bin/jamf setComputerName -name "${COMPUTERNAME}"
/usr/local/bin/jamf recon
# Exit
exit 0