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.