Menu Close

Display Message via swiftDialog

Leverages swiftDialog v1.9.1+ and Jamf Pro Policy Script Parameters to display a message to end-users. (Based on Bart Reardon’s Example Jamf Scripts.)

End-user Example

Jamf Pro Script Options

Parameter Labels

Labels to use for script parameters. Parameters 1 through 3 are predefined as mount point, computer name, and username

  • Parameter 4: Title
  • Parameter 5: Message
  • Parameter 6: Icon (Absolute Path; leave blank to display Self Service's icon)
  • Parameter 7: Button 1 Text (i.e., Details)
  • Parameter 8: Button 2 Text (i.e., Close)
  • Parameter 9: Info Button Text (i.e., KB8765309)
  • Parameter 10: Extra Flags (i.e., --iconsize 128 --timer 60 --blurscreen --quitoninfo --ignorednd --overlayicon /path/to/icon.icns
  • Parameter 11: Action (i.e., jamfselfservice://content?entity=policy&id=17&action=view )

Jamf Pro Policy Script Payload

  • Title: macOS Monterey: High powered meets “Hi everyone.”
  • Message: macOS Monterey \n\nConnect, share, and create like never before. \n\nSay hello to exciting new FaceTime updates. Explore a redesigned Safari. Discover and invent powerful new ways to work using Universal Control and Shortcuts. Stay in the moment with Focus. And so much more. \n\nClick Details to learn more before upgrading. \n\nIf you need assistance, please contact the Global Services Department, \n+1 (801) 555-1212, and mention KB0070400.
  • Icon: /Applications/Install macOS
  • Button 1 Text: Details
  • Button 2 Text: Close
  • Info Button Text: KB0070400
  • Extra Flags: --timer 60 --blurscreen --quitoninfo --ignorednd --overlayicon /path/to/icon.icns
  • Action: jamfselfservice://content?entity=policy&id=363&action=view


Display Message via swiftDialog

Posted in Jamf Pro, Scripts, Tips & Tricks

Related Posts