Configuring a Server Core installation of Windows Server 2008 R2 with Sconfig.cmd

In Windows Server 2008 R2, in addition to the Dism.exe command, you can use the Server Configuration tool (Sconfig.cmd) to configure and manage several common aspects of Server Core installations. You must be a member of the Administrators group to use the tool.

To start the Server Configuration Tool

  1. Change to the system drive.

  2. Type Sconfig.cmd, and then press ENTER. The Server Configuration tool interface opens:

Domain/Workgroup settings

The current Domain/Workgroup settings are displayed in the default Server Configuration tool screen.

Note

To join a domain

To join a workgroup

  1. Type 1 and press ENTER.

  2. Type W and press ENTER.

  3. Do one of the following:

    If you are currently joined to a workgroup

    1. Type the name of the workgroup to join, and then press ENTER.

    2. You are prompted with “Welcome to the workgroup: workgroup name.” Click OK.

    If you are currently joined to a domain

    1. Type the name of the workgroup to join, and then press ENTER.

    2. You are prompted with “Machine currently joined to domain. Do you want to remove this computer from the current domain now?” Click Yes.

    3. Type an authorized domain\user.

      Example: domain\user1

    4. When prompted, type a password for the user and press ENTER.

    5. You are prompted with “You must restart your computer to apply these changes. Restart now?” Click No.

    6. Type 1 and press ENTER to configure the Hyper-V Server workgroup name.

    7. Type W and press ENTER.

    8. Type the name of the workgroup to join, and then press ENTER.

    9. You are prompted with “Welcome to the workgroup: workgroup name.” Click OK.

  4. Type 11 and press ENTER to restart the computer.

  5. You are prompted with “Are you sure you want to restart?” Click Yes.

Computer name settings

The current computer name is displayed in the default Server Configuration Tool screen.

If joined to a domain

  1. Type 2 and press ENTER to change the computer name.

  2. Type the new computer name, and then press ENTER.

  3. When prompted, type the domain and the name of an authorized user, and then press ENTER.

  4. Type a password for the user and press ENTER.

  5. You are prompted with “You must restart your computer to apply these changes. Restart now?” Click Yes to restart.

If joined to a workgroup

  1. Type 2 and press ENTER to change the computer name.

  2. Type the new computer name, and then press ENTER.

  3. You are prompted with “The computer needs to be restarted in order to complete the operation. The command completed successfully.” Click OK.

  4. You are prompted with “You must restart your computer to apply these changes. Restart now?” Click Yes to restart.

Local administrator settings

Follow these steps to add additional users to the local administrators group.

Note

To add a domain user to the local administrator group