Acheron Posted July 5, 2008 Share Posted July 5, 2008 (edited) When you build an unattended CD using standard answerfiles when setup completes the OOBE wizard will be shown. The OOBE experience is great to add user accounts.The only problem is that the Registered UserName visible in My computer properties, and sometimes used by software is set by winnt.sif. I rather would like this to be set to the First User that logons. I found this topic describing the RemoveOwner option to do the trick, but some users reported it didn't work. Looking up the MSOOBE binaries I found the following undocumented features, but no RemoveOwner option:DoWelcomeFadeIn SkipAnimation AgentDisabled NoWelcomeFinishSo I came up with my own solution. To configure OOBE the easy way I create a new OOBE folder inside the $OEM$ directory.I use inf installation methods to do the necessary tasks:oobe.inf[Version]Signature="$Windows NT$"[DefaultInstall]CopyFiles = OOBE.configAddReg = RunOnce.AddReg[DestinationDirs]OOBE.config = 11,"OOBE"[OOBE.config]"oobeinfo.ini"[RunOnce.AddReg];Set registered username to first logged on userHKLM,"%RUNONCE_KEY%","RegUserName",0x0,"rundll32.exe advpack.dll,LaunchINFSection %01%\oobe.inf,SetRegisteredUser"[SetRegisteredUser]RunPostSetupCommands = OOBE.RegUserName:1[OOBE.RegUserName]"cmd /c reg add ""HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion"" /v RegisteredOwner /d ""%%USERNAME%%"" /f"[Strings]RUNONCE_KEY="SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce"You can use your own oobeinfo.ini. Look up the Deployment tools help files for more information. My oobeinfo.ini skips everything except the User Creation screen.oobeinfo.ini[StartupOptions]Offline = 1[Options]IntroOnly = 0NoIspPreconfig = 1Use1394AsLan = 0CMDLINES.TXT[COMMANDS]"rundll32.exe advpack.dll,LaunchINFSection .\OOBE\oobe.inf"P.S. Also look here for an improved Video Resolution tweak Edited July 5, 2008 by Acheron Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now