We are having an interesting problem getting our iPads enrolled... Environment is an internal JSS running on Windows Server 2012R2. iPads are on the same network as the JSS server, and there are no VLANS in place. When the iPads are connected to an internal WiFi network, they will get an error of "Invalid Profile" when trying to apply the initial Pre-stage enrollment. If you connect the iPad to an external wifi (eg, tether to a cell phone), the enrollment completes successfully.
To further complicate things, if you leave the iPad sit on the invalid profile screen for an undetermined amount of time, it will eventually allow you to proceed with a valid profile.
I'm wracking my brain trying to figure out what combination of firewall funkiness could possibly be causing these. If anything, I would expect enrollment to have more problems on an external connection than internal, since it would have to go through the NAT rule to get to the internal JSS IP. But in this case, the opposite is true.
Any help would be appreciated!