Posted on 11-04-2013 06:37 AM
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!
Posted on 11-04-2013 06:43 AM
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.
Posted on 11-04-2013 07:45 AM
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"
Posted on 11-04-2013 07:45 AM
Thanks! I was able to get it working. Much appreciated.