Autoadminlogon and Autologoncount deprecating to zero unexpectedly
Posted on 2012-09-20
My first question asked here :-)
I have a really odd scenario.
I've built a WDS environment, and as part of this I've written a PowerShell script that, among other things, adds features and roles and joins the server to the correct domain/ou based on its name etc.
It all runs perfectly well except for one issue - when it has added the features, and reboots (twice) the autoadminlogon and autoadminlogoncount registry keys are both set to zero.
Prior to this they have a count of 3
I can manually logon and change the counts and everything works again.
But I've drawn a blank as to why it's deprecating the counts. I've even added a pair of lines in the script to aribtrarily change the count to 7 and ensure the autoadminlogon key is 1. This writes just after the features are added and the server reboots, but still - no luck.
I'd appreciate if anyone has any insight as it's taken a mostly non-interactive build and turned into an interactive one.