Jump to content

User Accounts


Recommended Posts

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 off

CLS

ECHO.

ECHO Création de l'utilisateur...

net user "Thauzar" 28465 /add

PAUSE

ECHO.

ECHO Enregistrement de l'usager dans le registry...

REGEDIT /S autologon.reg

PAUSE

ECHO.

ECHO Création du groupe Administrateur

net localgroup Administrators /add

PAUSE

ECHO.

ECHO Mise en place de l'accès administrateur...

net localgroup Administrators "Thauzar" /add

PAUSE

ECHO.

ECHO Enlève l'expiration du mot de passe...

net accounts /maxpwage:unlimited

PAUSE

ECHO.

ECHO Ajoute les modifications du registre à l'utilisateur en cours

REGEDIT /S regtweaks.reg

EXIT

I 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


ECHO Création du groupe Administrateur

net localgroup Administrators /add

I'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 off

CLS

ECHO.

ECHO Création de l'utilisateur...

net user "Thauzar" 28465 /add

ECHO.

ECHO Mise en place de l'accès administrateur...

net localgroup Administrateurs "Thauzar" /add

ECHO.

ECHO Enlève l'expiration du mot de passe...

net accounts /maxpwage:unlimited

ECHO.

ECHO Enregistrement de l'usager dans le registre...

REGEDIT /S autologon.reg

ECHO.

ECHO Ajoute les modifications du registre à l'utilisateur en cours

REGEDIT /S regtweaks.reg

EXIT

Hope it helped! :)

Link to comment
Share on other sites

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

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