Fixing Scheduled PowerShell Task
Sun Nov 05 2023 15:34:09 GMT+0000 (Coordinated Universal Time)
Saved by
@47daniel
#!/bin/bash
# Check if the 'jamf' command-line tool is available
if ! command -v jamf &> /dev/null; then
echo "Error: 'jamf' command not found. Please make sure Jamf Pro is installed."
exit 1
fi
# Trigger the enrollment with Jamf Pro
jamf enroll -invitation your_enrollment_URL
# Check the result
if [ $? -eq 0 ]; then
echo "Enrollment successful."
else
echo "Enrollment failed. Please check your enrollment URL and server configuration."
exit 1
fi
content_copyCOPY
https://chat.openai.com/
Comments