June 8, 200422 yr 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 /addnet localgroup Administrators sh33p /addnet accounts /maxpwage:unlimitedREGEDIT /S autologon.regEXITaotologon.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
June 8, 200422 yr Make sure the computername is not sh33p. If it is, then your adding him to the Administrators account command should fail.
June 8, 200422 yr as a german xp user you need to insert this in your batchfilenet user name password /addnet localgroup Administratoren name /addnet accounts /maxpwage:unlimitedas 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
June 8, 200422 yr 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
June 8, 200422 yr Author @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 !!!!
June 27, 200422 yr 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?
June 27, 200422 yr 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
June 27, 200422 yr 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 /addthen 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.
Create an account or sign in to comment