Support Forums
how to creat windows user account by.. - Printable Version

+- Support Forums (https://www.supportforums.net)
+-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87)
+--- Forum: Computer Support Topics (https://www.supportforums.net/forumdisplay.php?fid=4)
+---- Forum: PC Hardware Help and Desktop Support (https://www.supportforums.net/forumdisplay.php?fid=9)
+---- Thread: how to creat windows user account by.. (/showthread.php?tid=2476)



how to creat windows user account by.. - mitoo - 11-03-2009

how i can create windows user account by dos commands? ,i need to create user account has administrator rights by dos commands
and if anyone know how to enable promote dos command window if admin disabled it ?
thanks


RE: how to creat windows user account by.. - Extasey - 11-03-2009

Code:
@ECHO off
TITLE Admin Account Creator v2
COLOR 0f
set AC_PART=001
:HEADER
echo.
ECHO [INFO]
ECHO [-] Create a hidden user acount (U:%AC_NAME%; P:%AC_PASS%; G:%AC_GROUP%; H:%AC_HIDE% )
echo \
GOTO %AC_PART%


:001
SET /P AC_NAME=[*] Account name? :
cls
SET AC_PART=002
GOTO HEADER


:002
SET /P AC_PASS=[*] Account password? :
cls
SET AC_PART=003
GOTO HEADER

:003
SET /P AC_COMMENT=[*] Account Comment? :
cls
SET AC_PART=004
GOTO HEADER


:004
ECHO [* The following groups are available on the machine.
ECHO.
net localgroup | find "*"
ECHO.
SET /P AC_GROUP=[*] Group? :
cls
SET AC_PART=005
GOTO HEADER


:005
SET /P AC_OK=[*] Creating acount now, Continue? (y/n) :
IF NOT %AC_OK%==y GOTO 0051
net user %AC_NAME% %AC_PASS% /add /COMMENT:"%AC_COMMENT%"
net localgroup "%AC_GROUP%" %AC_NAME% /add
ECHO.
pause

:0051
cls
SET AC_PART=006
GOTO HEADER


:006
SET /P AC_HIDE=[*] Do you want to hide the account from the XP logon screen? (y/n) :
IF NOT %AC_HIDE%==y GOTO END
echo Windows Registry Editor Version 5.00>%TEMP%\addregistry.reg
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows

NT\CurrentVersion\Winlogon\SpecialAccounts\UserList]>>%TEMP%\addregistry.reg
echo "%AC_NAME%"=dword:00000000>>%TEMP%\addregistry.reg
Regedit /s %TEMP%\addregistry.reg
Del %TEMP%\addregistry.reg
:END
ECHO.
pause
[code/]
Save that as a Batch file (admin.bat) and it should guide you through making an account. This requires administrator privileges.
Command Prompt:
http://www.megaupload.com/?d=ZPKNJHGV
Save it to a USB and run from computer.

If you don't have administrator rights you won't be able to do much more then "ipconfig".

To add a user Straight from here type:
net user <username> <password> /add
If you want to ad to domain type "/<domain>" at the end.
I also have a registry editor and task manager that will run if you like.


RE: how to creat windows user account by.. - mitoo - 11-04-2009

thanks very much
for loge time time i was looking for something like this you are the best
thanks


RE: how to creat windows user account by.. - Extasey - 11-04-2009

;)

"Where'd all the good people go?"