Перейти к содержимому

Автоматический вход в Windows Server 2012

51

Привет всем, я надеюсь, кто-то знает, как настроить Server 2012 с автоматическим входом в систему?

Я уже попробовал: winserver2012

Но я не могу найти флажок, который был в 2008 году на сервере, который сказал: «Пользователи должны ввести имя пользователя и пароль, чтобы использовать этот компьютер».

Где еще я могу пойти / сделать, чтобы сделать этот автоматический вход?

221 776 просмотров
StealthRT спросил 13 лет назад
S 516

8 ответов

43
Принятый ответ

Попробуйте использовать технику ключа реестра.

Вам нужно будет иметь учетную запись с паролем, чтобы это работало.

  1. Бежать regedit.exe

  2. Перейдите к

    HKLM\Software\Microsoft\Windows NT\CurrentVersion\winlogon 
  3. Установите или создайте следующие ключи

    (DWORD) AutoAdminLogon = 1 (String) DefaultUserName = Your user name (String) DefaultPassword = Your password 
  4. Перезапустите и дайте нам знать, если это работает!

Mikhail ответил 13 лет назад
M 2 897
33

Autologon from Sysinternals should do the trick. It’s really simple too.

Хотя этот вопрос относится к исходному Server 2012, это единственный метод, который все еще работает под R2.

PeterJ · 11 лет назад · 2

Это не работает в Windows Server 2012 R2 Standard.

Sathish · 10 лет назад · 0

У меня сегодня нормально работало на R2 Standard

bendecko · 9 лет назад · 0
cem2ran ответил 13 лет назад
C 431
31

Я бы не стал вручную редактировать реестр. Используйте приложение netplwiz.exe, которое входит в стандартную комплектацию 2012 года (и 2008 года также). Это открыло для меня следующую учетную запись.enter image description here

Просто найдите приложение в меню «Пуск» или перейдите в C: \ Windows \ System32, чтобы найти его.

И кажется, что пароль не хранится в открытом виде в реестре, когда вы делаете это таким образом. Гораздо лучший способ сделать это.

Matt H · 12 лет назад · 0

Для тех, кто так же глуп, как я, вам нужно ОЧИСТИТЬ «Пользователи должны ввести имя пользователя и пароль для использования этого компьютера», и он запросит пароль, с помощью которого сервер будет выполнять автоматический вход в систему.

Francisco Aquino · 11 лет назад · 7

Эта опция недоступна в Windows 2012 R2.

Erikk · 11 лет назад · 2

Параметр недоступен в сети DOMAIN_, пока параметр AutoAdminLogon не будет настроен, как описано в других публикациях.

woodvi · 10 лет назад · 1

Я согласен, что это, вероятно, лучший способ сделать это.

Lukasz · 8 лет назад · 0
John Smith ответил 12 лет назад
J 419
7

Go to CMD and type "control userpasswords2". If you can see the "Users must enter a user name and password to use this computer" checkbox then uncheck it and Apply/Ok and enter your credentials.

However, Windows does not always show the "Users must enter a user name and password to use this computer" checkbox. For instance if your PC is joined to a domain.

If you use the full registry method, then your password will be saved in plan text, which could be a security issue. To get around this you can force the checkbox to appear no matter what.

  1. Open the registry and navigate to "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon".
  2. Create ONLY the String "AutoAdminLogon" with a value of "1".
  3. Close the registry editor and open a CMD prompt.
  4. Type "control userpasswords2" without the quotes.

You will now see the same dialog the OP posted but with the checkbox "Users must enter a user name and password to use this computer" and it will be unchecked.

  1. Re-check the box and hit Apply.
  2. Then uncheck it again and hit Apply or OK and save your UID and PWD.

The machine will auto login, without storing your credentials in the registry in plain text. If you had previously did the full registry method before with UID and PWD I would delete them before doing this, however checking the box might delete the keys for you.

If the PC is a DC or Domain member than you may need to configure the login domain registry entry before it will work properly.

Легко и быстро! (Я нашел флажок в первую очередь :)

Jako · 9 лет назад · 0
Brian D. ответил 11 лет назад
B 199
2

I think this is easiest to do from PowerShell...

Type:

PS:> $RegPath = "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" PS:> Set-ItemProperty $RegPath "AutoAdminLogon" -Value "1" -type String PS:> Set-ItemProperty $RegPath "DefaultUsername" -Value "YOURDOMAINNAME\Administrator" -type String PS:> Set-ItemProperty $RegPath "DefaultPassword" -Value "YOURPASSWORD" -type String 

I don't know if that's easier overall, but it's something you can do from a remote PowerShell session. To my mind that makes it much more accessible.

Ejoso ответил 12 лет назад
E 180
1

Вы должны заменить или создать следующие ключи в реестре:

HKLM \ Программное обеспечение \ Microsoft \ Windows NT \ CurrentVersion \ winlogon

AutoAdminLogon = 1

DefaultUsername = currentUserName

DefaultPassword = currentPassword

Ссылка: http://techsultan.com/autologin-on-windows-server-2012/

Sultan ответил 13 лет назад
S 11
1

если вы установите только « AutoAdminLogon = 1 », вы вернете флажок « Пользователи должны ввести имя пользователя и пароль для использования этого компьютера ».

Таким образом, вам не нужно делать слишком много в реестре.

Не работал для меня Флажок по-прежнему не отображается.

LPChip · 10 лет назад · 0
Michele Possamai ответил 12 лет назад
M 11
1

if you need to keep your logon password encrypted (AES256), take a look at LogonExpert autologon tool: http://www.logonexpert.com Yes, this tool is paid one, but it contains a lot of useful features, not just simple auto login at Windows start-up. Some of them I personally use:

  • Scheduled logon/logoff (every morning with computer auto wake-up and auto logoff with putting computer to sleep every evening)
  • Auto unlock and auto re-logon
  • Server based batch files on scheduled events (Windows scheduler) for remote logoff and logon specified user on the computers network wide (via LogonExpert command line le.exe + psexec)
Serg N. ответил 10 лет назад
S 11