Installation issues

I have a bit of a dilemma… i have spark deloying via GPO with the MSI build, i have a logon script that generates teh spark.properties file with SSO enabled… here is the problem, when spark starts up the first time SSO does not work if i login with the users credentials and then logout and turn SSO back on it works… ANY IDEAS!!! i need to have this automated because im installing it in offices in various building that i cannot readily get to… any help would be great.