Jump to content

user auto logon / adding user problem


Recommended Posts

OK now... Here I am :)

German guy, configuring and testing his own Unattended XP CD for 3 days now.

I´m fine with most things. Some Problems with some applications are still there, but i think i can solve those on my own.

The most annoying problem I have is, that my useraccounts.cmd adds my user "sh33p", logs him in automatically, but doesnt add him to the administrators group. Now i have some apps which need to be installed with administator status.

I can´t because i fail to autom. add my user "sh33p" to the administrator group.

Here my files:

useraccounts.cmd:
net user "sh33p" xxxxx /add
net localgroup Administrators sh33p /add
net accounts /maxpwage:unlimited
REGEDIT /S autologon.reg
EXIT

aotologon.reg:
Windows Registry Editor Version 5.00

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

[GuiUnattended]:
   AdminPassword=xxxxxxx
   EncryptedAdminPassword=No
   OEMSkipRegional=1
   TimeZone=110
   OemSkipWelcome=1
   ProfilesDir="C:\Dokumente und Einstellungen\"

so PLS ! tell me my mistake.

I´m driving myself crazy for 3 days now because it DOESNT WORK ;///

So long...

sh33p

Link to comment
Share on other sites


as a german xp user you need to insert this in your batchfile

net user name password /add

net localgroup Administratoren name /add

net accounts /maxpwage:unlimited

as a german i had the same problem one time before, but you always need to write the groupname how it is written in your windows. i didn't think that it would be this little word when i had the same problem, but finally i read it somewhere in the web.

the rest of your data lookes quite ok.

Greetings,

Erlkönig

Link to comment
Share on other sites

Hello,

Just wanted to share my experiences when your xp-system is not the english one!

I finally succeeded in adding users & autologon according the msfn-guide but it was ******* difficult and the reason to that ...I'm from Finland and we have letters like "ä" and "ö" - and administrator in finnish (of course!) is "järjestelmänvalvoja".

So I put that järjestelmänvalvoja in my batch and always same error when executing the batch: didn't find the järjestelmänvalvoja -group!

After long battle I finally put "pause" in my batch and found the error: I wrote my batch in a right way but when I executed my batch the system didn't take the "ä" -letter right but put something else instead of it. And again long fight before I found that putting "„" in my batchfile instead of "ä" (like j„rjestelm„nvalvoja) and then running it - No Problems anymore in adding the user into the administrator group!

Many times it would be much easier if I had the english system...

MMainio

Link to comment
Share on other sites

@mmainio : that must have been a hard piece of work :) I feel with u.

@Erlkänig : I have already tested to switch that but it didn`t help.

@sleepnmojo : yeah that was it. THX !!!!

Link to comment
Share on other sites

  • 3 weeks later...
Make sure the computername is not sh33p.  If it is, then your adding him to the Administrators account command should fail.

Oh, man. This was driving me crazy! Thank you for your post (and many others regarding this issue).

Anyway, do you know why in hell adding a user to the Administrators group using the "net" tool when the username is identical to the computer name doesn't work?

Link to comment
Share on other sites

Guest zippy

it cant figure out what you specified is a computername or an username.

use this form "computername\username" as username.

net localgroup "Administrators" "sh33p\sh33p" /add

Link to comment
Share on other sites

I got it, thanks man.

Anyway, what I understand is that if the computer name is "blah" and you create a username "blah" and try to add him to the administrators group with this command:

net localgroup Administrators blah /add

then Windows thinks the username is missing, since "blah" is the computer's name, so it expects what you just said "COMPUTERNAME\USERNAME".

I don't know if it's like what I understood, but now I have a clearer view on this. Thank you.

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