Jump to content

Classic Mode prob auto login new user HELP


Recommended Posts

Ok here is the problem i nearly have my auto install completed. I am having one problem. I decided it would be best to create a user and have him log in automaticly before the install of all my apps. When i set up a user account my install continues however the account is not created and windows is in classic mode when it completes the final restart. It was not in classic mode before i attempted to add the new user. Also i tried the install with and without the reg file and both completed with the same result as described about so i dont believe the reg file is the prob but i could be wrong. I read thru many pages and here is what i came up with:

$OEM$

-Cmdlines.txt

-user.cmd

-Reg_Root_tweaks.reg

Cmdlines.txt looks like this:

[COMMANDS]

".\user.cmd"

user.cmd looks like this:

CLS

@ECHO OFF

ECHO Adding Default User...

net user "Brian A. Cox /add

net localgroup "administrators" "Brian A. Cox" /add

ECHO.

ECHO Applying Root Registry Tweaks...

REGEDIT /S %systemdrive%\install\Reg_Root_Tweaks.reg

ECHO.

Reg_Root_tweaks.reg looks like this:

Windows Registry Editor Version 5.00

;This will allow you to autologin.

;Replace InsertName value with the Username you want to autologin with.

;Replace InsertPassword value with the password corresponding to the Username specified.

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]

"DefaultUserName"="Brian A. Cox"

"DefaultPassword"=""

"AutoAdminLogon"="1"

;This will add "Services" to the right-click menu of "My Computer"

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\services]

@=hex(2):53,00,65,00,72,00,76,00,69,00,63,00,65,00,73,00,00,00

"SuppressionPolicy"=dword:4000003c

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\services\command]

@=hex(2):25,00,77,00,69,00,6e,00,64,00,69,00,72,00,25,00,5c,00,73,00,79,00,73, 00,74,00,65,00,6d,00,33,00,32,00,5c,00,6d,00,6d,00,63,00,2e,00,65,00,78,00, 65,00,20,00,2f,00,73,00,20,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52, 00,6f,00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00, 32,00,5c,00,73,00,65,00,72,00,76,00,69,00,63,00,65,00,73,00,2e,00,6d,00,73, 00,63,00,20,00,2f,00,73,00,00,00

;This adds the "Open Command Window Here" on the right-click menu for folders

[HKEY_CLASSES_ROOT\Directory\shell\cmd]

@="Open Command Window Here"

[HKEY_CLASSES_ROOT\Directory\shell\cmd\command]

@="cmd.exe /k \"cd %L\""

;Disable Automatic Restart in the event of a BSOD

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl]

"AutoReboot"=dword:00000000

;Disables Error Reporting, but notifies when errors occur

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PCHealth\ErrorReporting]

"DoReport"=dword:00000000

;Disable Remote Registry Service

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RemoteRegistry]

"Start"=dword:00000004

;Remove Shortcut Arrows

[HKEY_CLASSES_ROOT\lnkfile]

"IsShortcut"=-

;Allow renaming of Recycle Bin

[HKEY_CLASSES_ROOT\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\ShellFolder]

"Attributes"=hex:50,01,00,20

"CallForAttributes"=dword:00000000

;Speed up browsing remote computers

[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\RemoteComputer\NameSpace\{D6277990-4C6A-11CF-8D87-00AA0060F5BF}]

;Speed up NTFS

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem]

"NtfsDisable8dot3NameCreation"=dword:00000001

"Win31FileSystem"=dword:00000000

"Win95TruncatedExtensions"=dword:00000001

"NtfsDisableLastAccessUpdate"=dword:00000001

;Prefetcher tweak(faster booting)

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters]

"EnablePrefetcher"=dword:00000003

;Changes Windows Driver Signing Policy 'prompt' to 'ignore'

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Driver Signing]

"Policy"=hex:00

Here is my winnt.sif just in case it might help to resolve this issue:

;SetupMgrTag

[Data]

AutoPartition=0

MsDosInitiated="0"

UnattendedInstall="Yes"

[unattended]

Unattendmode=FullUnattended

OemSkipEula=Yes

OemPreinstall=Yes

Repartition=Yes

FactoryMode = YES

UnattendSwitch="Yes"

TargetPath=\WINDOWS

OemSkipEula=YES

WaitForReboot="No"

DriverSigningPolicy=Ignore

OEMPnPDriversPath="\Drivers\NIC;\Drivers\audio"

AutoActivate=No

[GuiUnattended]

AdminPassword=*

EncryptedAdminPassword=no

OEMSkipRegional=1

TimeZone="020"

OEMSkipWelcome=1

[userData]

ProductID=Removed

FullName="User"

OrgName="Enterprise Computers"

ComputerName=HEVNBND

[Display]

BitsPerPel=32

XResolution=1024

YResolution=768

VRefresh=85

[Networking]

InstallDefaultComponents=Yes

[identification]

JoinWorkgroup=Workgroup

Home_Page=http://www.squareplanet.com

Search_Page=www.google.com

[Components]

msmsgs=off

msnexplr=off

Accessopt=off

hypertrm=off

zonegames=off

[GuiRunOnce]

%systemdrive%\install\main_batch.cmd

Please someone help. I am so close to finishing thanks to all of you guys help in the past. B

Link to comment
Share on other sites


"AutoAdminLogon"="1"

Try removing that. Not sure that it will fix your problem, but it shouldn't be in there.

Also, what is in this file?

[GuiRunOnce]
%systemdrive%\install\main_batch.cmd

And what the heck is this?

FactoryMode = YES

Link to comment
Share on other sites

Ok removed "AutoAdminLogon"="1" but will be a while before i can complete a new install and test it. I found this information here http://board.MSFN.org/index.php?showtopic=...ate%20user&st=0

[GuiRunOnce]

%systemdrive%\install\main_batch.cmd

is my batch file that installs all my apps. Here is a copy of it:

CLS

@echo off

ECHO.

ECHO Over the next few minutes you will see automated installations

ECHO of various sofware applications, windows updates, and registry

ECHO hacks being implemented. The computer will restart automatically

ECHO once the whole process has finished!

ECHO.

ECHO Installing Nforce Chipset Drivers

ECHO Please wait...

start /wait %systemdrive%\install\chipset\setup.exe -s -f1"%systemdrive%\install\chipset\setup.iss"

ECHO.

ECHO Installing MSN Messenger 6.1.0144 Final

ECHO Please wait...

start /wait %systemdrive%\install\MSN\MsnMsgs.msi /QB

ECHO.

ECHO Installing DirectX 9.0b

ECHO Please wait...

start /wait %systemdrive%\install\DirectX9b\dx9NTopk.exe

ECHO.

ECHO Installing Windows Media Player 9

ECHO Please wait...

start /wait %systemdrive%\install\WMP9\WMP9_MM2_ENU.exe

ECHO.

ECHO Installing PowerToys

ECHO Please wait...

start /wait %systemdrive%\install\PowerToys\PowertoySetup.exe /s /v/qn

ECHO.

ECHO Installing Microsoft JavaVM - Build 3810

ECHO Please wait...

start /wait %systemdrive%\install\JavaVM\msjavwu.exe /Q:A /R:N

ECHO.

ECHO Installing Applications

ECHO Please wait...

start /wait %systemdrive%\Install\applications.cmd

ECHO.

EXIT

FactoryMode

Value: Yes

Yes

Specifies that Windows Welcome or Mini-Setup does not delete the OPK tools from %systemdrive%\Sysprep during the next boot of the computer.

Use this entry when performing a clean install of the operating system as the first step in building a master installation, which you then plan to duplicate onto multiple destination computers. You must place the OPK tools in the %systemdrive%\Sysprep folder.

I really dont think i need this command i am removing it from the winnt.sif file. I will post if your suggestion worked or not. If anyone else has any suggestin let me know. Thanks B

Link to comment
Share on other sites

Yes it should. Fixed that performing a clean install will post when finished if any of the suggestions above worked. Anymore things anyone sees wrong? Also so why does nothing have to be inserted into the winnt.sif file refrencing the Cmdlines.txt? Just did not know how the install knows to look there. B

Link to comment
Share on other sites

By default when OEMPreinstall is enabled, Windows checks for the existance of a cmdlines.txt file in the $OEM$ folder, so it doesn't need to be specified anywhere apart from the OEMPreinstall value in winnt.sif

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