URGENT! How do you force an MCX change?

rseide
Contributor

I made a blunder in Casper for Login Items and i need to force this change immediately to a bunch of computers. How can I do this?

On my own machine, i ran sudo jamf mcx but the output was:
Checking for Computer Level Managed Preferences from https://jss.xxx.xxx.com:8443//...
Parsing MCX Data...
There are no MCX Settings to apply at the computer level.

Please help ASAP.

Thanks!

3 REPLIES 3

mm2270
Legendary Contributor III

You may also need to do sudo jamf mcx -username <yourusername> The first command applies Computer level MCX settings and the latter applies User level settings.
If the above works on your system, use Casper Remote to blast that command out to any machines you can hit.

daniel_behan
Contributor III

I use this script if I need to force MCX:

#!/bin/bash

userName=/usr/bin/who | /usr/bin/awk '/console/{ print $1 }'

/usr/sbin/jamf mcx
/usr/sbin/jamf mcx -username "$userName"

rseide
Contributor

Thanks! I was able to get it working. Much appreciated.