Jump to content

Problem with users silent unattended install


Recommended Posts

Hi all !

I have a swedish XP sp2 that I have made unattended and it works well until I try to make it total silent using the files below, they are in $OEM$.

The programs says that I have to be administrator after reboot when the runonceex.cmd rows executes..

Whats wrong ??

Autologon.reg

Windows Registry Editor Version 5.00

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

"DefaultUserName"="Datorn"

"DefaultPassword"=""

"AutoAdminLogon"="1"

cmdlines.txt

[COMMANDS]

"Useraccounts.cmd"

"RunOnceEx.cmd"

Useraccounts.cmd

@Echo Off

net user Datorn /add

net localgroup Administrator Datorn /add

net accounts /maxpwage:unlimited

REGEDIT /S autologon.reg

EXIT

The thing I want to accomplish is that a user called "Datorn" is logged on automatically with no password and in the admin group.

Link to comment
Share on other sites


Nope, tried that and it does not work :(

When the runonceex install scripts starts I get a error message:

You need to be logged in as administrator to install....

I am suspecting something with the swedish letter "ö"...

For instance is the admin account when unattended , Administrator or Administratörer ??

This is my winnt.sif:

;SetupMgrTag

[Data]

AutoPartition=0

MsDosInitiated="0"

UnattendedInstall="Yes"

AutomaticUpdates=Yes

[unattended]

UnattendMode=FullUnattended

OemSkipEula=Yes

OemPreinstall=Yes

TargetPath=\WINDOWS

UnattendSwitch="yes"

WaitForReboot=No

DriverSigningPolicy=Ignore

OemPnPDriversPath="drivers\000_Intel_INF;drivers\000_VIA_INF;drivers\001_LAN_PRO100;drivers\002_LAN_PRO1000;drivers\003_LAN_PROXB;drivers\004_LAN_YUKON"

[branding]

BrandIEUsingUnattended = Yes

Home_Page = http://www.google.se

Search_Page = http://www.google.se://http://www.google.se

Search_Pa...//www.google.se

[GuiUnattended]

AdminPassword=*

EncryptedAdminPassword=NO

OEMSkipRegional=1

TimeZone=110

OemSkipWelcome=1

[userData]

ProductKey=XXXX-XXXXX-XXXX-XXXXX-XXXXX

FullName="."

OrgName="."

ComputerName=Dator

[Display]

BitsPerPel = 32

Xresolution = 800

Yresolution = 600

Vrefresh = 60

AutoConfirm=1

[identification]

JoinWorkgroup=ARBETSGRUPP

[Networking]

InstallDefaultComponents=Yes

[Components]

msmsgs=off

And now my autologon.reg

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

"DefaultUserName"="Datorn"

"AutoAdminLogon"="1"

useraccounts.cmd

@Echo Off

net user Datorn /add

net localgroup Administratörer Datorn /add

net accounts /maxpwage:unlimited

REGEDIT /S autologon.reg

EXIT

Edited by kentk
Link to comment
Share on other sites

Hm, one problem solved...

I had to save the file in charactercode 850 so that the ö in Administratörer went to a "

But I have another question, now that I managed to make a user "Datorn" a screen comes upp when windows starts saying "Personal settings ....".

That screeen did not come up if I made the user by the Win gui in the installation. (not using UnattendSwitch="yes" in winnt.sif )

Is it possible to make the logon faster or is it always like this ?

Edited by kentk
Link to comment
Share on other sites

  • 2 weeks later...

I think

net localgroup Administrator Datorn /add

should be

net localgroup Administrators Datorn /add

As the group is called Administrators.

Don't know if the Swedish version is named differently but to check goto to My Computer->Right Click->Manage->Local Users and Groups->Groups and you should see it there.

HTH

Dobby

Edited by Dobby
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...