Jump to content

Recommended Posts

Posted

Hi,

Is it possible to setup a new user and login as that new user THEN apply reg tweaks and app installations?

I tried using the OOBEINFO.INI method and that creates the new account but when windows starts i get to the classic login screen with Administrator in the user name field. which i have to change to the new user name and login manually before it would apply the reg tweaks and install the progz !!!!!!

In an attempt to fix this i specified automatic admin login in the Winnt.sif file and set the login count to 1 but that logs me in as administrator rather than the newly created account

Also i noticed that for some reason, in the documents and settings folder, it creates All Users and All Users.Windows folders it does the same for default and default.windows?? both of which can't be deleted. is there something i'm doing wrong here

my unattended setup is pretty simple i think, i've got the winnt.sif set to run a batch file in the [GuiRunOnce] command and i've specified cmdlines.txt to run reg tweaks

many thanks in advance


Posted (edited)

It's possible, just can get annoying.

You can use a tool I made called regimport to import directly into another user's registry:

http://www.msfn.org/board/index.php?showto...27&hl=regimport

And you can use runas.exe to execute as another user, however, this does not end up being unattended.

XPlode can do both completely unattnded when given the proper configuration. Check my sig for the site/forum.

Edited by Wraith
Posted (edited)

Don't know if this is exactly part of your problem or not, but if you have $OEM$\$Docs\Username folder, then when the Username account is created you'll get a Username.COMPUTERNAME folder, which bypasses he default. This shows $Docs folder to be useless, so don't use it.

Edited by ODC
Posted
Hi,

Is it possible to setup a new user and login as that new user THEN apply reg tweaks and app installations?

If I am understand your intentions correctly, this is how I do it.

Create the following two files in your $OEM$ folder:

UserAccounts.cmd

net user Username Password /add
net localgroup Administrators Username /add
net accounts /maxpwage:unlimited
REGEDIT /S autologon.reg
EXIT

AutoLogin.reg

Windows Registry Editor Version 5.00 

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"DefaultUserName"="Username"
"DefaultPassword"="Password"
"AutoAdminLogon"="1"

Replace Username and Password with the respective names for your PC, then add the following line to cmdlines.txt:

"useraccounts.cmd"

Hope this helps.

Posted

many many thanks to all of you

Cartoonite - I used that method and it didn't work but after reading your post it confirmed that what i was doing was correct so i went again and found that, stupidly, i named the file useraccount.cmd and referred to it as usersaccount.cmd "adding an "S" to user" oooops

that fixed it and it's now working perfectly as i want it the only exception being the computer name not being named as i specified in the winnt.sif!!!!!!!!!! any ideas????

once again many thanks to you all

Posted
that fixed it and it's now working perfectly as i want it the only exception being the computer name not being named as i specified in the winnt.sif!!!!!!!!!! any ideas????

Was the PC named correctly before you made the latest modification? My best guess is that you have mistyped the line for specifying the PC name in WINNT.SIF. Here is the correct syntax:

[UserData]
   ProductKey=ThisI-sWher-eYour-KeyGo-esSir
   FullName="User Name"
   OrgName="Company Inc."
   ComputerName=ComputerName

My understanding is that the quotes around Full and OrgName are only required when inputing values that have spaces, but I leave them in regardless, just for consistancy's sake.

If your WINNT.SIF entries match these ones, then there must be something else that is causing your error. Please post the specifics of your uA CD and hopefully we can help you sort it out.

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...