Jump to content

Creating Autoadminlogon in Win2000?


Recommended Posts

Hello,

I'm trying to create an admin account in W2000 from cmdlines.txt, then importing reg tweaks, and then rebooting. Most of it works, except that the autologon.reg doesn't get imported into the registry during the unattended setup, but instead the default Administrator account is in and asks for a password. The useraccounts.cmd is obviously executed because the user JH is added to the Administrators group.

After Windows is up, if I run useraccounts.cmd manually it gets imported, and after another reboot the desired user account with auto logon works. All the files listed are located in /$OEM$/ except for winnt.sif, which is in /i386/.

Any help would be appreciated.

WINNT.SIF:

;SetupMgrTag
[Data]
AutoPartition=1
MsDosInitiated="0"
UnattendedInstall="Yes"

[Unattended]
UnattendMode=FullUnattended
OemSkipEula=Yes
OemPreinstall=Yes
TargetPath=\WINNT
UnattendSwitch="yes"
DriverSigningPolicy=Ignore

[GuiUnattended]
AdminPassword=*
OEMSkipRegional=1
TimeZone=10
OemSkipWelcome=1

[UserData]
FullName="JH"
ComputerName=W2000
ProductID="xxxxx-xxxxx-xxxxx-xxxxx-xxxxx"

[Display]
BitsPerPel=4
Xresolution=800
YResolution=600
Vrefresh=60

[TapiLocation]
CountryCode=1
AreaCode=406

[RegionalSettings]
LanguageGroup=1
Language=00000409

[Components]
pinball=off
solitaire=off
minesweeper=off
freecell=off

[Identification]
JoinWorkgroup=W

[Networking]
InstallDefaultComponents=Yes

cmdlines.txt:

[COMMANDS]
"useraccounts.cmd"
"RunOnceEx.cmd"

useraccounts.cmd:

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

autologon.reg:

Windows Registry Editor Version 5.00 

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

RunOnceEx.cmd:

cmdow @ /HID
@echo off

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Installing Applications and Registry" /f

REG ADD %KEY%20 /VE /D "Importing Registry Tweaks" /f
REG ADD %KEY%20 /V 1 /D "REGEDIT /S %systemdrive%\Install\regtweaks.reg" /f

REG ADD %KEY%30 /VE /D "Cleaning Up and Rebooting" /f
REG ADD %KEY%30 /V 1 /D "%systemdrive%\Install\cleanup.cmd" /f

EXIT

Edited by Nils
Link to comment
Share on other sites


I have only done unattended on Windows XP so I don't know if Windows 2000 is the same.

XP looks like this...

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

"DefaultUserName"="name"

"DefaultPassword"="pass"

"AutoLogonCount"="1"

"AutoAdminLogon"="1"

[GuiUnattended]

AdminPassword = pass

AutoLogon = YES

AutoLogonCount = 1

Your password needs to be the same in your sif and reg key. I don't think you can leave the password blank.

Link to comment
Share on other sites

Nils :hello:

Interesting... I thought this tweak is not working because I'm using reduced with HFSLIP Windows 2000... And it appeared it just doesn't work in W2k :(

If you find the way let me know :rolleyes:

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