How do you stop Windows 7 sysprep from disabling the local administrator account?

Flintlock777
Flintlock777 used Ask the Experts™
on
Is there a way of stopping Windows 7 sysprep from disabling the local administrator account?  I've seen some talk of .xml files, but I've been unsuccessful with WAIK.  Is there another third party utility out there than can help automate / customize the Windows 7 sysprep?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Systems Engineer
Commented:
You just need to modify the answer file in the following section.  Skip the ghost part that's mentioned in the link

http://www.symantec.com/business/support/index?page=content&id=HOWTO42361

or

http://social.technet.microsoft.com/Forums/en-US/itprovistadeployment/thread/36f709ed-cdaf-4e80-8ddb-7629f81ef6e4

Second, modify the answer file using the Windows System Image Manager:
Open the Windows System Image Manager Software.
Click File > Open Answer File...
Browse to the unattend.xml answer file that you created with the steps above and open it.
If you are prompted to browse to a Windows Image file, browse to the *.clg file located on the Windows 7 installation media.  The file is located in the Sources folder of the Windows installation media.
Under the Windows Image section, expand Components > x86_Microsoft-Windows-Shell-Setup.
Right-click on AutoLogon.  From the resulting menu, left-click on Add Setting to Pass 7 oobeSystem.
Further down the list, right-click on User Accounts.  From the resulting menu, left-click on Add Setting to Pass 7 oobeSystem.
In the Answer File section, expand 7oobeSystem.
Expand x86_Microsoft-Windows-Shell-Setup_neutral.
Left-click on AutoLogon.
In the AutoLogon Properties pane, click the Drop-down arrow for the Enabled field and set this to true.
In the LogonCount field, enter the number of times that you should automatically log into the Administrator account.  Note:  The value for this field has to be 1 or greater.
In the Username field, enter Administrator.
In the Answer File pane, expand 7oobeSystem > x86_Microsoft-Windows-Shell-Setup_neutral > UserAccounts > Administrator Password.
In the Value field, enter the local administrator password.
Click File > Save Answer File As...
Browse to a location to store the new answer file and click Save.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial