Posted in: Windows Server 2022

Windows Server 2022设置开机自动登录

Windows Server 2022设置开机自动登录

当把AMPP部署到操作系统为Server 2022的计算节点的时候会发现之前设置开机自动登录的方法会失效,这时如果仅仅从云服务商提供的web控制终端开启实例则AMPP相关的服务和进程都不能启动,需要设置自动登录来规避这个问题。

参照微软相关文档并实践之后确定以下方法可以实现开机自动登录

To use Registry Editor to turn on automatic logon, follow these steps:

  1. Click Start, and then click Run.

  2. In the Open box, type Regedit.exe, and then press Enter.

  3. Locate the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon subkey in the registry.

  4. Double-click the DefaultUserName entry, type your user name, and then click OK.

    If the DefaultUserName value does not exist, it must be added. To add the value, follow these steps:

    1. On the Edit menu, click New, and then point to String Value.
    2. Type DefaultUserName, and then press Enter.
    3. Double-click DefaultUserName.
    4. In the Edit String dialog, type your username and then click OK.
  5. Double-click the DefaultPassword entry, type your password, and then click OK.

    If the DefaultPassword value does not exist, it must be added. To add the value, follow these steps:

    1. On the Edit menu, click New, and then point to String Value.
    2. Type DefaultPassword, and then press Enter.
    3. Double-click DefaultPassword.
    4. In the Edit String dialog, type your password and then click OK.

Note:
If no DefaultPassword string is specified, Windows automatically changes the value of the AutoAdminLogon key from 1 (true) to 0 (false), disabling the AutoAdminLogon feature.

  1. On the Edit menu, click New, and then point to String Value.
  2. Type AutoAdminLogon, and then press Enter.
  3. Double-click AutoAdminLogon.
  4. In the Edit String dialog box, type 1 and then click OK.
  5. If you have joined the computer to a domain, you should add the DefaultDomainName value, and the data for the value should be set as the fully qualified domain name (FQDN) of the domain, for example contoso.com..
  6. Exit Registry Editor.
  7. Click Start, click Shutdown, and then type a reason in the Comment text box.
  8. Click OK to turn off your computer.
  9. Restart your computer. You can now log on automatically.

file

Windows Server 2016开机自动登录设置

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to Top