HOW TO:
Renaming the god-mode Administrator account and Unattended Vista install.
You only need to do this once!
Do the following in the order shown!!!
First:
Click Start >> Run and type 'MMC' and Enter
Click File >> Add/Remove Snap-in...
In the left Window, scroll down and
double-click Security Configuration and Analysis
double-click Security Templates
Click OK
Second:
Create a new Security Template by:
Expand Security Templates
Right-click on default path (should be "%userprofile%\Documents\Security\Templates)
Click New Template...
Type "unattend.inf"
Hit Enter
Create a new database by:
Right-click Security Configuration and Analysis
Click Open Database...
Type "unattend.sdb" This directory is %userprofile%\Documents\Security\Database
Hit Enter
Type "unattend.inf" This directory is %userprofile%\Documents\Security\Templates
Hit Enter
Third:
Enter new Security changes:
Expand Security Templates >> %userprofile%\Documents\Security\Templates >> unattend >> Local Policies >> Security Options
Double-click Accounts: Administrator account status
Tic the box "Define this policy setting in the template"
Radio "Enabled"
Click OK
Double-click Accounts: Rename administrator account
Tic the box "Define this policy setting in the template"
Enter new Administrator name
Hit Enter
Make any other changes you wish:
UAC: Admin Approval Mode... = FilterAdministratorToken Should be disabled
UAC: Behavior of the elevation prompt for admin... = ConsentPromptBehaviorAdmin
UAC: Behavior of the elevation prompt for standard... = ConsentPromptBehaviorUser
UAC: Run all administrators in Admin Approval Mode = EnableLUA Should be enabled (Adversely affects Std Users!)
Close MMC
You don't have to save console settings if you don't want to, but you must save changes to template!
Remember, your new database and template should now reside in %userprofile%\Documents\Security\Database and
%userprofile%\Documents\Security\Templates respectively. Be sure to save the template changes.
Now you must edit INSTALL.WIM!
Mount INSTALL.WIM
imagex /mountrw x:\sources\INSTALL.wim 1 x:\temp "1" depends on your own image file
Copy the CONTENTS (ie; Database and Templates folders) of %userprofile%\Documents\Security folder to x:\temp\Windows\Security
Unmount and commit INSTALL.WIM
imagex /unmount /commit x:\temp
The above should be done before any unattend programs such as vLite and VistaUA.
Also, a pre-existing database file named SECEDIT.SDB exists in INSTALL.WIM. This is fine and you should not overwrite, delete or otherwise alter
this file!
HERE YOU MAY USE VLITE, VISTAUA, CUSTOMIZATIONS, ETC >>>>>>>>>>>>
WITH NO NEED FOR THE ABOVE REGISTRY TWEAKS
Add the following to setupcomplete.cmd (in \sources\$oem$\$$\setup\scripts\):
CMD /C secedit /configure /db %systemroot%\security\database\unattend.sdb /cfg %systemroot%\security\templates\unattend.inf /log %systemroot%\security\logs\unattend.log /overwrite /quiet
Add/Change the following to your PRE-EXISTING autounattend.xml !!!!PRE-EXISTING!!!!
If you already have an oobesystem pass in your autounattend, just add the items within.
<settings pass="oobeSystem">
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<UserAccounts>
<AdministratorPassword>
<Value>"YOUR ADMINISTRATOR PASSWORD HERE"</Value>
</AdministratorPassword>
</UserAccounts>
<AutoLogon>
<Enabled>true</Enabled>
<LogonCount>3</LogonCount>
<Username>"YOUR RENAMED ADMINISTRATOR ACCOUNT HERE"</Username>
<Password>
<Value>"YOUR ADMINISTRATOR PASSWORD"</Value>
<PlainText>true</PlainText>
</Password>
</AutoLogon>
</component>
</settings>
NOTE: YOU DO NOT HAVE TO AUTOLOGON TO THE RENAMED GOD ACCOUNT, BUT THEN WHAT'S THE SENSE OF DOING ALL OF THIS?
If you have a better, faster and/or easier way of doing this, then I just wasted my time.
Brought to you by razormoon
This post has been edited by razormoon: 14 December 2007 - 05:21 PM



Help

Back to top










