• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 874
  • Last Modified:

make a user auto logon

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
tfgeorge
Asked:
tfgeorge
  • 3
1 Solution
 
AustinComputerLabsCommented:
0
 
tfgeorgeAuthor Commented:
Need it scripted bud. I know how to make it happen through the UI
0
 
johnb6767Commented:
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
 
tfgeorgeAuthor Commented:
Perfect John!
0
 
tfgeorgeAuthor Commented:
excellent
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now