How to use "Scripts" w/ProfileManager Login

I've spent the better part of my day researching this and there just does not seem to be a rather detailed document on "How to use "Scripts" w/ProfileManager Login".


I created a simple script which I have manually test with both local users & AD users on three separate desktops. It works every time. I've also tested it by placing ther scrip[t in the "Login Items" of a user and again works great.


The issue is that when I use the script via Profile Managers "Scripts" it just does not work. I've gone ahead and set the "EnableMCXLoginScripts" to "True" as well as set the "MCXScripTrust" to Anonymous, Authenticated etc. and nothing happens when I login with any user.


The description that Apple gives below about these areas of adjustment are incredibly vague. I've tried so many tasks and setups and still nothing.


Has anyone come across any description or setup on how to get this to work? It seems that it should be so simple yewt Apple has direction on how to do so.



User uploaded file


Any help would be greatly apreciated!!!


Thank you,


.

Posted on Mar 13, 2013 11:19 AM

Reply
3 replies

Mar 27, 2013 7:42 AM in response to carter.x

I got this to work with much hassle, how have you enabled EnableMCXLoginScripts? I had no luck doing it from the plist file, i used the following two commands


sudo defaults write com.apple.loginwindow EnableMCXLoginScripts -bool TRUE

sudo defaults write com.apple.loginwindow MCXScriptTrust -string Authenticated


I've tried setting these two options in profile manager under 'Custom Settings' but no joy, would be a real pain if i have to physicaly walk around every pc and enable this settings, there is also nothing to stop a user setting the EnableMCXLoginScripts to false.


Cheers,

Alex.

Apr 8, 2013 6:19 AM in response to AlexBevan

I had given that a go but made no difference.


I applied the following:

sudo defaults write com.apple.loginwindow EnableMCXLoginScripts -bool TRUE

sudo defaults write com.apple.loginwindow MCXScriptTrust -string Authenticated


and then from PM Server I have tried both a script.sh & script.command and neither one works. I can take both scripts and run them manually without any issues so unsure what is going on.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to use "Scripts" w/ProfileManager Login

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.