Skip to content
forked from macadmins/umad

A tool to help users with pre-existing devices enrolled into MDM

License

Notifications You must be signed in to change notification settings

jaredsiegel/umad

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UMAD (macadmin's Slack #umad)

[U]niversal [M]DM [A]pproval [D]ialog

Purpose

A Professional Tool to help users with pre-existing devices enrolled into MDM.

Screenshots

DEP

Screenshot DEP

Manual

Screenshot Manual

UAMDM

Screenshot UAMDM

Simplified Diagram

Simplified Diagram

Notes

You will need to use munki-pkg to build this package.

Because of the way git works, umad will not contain the Logs folder required for the postinstall to complete. In order to create a properly working package, you will need to run the following command: munkipkg --sync /path/to/cloned_repo/mdm/umad

Supported mac OS

The following operating system and versions have been tested.

  • 10.10.0 Note 1, 10.10.5 - Note 2
  • 10.11.0, 10.11.6
  • 10.12.0, 10.12.6 (10.12 is very unreliable with DEP nagging)
  • 10.13.0 10.13.3, 10.13.6
  • 10.14.0

Getting started

To start, you can use the default settings in /Library/LaunchAgent/com.anothertoolappleshouldhaveprovided.umad.plist

Essentially every component of the UI is customizable, using the above LaunchAgent.

  • Create your .pkg with munki-pkg and install on your target workstation.
  • Open terminal. example

/Library/Application Support/umad/Resources/umad --cutoffdate 2018-9-7-17:00 sets the cutoff date to September 7th at 5pm

Cutoff date

Cut off date in UTC.

<string>--cutoffdate</string>
<string>2018-12-31-17:00</string>

Cut off date warning

This is the number, in days, of when to start the initial UI warning. When this set of days passes, the user will be required to hit an "I Understand" button, followed by the "Close" button to exit out of the UI.

<string>--cutoffdatewarning</string>
<string>14</string>

Due date text

This is the bolded portion of the UI towards the top under the "titletext".

<string>--duedatetext</string>
<string>MDM Enrollment is required by 12/31/2018 (No Restart Required)</string>

DEP failure text

If a user has a DEP capable device, but they are passed the enrollment window, they will have an option to manually enroll.

This is the first set of text above the enrollment button.

<string>--depfailuretext</string>
<string>Not getting this notification?</string>

DEP failure subtext

If a user has a DEP capable device, but they are passed the enrollment window, they will have an option to manually enroll.

This is the second set of text above the enrollment button.

<string>--depfailuresubtext</string>
<string>You can also enroll manually below:</string>

Enable enrollment button

Always show the manual enrollment button, DEP or not.

<string>--enableenrollmentbutton</string>

Honor DND settings

If a device is DEP capable, umad will not honor DoNotDisturb settings so the nag can actually appear.

If the admin wants to honor DoNotDisturb for DEP devices, use this feature.

Non-DEP devices will honor the users DND settings

<string>--honordndsettings</string>

Logo path

You can replace the included company_logo.png with your own company_logo.png or you can configure a custom Path with the following string:

<string>--logopath</string>
<string>/Some/Custom/Path/company_logo.png</string>

Manual enrollment text

If a user does not have a DEP capable device, they will have the option to manually enroll. Authentication may be required for manual enrollment.

This is the bolded text that takes place of the DEP or UAMDM screenshot.

<string>--manualenrollmenttext</string>
<string>Manual Enrollment Required</string>

Manual enrollment h1 text

If a user does not have a DEP capable device, they will have the option to manually enroll. Authentication may be required for manual enrollment.

This is the first set of text above the enrollment button.

<string>--manualenrollh1text</string>
<string>Want this box to go away?</string>

Manual enrollment h2 text

If a user does not have a DEP capable device, they will have the option to manually enroll. Authentication may be required for manual enrollment.

This is the second set of text above the enrollment button.

<string>--manualenrollh2text</string>
<string>Click on the Manual Enrollment button below.</string>

Manual enrollment URL

Configure the Manual Enrollment button with a custom URL.

<string>--manualenrollmenturl</string>
<string>https://apple.com</string>

More info URL

When you see the Manual Enrollment button, you can customize a URL directing the users to more information.

<string>--moreinfourl</string>
<string>https://google.com</string>

Nag screenshot path

You can modify the LaunchAgent adding your custom path or just replace the included nag_ss.png with your own .png. (remember to name the file nag_ss.png if you are not using a custom path)

<string>--nagsspath</string>
<string>/Some/Custom/Path/nag_ss.png</string>

No timer

Use this setting if you DO NOT want to restore the umad GUI to the front of a user's window.

<string>--notimer</string>

Paragraph 1 text

This is the text for the first paragraph. 160 character limit.

<string>--paragraph1</string>
<string>If you do not enroll into MDM you will lose the ability to connect to Wi-Fi, VPN and Managed Software Center.</string>

Paragraph 2 text

This is the text for the second paragraph. 160 character limit.

<string>--paragraph2</string>
<string>To enroll, just look for the below notification, and click Details. Once prompted, log in with your username and password.</string>

Paragraph 2 text

This is the text for the third paragraph. 160 character limit.

<string>--paragraph3</string>
<string>To enroll, just look for the below notification, and click Details. Once prompted, log in with your OneLogin username and password.</string>

Profile identifier

This is the profile identifier for < 10.13 machines to check for enrollment. Should you not set this value, umad will attempt to look for a profile installed on the machine with the PayloadType of com.apple.mdm

<string>--profileidentifier</string>
<string>B68ABF1E-70E2-43B0-8300-AE65F9AFA330</string>

To get this value, run the following command on a computer with your MDM profile installed: profiles -C -o stdout-xml

Look for the MDM profile and notate the identifier. Some MDMs may use a UUID for this value.

Some examples:

<dict>
	<key>ProfileDescription</key>
	<string>MDM profile</string>
	<key>ProfileDisplayName</key>
	<string>MDM Profile</string>
	<key>ProfileIdentifier</key>
	<string>220cad8d-c273-422f-afcb-9740857b38a0</string>
</dict>
<dict>
	<key>ProfileDescription</key>
	<string>MDM profile</string>
	<key>ProfileDisplayName</key>
	<string>MDM Profile</string>
	<key>ProfileIdentifier</key>
	<string>com.awesome.mdm.profile</string>
</dict>

Sub-title text

This is the text right under the main title.

<string>--subtitletext</string>
<string>A friendly reminder from your local IT team</string>

System Preferences H1 text

Should the user have a 10.13.4+ device that is not User Approved MDM, they will be notified that they need to approve the MDM.

This is the first set of text above the system preferences button.

<string>--sysprefsh1text</string>
<string>Want this box to go away?</string>

System Preferences H2 text

Should the user have a 10.13.4+ device that is not User Approved MDM, they will be notified that they need to approve the MDM.

This is the second set of text above the system preferences button.

<string>--sysprefsh2text</string>
<string>Open System Preferences and approve Device Management.</string>

Title text

This is the main, bolded text at the very top.

<string>--titletext</string>
<string>MDM Enrollment</string>

Timer Day 1

The time, in seconds, to restore the umad GUI to the front of a user's window. This will occur indefinitely until the UI is closed or MDM is enrolled.

When the MDM cutoff date is one day or less, this timer becomes active.

<string>--timerday1</string>
<string>600</string>

Timer Day 3

The time, in seconds, to restore the umad GUI to the front of a user's window. This will occur indefinitely until the UI is closed or MDM is enrolled.

When the MDM cutoff date is three days or less from current date.

<string>--timerday3</string>
<string>7200</string>

Timer Elapsed

After the user interacts with umad GUI, (such as clicking the "I understand" button) timer elapsed controls when the UI will display again.

This will occur indefinitely until the MDM is enrolled.

<string>--timerelapsed</string>
<string>10</string>

Timer Final

The time, in seconds, to restore the umad GUI to the front of a user's window. This will occur indefinitely until the UI is closed or MDM is enrolled.

This is when the MDM cutoff date is one hour or less

<string>--timerfinal</string>
<string>60</string>

Timer Initial

The time, in seconds, to restore the umad GUI to the front of a user's window. This will occur indefinitely until the UI is closed or MDM is enrolled.

When the MDM cutoff date is over three days.

<string>--timerinital</string>
<string>14400</string>

Timer MDM

The time, in seconds, to check if the device is enrolled into MDM.

<string>--timermdm</string>
<string>5</string>

User Approved MDM paragraph 1 text

This is the text for the first paragraph on the user Approved MDM UI.

<string>--uamdmparagraph1</string>
<string>Thank you for enrolling your device into MDM. We sincerely appreciate you doing this in a timely manner.</string>

User Approved MDM paragraph 2 text

This is the text for the second paragraph on the user Approved MDM UI.

<string>--uamdmparagraph2</string>
<string>Unfortunately, your device has been detected as only partially enrolled into our system.</string>

User Approved MDM paragraph 3 text

This is the text for the third paragraph on the user Approved MDM UI.

<string>--uamdmparagraph3</string>
<string>Please go to System Preferences -> Profiles, click on the Device Enrollment profile and click on the approve button.</string>

User Approved MDM screenshot path

You can customize the uamdm screenshot path. Option 2, just replace the included uamdm_ss.png with your own .png. Make sure you name the .png the same as the original and place it back into umad/Resources/ .

<string>--uasspath</string>
<string>/Some/Custom/Path/uamdm_ss.png</string>

Tips, Tricks, and Troubleshooting

  • I made changes to the default LaunchAgent and now the UI isn't appearing?

    Make sure you unload, and reload the LaunchAgent after making changes.

  • Where is the logging located?

    /Library/Application Support/umad/umad.log

  • Why isn't the log file there?

    Remember to unload and reload the LaunchAgent.

Credits

This tool would not be possible without nibbler, written by Michael Lynn

About

A tool to help users with pre-existing devices enrolled into MDM

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%