Skip to main content

Hi Guys,

I've a script that i wish to run @ 1st boot after imaging & only on my MacBooks.

Script would run something like  the following: 

/usr/libexec/PlistBuddy  -c "Add :menuExtras:0 string "/System/Library/CoreServices/Menu Extras/VPN.menu"" /System/Library/User Template/English.lproj/Library/Preferences/com.apple.SystemUIServer.plist

However, this isn't working & also, how would I get it to FUT & FEU's?

we do not use MCX.. & i tried to package it.. but manually triggering that is screwing up my manually triggered 1st boot policy (issue with JAMF).

Regards,

Ben.

I don't apply MCX to people so I can't endorse it or offer any practical experience but I do see that Casper's MCX can be applied to groups (not individuals) as well as computers. I can see it working so long as the preferences are user level and not system level.

--

William Smith
Technical Analyst
Merrill Communications LLC
(651) 632-1492


I would use MCX for this

defaults write com.apple.mcxMenuExtras VPN.menu -bool TRUE

something along those lines.

-Tom


thanks.. 

but we're not using MCX & it's to only apply to MacBooks with VPN configured..

However.. I used the jamf install -package you've mentioned previously & it works a treat!

just a shame i can't keep it all in the script.. but if it works..


just out of curiosity - why not use a managed preference here and there?
It's available through the JSS - not like you have to setup special stuff
in workgroup manager or anything.

we leverage them this way - but it's only a few right now. I'm curious if
there are some drawbacks to them that I'm not aware of.

*ben** janowski*
Senior Macintosh Support Technician
*Kohl's Mac Support Team *| 262.703.1396


If I had to guess, I would say one of the following reasons:

1) Politics 2) Casper Managed Preferences are computer level only, this may be needed at user/group level instead

-Tom


It's just that it's only for some MacBooks with vpn service.. & is part of a script i was going to make available via self service..

As such i just wished to get it all working in the script.

I've used mcx before with the magic triangle.. but i've not enabled it here yet & this is the only instance where i've struggled without it


Casper's MCX isn't just for computer level management. It does support groups such as Active Directory groups. It doesn't support individual users, I believe, but as a personal best practice I would only apply it to computers and not people.

Where MCX meets the need I would use that before scripting.

--

William Smith
Technical Analyst
Merrill Communications LLC
(651) 632-1492


So I can specify user 1 gets mcx set 1 and user 2 gets MCX set 2, and when user 2 logs into a computer that user 1 previously used they get mcx set 2?

I was under the impression MCX for Casper worked across the board. I don't use it though we are still an OD shop.

-Tom