Jump to content

OOBE set RegisteredOwner


Recommended Posts

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
NoWelcomeFinish

So 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.config
AddReg = RunOnce.AddReg

[DestinationDirs]
OOBE.config = 11,"OOBE"

[OOBE.config]
"oobeinfo.ini"

[RunOnce.AddReg]
;Set registered username to first logged on user
HKLM,"%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 = 0
NoIspPreconfig = 1
Use1394AsLan = 0

CMDLINES.TXT

[COMMANDS]
"rundll32.exe advpack.dll,LaunchINFSection .\OOBE\oobe.inf"

P.S. Also look here for an improved Video Resolution tweak :whistle:

Edited by Acheron
Link to comment
Share on other sites


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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...