Thauzar Posted August 13, 2004 Share Posted August 13, 2004 I can't get the user accounts to be right!! It creates a user Thauzar, than adds it to administrator group like it says on the tutorial here, but then at logon Thauzar logs in automatically but is not an administrator... here is my code for useraccount.cmd and autologon.reg@echo offCLSECHO.ECHO Création de l'utilisateur...net user "Thauzar" 28465 /addPAUSEECHO.ECHO Enregistrement de l'usager dans le registry...REGEDIT /S autologon.regPAUSEECHO.ECHO Création du groupe Administrateurnet localgroup Administrators /addPAUSEECHO.ECHO Mise en place de l'accès administrateur...net localgroup Administrators "Thauzar" /addPAUSEECHO.ECHO Enlève l'expiration du mot de passe...net accounts /maxpwage:unlimitedPAUSEECHO.ECHO Ajoute les modifications du registre à l'utilisateur en coursREGEDIT /S regtweaks.regEXITI added PAUSE here just to troubleshoot and be sure every line was completed successfully, which is the case. In this version I tried with the registry settings after the creation of the user, just for a change cause I had the exact copy of this site's tutorial and it did not work.Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]"DefaultUserName"="Thauzar""DefaultPassword"="28465""AutoAdminLogon"="1"I tried with or withouth "AutoAdminLogon"="1", and I am going to try adding a "DefaultLocalGroup"="Administrators" but not sure if it will works. So if you have any idea how to fix my user accound login to be an administrator, thanks a lot! Else if you can tell me how to remove the ASP.net useraccount then I'll add it to my code even if it doesn't fix my initial problem. Link to comment Share on other sites More sharing options...
big_gie Posted August 13, 2004 Share Posted August 13, 2004 ECHO Création du groupe Administrateurnet localgroup Administrators /addI'm pretty sure this one is useless and that you can delete it.ECHO Mise en place de l'accès administrateur...net localgroup Administrators "Thauzar" /add What language is you XP? French? If in french, then it is "Administrateurs" and not "Administrators"So you don't need to add another Admin group. "Administrateurs" is already there. You'll only need:@echo offCLSECHO.ECHO Création de l'utilisateur...net user "Thauzar" 28465 /addECHO.ECHO Mise en place de l'accès administrateur...net localgroup Administrateurs "Thauzar" /addECHO.ECHO Enlève l'expiration du mot de passe...net accounts /maxpwage:unlimitedECHO.ECHO Enregistrement de l'usager dans le registre...REGEDIT /S autologon.regECHO.ECHO Ajoute les modifications du registre à l'utilisateur en coursREGEDIT /S regtweaks.regEXITHope it helped! Link to comment Share on other sites More sharing options...
Thauzar Posted August 13, 2004 Author Share Posted August 13, 2004 Thanks, I knew it was useless but I tried it anyway... and thanks for solving this, since XP seamed to be built in english to avoid old win98 problems of having 2 desktop and bureau folders, a my documents and mes documents, etc. So since it was still documents and settings and that adding a user was not adding a usager, I thought that the code for admin group would still be administrators. I'll try it in french right away! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now