Posted on 05-09-2016 11:55 AM
I am trying to setup a network configuration profile to be installed at imaging so that the computers will be on a base network. We use Target Mode imaging so this would allow the laptops to enroll in the JS and get any other configurations that are needed and to allow users to authenticate in using AD. This will also allow use to run policies and install software without having to have a user loved in, this is all pretty typical stuff. I have created the configuration profile and if I double-click it or run the command (sudo profiles -I -F /private/var/configprofiles/USD512P-Test-Temp.mobileconfig) it will be installed as a machine level profile and it works. The problem I am having is getting it to install using a package, it doesn't.
Here is how the computer level profile is setup with the trust certificates:
Here is how I have the package and post-install script setup:
This is based off of a package we currently use that does the same thing for another network and it works, I just changed the mobileconfig name. Truthfully I am not sure what the defaults write commands do but I have tried commenting them out and it does not help. I have also tried running the profiles command and sudo in the script and still it will not install the profile. I have even tried different Security types, technically a WPA2 Enterprise network.
Any advise on why this isn't working or a better way would be wonderful.
Solved! Go to Solution.
Posted on 05-11-2016 08:07 AM
Thank you for your responses. We ended up finding the problem was that the configuration profile was unsigned. This profile we wanted to expire after 4 hours so we were unable to create it in the JS and had to use Configurator 2. In Configurator 2 we were unable to find way to sign the configuration profiles so we needed up uploading it into the JSS just to download it, this signed the profile and then it worked using the method we had previously tried and you all suggested.
Once again, thank you for the help.
Posted on 05-09-2016 12:04 PM
The default commands turn debug logging on and off. Only useful if you are working with those logs for troubleshooting.
That said, try it with a postflight script and just the profiles command since the rest are not necessary. I think postinstall scripts only run the first time you install that package, so if you re-install it later it won't execute. That could be the issue.
Posted on 05-09-2016 01:58 PM
So we do this slightly differently. We create that profile then I made a composer DMG of that profile stored in the /Library/Application Support/JAMF folder.
Then I run a command to call the profile. I even put it in self service so if its not working they can reinstall it.
profiles -I -F /Library/Application Support/JAMF/Wireless Profiles/PPS HS Student 802.11x Network Settings.mobileconfig
Our policy looks as follows
Gabe Shackney
Princeton Public Schools
Posted on 05-11-2016 08:07 AM
Thank you for your responses. We ended up finding the problem was that the configuration profile was unsigned. This profile we wanted to expire after 4 hours so we were unable to create it in the JS and had to use Configurator 2. In Configurator 2 we were unable to find way to sign the configuration profiles so we needed up uploading it into the JSS just to download it, this signed the profile and then it worked using the method we had previously tried and you all suggested.
Once again, thank you for the help.