Core network components | Microsoft Lear·续2
-
In the Computer Name/Domain Changes dialog box, in Computer name, type a new name for your computer. For example, if you want to name the computer DC1, type DC1.
-
Click OK twice, and then click Close. If you want to restart the computer immediately to complete the name change, click Restart Now. Otherwise, click Restart Later.
Note
For information on how to rename computers that are running other Microsoft operating systems, see Appendix A - Renaming computers.
Configure a static IP address
You can use the procedures in this topic to configure the Internet Protocol version 4 (IPv4) properties of a network connection with a static IP address for computers running Windows Server 2016.
Note
To perform this procedure by using Windows PowerShell, open PowerShell and type the following cmdlets on separate lines, and then press ENTER. You must also replace interface names and IP addresses in this example with the values that you want to use to configure your computer.
New-NetIPAddress -IPAddress 10.0.0.2 -InterfaceAlias "Ethernet" -DefaultGateway 10.0.0.1 -AddressFamily IPv4 -PrefixLength 24
Set-DnsClientServerAddress -InterfaceAlias "Ethernet" -ServerAddresses 127.0.0.1
To configure a static IP address on computers running Windows Server 2016, Windows Server 2012 R2, and Windows Server 2012
-
In the task bar, right-click the Network icon, and then click Open Network and Sharing Center.
-
In Network and Sharing Center, click Change adapter settings. The Network Connections folder opens and displays the available network connections.
-
In Network Connections, right-click the connection that you want to configure, and then click Properties. The network connection Properties dialog box opens.
-
In the network connection Properties dialog box, in This connection uses the following items, select Internet Protocol Version 4 (TCP/IPv4), and then click Properties. The Internet Protocol Version 4 (TCP/IPv4) Properties dialog box opens.
-
In Internet Protocol Version 4 (TCP/IPv4) Properties, on the General tab, click Use the following IP address. In IP address, type the IP address that you want to use.
-
Press tab to place the cursor in Subnet mask. A default value for subnet mask is entered automatically. Either accept the default subnet mask, or type the subnet mask that you want to use.
-
In Default gateway, type the IP address of your default gateway.
Note
You must configure Default gateway with the same IP address that you use on the local area network (LAN) interface of your router. For example, if you have a router that is connected to a wide area network (WAN) such as the Internet as well as to your LAN, configure the LAN interface with the same IP address that you will then specify as the Default gateway. In another example, if you have a router that is connected to two LANs, where LAN A uses the address range 10.0.0.0/24 and LAN B uses the address range 192.168.0.0/24, configure the LAN A router IP address with an address from that address range, such as 10.0.0.1. In addition, in the DHCP scope for this address range, configure Default gateway with the IP address 10.0.0.1. For the LAN B, configure the LAN B router interface with an address from that address range, such as 192.168.0.1, and then configure the LAN B scope 192.168.0.0/24 with a Default gateway value of 192.168.0.1.
-
In Preferred DNS server, type the IP address of your DNS server. If you plan to use the local computer as the preferred DNS server, type the IP address of the local computer.
-
In Alternate DNS Server, type the IP address of your alternate DNS server, if any. If you plan to use the local computer as an alternate DNS server, type the IP address of the local computer.
-
Click OK, and then click Close.
Note
For information on how to configure a static IP address on computers that are running other Microsoft operating systems, see Appendix B - Configuring static IP addresses.
Deploying DC1
To deploy DC1, which is the computer running Active Directory Domain Services (AD DS) and DNS, you must complete these steps in the following order:
-
Perform the steps in the section Configuring All Servers.
-
Install AD DS and DNS for a New Forest
-
Create a User Account in Active Directory Users and Computers
-
Assign Group Membership
-
Configure a DNS Reverse Lookup Zone
Administrative privileges
If you are installing a small network and are the only administrator for the network, it is recommended that you create a user account for yourself, and then add your user account as a member of both Enterprise Admins and Domain Admins. Doing so will make it easier for you to act as the administrator for all network resources. It is also recommended that you log on with this account only when you need to perform administrative tasks, and that you create a separate user account for performing non-IT related tasks.
If you have a larger organization with multiple administrators, refer to AD DS documentation to determine the best group membership for organization employees.
Differences between domain user accounts and user accounts on the local computer
One of the advantages of a domain-based infrastructure is that you do not need to create user accounts on each computer in the domain. This is true whether the computer is a client computer or a server.
Because of this, you should not create user accounts on each computer in the domain. Create all user accounts in Active Directory Users and Computers and use the preceding procedures to assign group membership. By default, all user accounts are members of the Domain Users group.
All members of the Domain Users group can log on to any client computer after it is joined to the domain.
You can configure user accounts to designate the days and times that the user is allowed to log on to the computer. You can also designate which computers each user is allowed to use. To configure these settings, open Active Directory Users and Computers, locate the user account that you want to configure, and double-click the account. In the user account Properties, click the Account tab, and then click either Logon Hours or Log On To.
Install AD DS and DNS for a New Forest
You can use one of the following procedures to install Active Directory Domain Services (AD DS) and DNS and to create a new domain in a new forest.
The first procedure provides instructions on performing these actions by using Windows PowerShell, while the second procedure shows you how to install AD DS and DNS by using Server Manager.
Important
After you finish performing the steps in this procedure, the computer is automatically restarted.
Install AD DS and DNS Using Windows PowerShell
You can use the following commands to install and configure AD DS and DNS. You must replace the domain name in this example with the value that you want to use for your domain.
Note
For more information about these Windows PowerShell commands, see the following reference topics.
Membership in Administrators is the minimum required to perform this procedure.
- Run Windows PowerShell as an Administrator, type the following command, and then press ENTER:
Install-WindowsFeature AD-Domain-Services -IncludeManagementTools`
When installation has successfully completed, the following message is displayed in Windows PowerShell.
| Success | Restart Needed | Exit Code | Feature Result |
| --- | --- | --- | --- |
| True | No | Success | {Active Directory Domain Services, Group P... |
- In Windows PowerShell, type the following command, replacing the text corp.contoso.com with your domain name, and then press ENTER:
Install-ADDSForest -DomainName "corp.contoso.com"
- During the installation and configuration process, which is visible at the top of the Windows PowerShell window, the following prompt appears. After it appears, type a password and then press ENTER.
SafeModeAdministratorPassword:
- After you type a password and press ENTER, the following confirmation prompt appears. Type the same password and then press ENTER.
Confirm SafeModeAdministratorPassword:
- When the following prompt appears, type the letter Y and then press ENTER.
The target server will be configured as a domain controller and restarted when this operation is complete.
Do you want to continue with this operation?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):
-
If you want to, you can read the warning messages that are displayed during normal, successful installation of AD DS and DNS. These messages are normal and are not an indication of install failure.
-
After installation succeeds, a message appears stating that you are about to be logged off of the computer so that the computer can restart. If you click Close, you are immediately logged off the computer, and the computer restarts. If you do not click Close, the computer restarts after a default period of time.
-
After the server is restarted, you can verify successful installation of Active Directory Domain Services and DNS. Open Windows PowerShell, type the following command, and press ENTER.
Get-WindowsFeature
The results of this command are displayed in Windows PowerShell, and should be similar to the results in the image below. For installed technologies, the brackets to the left of the technology name contain the character X, and the value of Install State is Installed.

Install AD DS and DNS Using Server Manager
-
On DC1, in Server Manager, click Manage, and then click Add Roles and Features. The Add Roles and Features Wizard opens.
-
In Before You Begin, click Next.
Note
The Before You Begin page of the Add Roles and Features Wizard is not displayed if you have previously selected Skip this page by default when the Add Roles and Features Wizard was run.
-
In Select Installation Type, ensure that Role-Based or feature-based installation is selected, and then click Next.
-
In Select destination server, ensure that Select a server from the server pool is selected. In Server Pool, ensure that the local computer is selected. Click Next.
-
In Select server roles, in Roles, click Active Directory Domain Services. In Add features that are required for Active Directory Domain Services, click Add Features. Click Next.
-
In Select features, click Next, and in Active Directory Domain Services, review the information that is provided, and then click Next.
-
In Confirm installation selections, click Install. The Installation progress page displays status during the installation process. When the process completes, in the message details, click Promote this server to a domain controller. The Active Directory Domain Services Configuration Wizard opens.
-
In Deployment Configuration, select Add a new forest. In Root domain name, type the fully qualified domain name (FQDN) for your domain. For example, if your FQDN is corp.contoso.com, type corp.contoso.com. Click Next.
-
In Domain Controller Options, in Select functional level of the new forest and root domain, select the forest functional level and domain functional level that you want to use. In Specify domain controller capabilities, ensure that Domain Name System (DNS) server and Global Catalog (GC) are selected. In Password and Confirm password, type the Directory Services Restore Mode (DSRM) password that you want to use. Click Next.
-
In DNS Options, click Next.
-
In Additional Options, verify the NetBIOS name that is assigned to the domain, and change it only if necessary. Click Next.
-
In Paths, in Specify the location of the AD DS database, log files, and SYSVOL, do one of the following:
-
Accept the default values.
-
Type folder locations that you want to use for Database folder, Log files folder, and SYSVOL folder.
-
Click Next.
-
In Review Options, review your selections.
-
If you want to export settings to a Windows PowerShell script, click View script. The script opens in Notepad, and you can save it to the folder location that you want. Click Next. In Prerequisites Check, your selections are validated. When the check completes, click Install. When prompted by Windows, click Close. The server restarts to complete installation of AD DS and DNS.
-
To verify successful installation, view the Server Manager console after the server restarts. Both AD DS and DNS should appear in the left pane, like the highlighted items in the image below.

Create a User Account in Active Directory Users and Computers
You can use this procedure to create a new domain user account in Active Directory Users and Computers Microsoft Management Console (MMC).
Membership in Domain Admins, or equivalent, is the minimum required to perform this procedure.
Note
To perform this procedure by using Windows PowerShell, open PowerShell and type the following cmdlet on one line, and then press ENTER. You must also replace the user account name in this example with the value that you want to use.
New-ADUser -SamAccountName User1 -AccountPassword (read-host "Set user password" -assecurestring) -name "User1" -enabled $true -PasswordNeverExpires $true -ChangePasswordAtLogon $false
After you press ENTER, type the password for the user account. The account is created and, by default, is granted membership to the Domain Users group.
With the following cmdlet, you can assign additional group memberships for the new user account. The example below adds User1 to the Domain Admins and Enterprise Admins groups. Ensure before running this command that you change the user account name, domain name, and groups to match your requirements.
Add-ADPrincipalGroupMembership -Identity "CN=User1,CN=Users,DC=corp,DC=contoso,DC=com" -MemberOf "CN=Enterprise Admins,CN=Users,DC=corp,DC=contoso,DC=com","CN=Domain Admins,CN=Users,DC=corp,DC=contoso,DC=com"
To create a user account
-
On DC1, in Server Manager, click Tools, and then click Active Directory Users and Computers. The Active Directory Users and Computers MMC opens. If it is not already selected, click the node for your domain. For example, if your domain is corp.contoso.com, click corp.contoso.com.
-
In the details pane, right-click the folder in which you want to add a user account.
Where?
-
Active Directory Users and Computers/domain node/folder
-
Point to New, and then click User. The New Object - User dialog box opens.
-
In First name, type the user's first name.
-
In Initials, type the user's initials.
-
In Last name, type the user's last name.
-
Modify Full name to add initials or reverse the order of first and last names.
-
In User logon name, type the user logon name. Click Next.
-
In New Object - User, in Password and Confirm password, type the user's password, and then select the appropriate password options.
-
Click Next, review the new user account settings, and then click Finish.
Assign Group Membership
You can use this procedure to add a user, computer, or group to a group in Active Directory Users and Computers Microsoft Management Console (MMC).
Membership in Domain Admins, or equivalent is the minimum required to perform this procedure.
To assign group membership
-
On DC1, in Server Manager, click Tools, and then click Active Directory Users and Computers. The Active Directory Users and Computers MMC opens. If it is not already selected, click the node for your domain. For example, if your domain is corp.contoso.com, click corp.contoso.com.
-
In the details pane, double-click the folder that contains the group to which you want to add a member.
