Jump to content

User input Account & Autologon


Recommended Posts

Guest flipje
Posted

I made a little script where users can fill in there name so after the install I would like to logon with that input of the user but the autologon wont work after the install...

Here is a a part of the script....

CLS
ECHO Please fill in the following information
SET /P FullName=Fullname (First and Lastname) :
SET /P usrName=Your username (Like: Viper)    :
SET /P password=Password for %usrName%        :

set _USER=%usrName%
set _PASS=%password%
set _FULL=%FullName%
net user %_USER% password:"%_PASS%" /add /FULLNAME:"%_FULL%" /EXPIRES:NEVER>nul
net localgroup administrators "%_USER%" /add>nul
%SystemRoot%\system32\reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "DefaultUserName" /d "%_USER%" /f
%SystemRoot%\system32\reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "DefaultUserPassword" /d "%_PASS%" /f
%SystemRoot%\system32\reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "AutoAdminLogon" /d "1" /f
net accounts /maxpwage:unlimited
REGEDIT /S %systemdrive%\HKCU2.reg

HKCU2.reg

Windows Registry Editor Version 5.00 

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"AutoAdminLogon"="1"

Anyone idea's???

Thanks...


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