Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

make a user auto logon

Posted on 2011-10-27
5
Medium Priority
?
872 Views
Last Modified: 2012-05-12
The following script adds the user and password correctly but does not make the user autologon like I would like to. How do I fix this script so that the user will auto logon and not require a password?

@echo off
net user user P@ssw0rd /add

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "AutoAdminLogon" /d "1" /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "DefaultPassword" /d "P@ssw0rd" /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "DefaultUsername" /d "user" /f

Open in new window

0
Comment
Question by:tfgeorge
  • 3
5 Comments
 
LVL 1

Author Comment

by:tfgeorge
ID: 37040894
Need it scripted bud. I know how to make it happen through the UI
0
 
LVL 66

Accepted Solution

by:
johnb6767 earned 2000 total points
ID: 37041242
Is there a DisableCAD value set to 0 under

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon?

Try adding this one....

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "DisableCAD" /t reg_dword /d "0x1" /f
0
 
LVL 1

Author Comment

by:tfgeorge
ID: 37041308
Perfect John!
0
 
LVL 1

Author Closing Comment

by:tfgeorge
ID: 37041312
excellent
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In previous parts of this Nano Server deployment series, we learned how to create, deploy and configure Nano Server as a Hyper-V host. In this part, we will look for a clustering option. We will create a Hyper-V cluster of 3 Nano Server host nodes w…
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
This Micro Tutorial will teach you how to the overview of Microsoft Security Essentials. This is a free anti-virus software that guards your PC against viruses, spyware, worms, and other malicious software. This will be demonstrated using Windows…
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.
Suggested Courses

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question