P
P
Pavel K2016-05-06 02:14:28
PowerShell
Pavel K, 2016-05-06 02:14:28

How to make automatic login on reboot using a script on Windows?

Greetings!
Sometimes you need to reboot the system, but so that it automatically enters under a specific user.
There are no problems with autologin, but if there is only one user ...
In general, how to register a reboot from one script with subsequent autologin to the account.
Accounts with a password, but if there is no way with it at all, then it is possible without a password, the main thing is autologin.
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Saboteur, 2016-05-06
@PavelK

You can register the user and password in the registry.
HKLM\Software\Microsoft\Windows NT\CurrentVersion\winlogon
AutoAdminLogon = "1"
DefaultUserName = "user"
DefaultPassword = "pass"
If the computer is in a domain, add another
DefaultDomainName = "domain"
Save the registry files for several users, and apply before rebooting needed via
regedit -s

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question