MSFN Forum: User Accounts - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

User Accounts Rate Topic: -----

#1 User is offline   Thauzar 

  • 4th Star Learner
  • PipPipPip
  • Group: Members
  • Posts: 415
  • Joined: 10-August 04

Posted 13 August 2004 - 07:36 AM

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.


#2 User is offline   big_gie 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 617
  • Joined: 27-July 03

Posted 13 August 2004 - 09:13 AM

Quote

ECHO Création du groupe Administrateur
net localgroup Administrators /add
I'm pretty sure this one is useless and that you can delete it.

Quote

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:

Quote

@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! :)

#3 User is offline   Thauzar 

  • 4th Star Learner
  • PipPipPip
  • Group: Members
  • Posts: 415
  • Joined: 10-August 04

Posted 13 August 2004 - 01:57 PM

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! :)

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy