aladdin1001 Posted July 11, 2005 Posted July 11, 2005 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 accountAlso 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 heremy 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 tweaksmany thanks in advance
Wraith Posted July 11, 2005 Posted July 11, 2005 (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=regimportAnd 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 July 11, 2005 by Wraith
ODC Posted July 11, 2005 Posted July 11, 2005 (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 July 11, 2005 by ODC
Cartoonite Posted July 11, 2005 Posted July 11, 2005 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.cmdnet user Username Password /addnet localgroup Administrators Username /addnet accounts /maxpwage:unlimitedREGEDIT /S autologon.regEXITAutoLogin.regWindows 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.
aladdin1001 Posted July 11, 2005 Author Posted July 11, 2005 many many thanks to all of youCartoonite - 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" oooopsthat 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
Cartoonite Posted July 11, 2005 Posted July 11, 2005 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=ComputerNameMy 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.
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