This file contains hidden or 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
function Invoke-Rejection { | |
<# | |
.SYNOPSIS | |
Retrieves a random rejection reason from the No-as-a-Service API. | |
.DESCRIPTION | |
Sends an HTTP GET request to the No-as-a-Service (NAAS) API endpoint and returns a randomly generated rejection message. | |
This function is useful for applications requiring humorous or creative rejection responses. | |
.INPUTS |
This file contains hidden or 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 | |
## postinstall | |
# Postinstall script which creates the following: | |
# - A LaunchDaemon that starts a separate script to run a Jamf Pro policy command | |
# - A script to wait for Jamf Pro enrollment to complete then triggers Setup Your Mac | |
# - A script that is designed to be called by a Jamf Pro policy to unload the Launch Daemon | |
# -- and then remove the LaunchDaemon and script | |
# - Creates "/Library/Application Support/Dialog/Dialog.png" from Self Service's custom icon (thanks, @meschwartz!) | |
# |