
If we combine the variable with the defaults read command you should be able to retrieve the current setting of the default homepage of Safari. With the command defaults read you are able to read certain settings. The second step is gathering the current setting of the default homepage of Safari. Placing the current user to a variable which can be used in the script is done as follows myuser=$(stat -f%Su /dev/console). With the command stat -f%Su /dev/console you are able to report the current user that is logged on. The discovery script is used to find and return the value of a setting that you want to assess, so for us the first step is checking the current user, thanks to the great community I was able to figure this out quickly.
Sccm 2012 support for mac mac os x#
So to be able to change user preferences, like the default homepage of Safari, we need to create a script that is able to gather and use the user that is currently logged on the Mac OS X device, check the setting and remediate it if necessary.Ĭreating the discovery and remediation scripts This took me a while to figure that out but, but it is logical that the Configuration Manager client runs in a different context since the client needs unlimited access to the system. The Tilde (~) means current user so when checking and changing “ ~/Library/Preferences/” you will actually check and change the file located in /users/root/Library/Preferences/. So for this reason you see that nothing is changed when pointing to a preference file in a Configuration Item in Configuration Manager like this ~/Library/Preferences/. System preferences can still be changed via the native Mac OS X preferences. The context in which the Configuration Manager client runs and now changes preferences or running scripts is not the current user but the ROOT user. In an earlier blog I described how you could use the $USER variable if you want to change a user setting, but for some reason how the Configuration Manager clients interacts with Mac OS X is changed. One of the things I showed was the ability to change user preferences in Mac OS X. Mac OS X support by Configuration Manager 2012 R2 has two ways of supporting Settings Management namely, managing settings through preferences directly or managing it through Shell Scripts. On the Completion tab, review the Settings and Details then click Close.Today I presented a session about Mastering Apple OS X with Configuration Manager 2012 R2 at the Swiss Configuration Manager User Group in Bern. On the right side of the window, tick the radio button next to This program can run only on specified client platforms then select the following OS: On the left panel, click the Requirements tab then set the following:


On the left panel, go to the Program Type tab then tick the radio button next to Standard program then click Next. Under Source Folder Location, select Local Folder on site server then click Browse to locate the directory where you saved your FDE/FE installer. Tick the This Package contains source files checkbox.In the Name field, enter the package name.

On the left panel, click the Package tab.
Sccm 2012 support for mac software#
The Create Package and Software Wizard window appears. Right-click Packages then click Create package. Go to Software Library > Overview > Application Management > Packages.
