Windows Server 2016 Server Core: How-to setup a WSUS server?

The following is a sample chapter from the e-Book Windows Server 2016: How to setup your server? (Server Core). Enjoy reading!

“Modesty is not only an ornament, but also a guard to virtue.” Joseph Addison

What is WSUS?

Windows Server Update Services (WSUS) enables system administrators to manage the distribution of Microsoft’s product updates to company’s network computers.

How WSUS works?

WSUS works in a way that its infrastructure enables system administrators to download updates, patches and fixies in the company’s central server, and then from the server to update other computers.

How to add a WSUS role?

To add the WSUS role in your server using PowerShell, complete the following steps:

  • login to your server by typing your Administrator’s password and pressing Enter
  • type PowerShell at command prompt and press Enter
  • type Install-WindowsFeature -Name UpdateServices -IncludeManagementTools and press Enter

figure47

How-to setup a WSUS server?

To setup your WSUS server using PowerShell, complete the following steps:

  • to create a folder that stores the WSUS content type at PowerShell prompt type New-Item -Path C: -Name WSUS -ItemType Directory and press Enter

figure48

  • to configure the folder where the WSUS content will download type at Command prompt .\wsusutil.exe postinstall CONTENT_DIR=C:\WSUS and press Enter

figure49

  • to configure the WSUS synchronization with Microsoft Update type Set-WsusServerSynchronization –SyncFromMU and press Enter

figure50to set the Update Languages to English and save configuration settings type

  • $wsusConfig.AllUpdateLanguagesEnabled = $false and press Enter
  • $wsusConfig.SetEnabledUpdateLanguages(“en”) and press Enter
  • $wsusConfig.Save() and press Enter

figure51

  • to get WSUS Subscription type $subscription = $wsus.GetSubscription() and press Enter

figure52

  • to start synchronization type $subscription.StartSynchronization() and press Enter

figure53

Hope you’ll find this post informative.

Advertisements

Windows Server 2016: How to add AD DS and DNS roles using PowerShell?

The following is a sample chapter from the e-Book Windows Server 2016: How to install and add roles? (Server Core). Enjoy reading!

All this modern technology just makes people try to do everything at once.” Bill Watterson

What is Active Directory Domain Services (AD DS)?

Active Directory Domain Services (AD DS) was introduced by Microsoft in Windows 2000 Server replacing Windows NT’s Primary Domain Controller (PDC) and Backup Domain Controller (BDC). AD DS is a distributed database which stores objects in a hierarchical, structured, and safe format. AD DS objects typically represent users, computers, peripheral devices and network services. Any object is uniquely identified by its name and attributes. The domain, the forest, and the tree represent logical division of AD DS network. To ease the administration of objects, AD DS provides organizational units (OU). Thus, on organizational units (OU) group policies (GP) can be applied. AD DS uses the following protocols:

  • Lightweight Directory Access Protocol (LDAP) to access the directory services data
  • Kerberos to prove identity between users and servers on the network
  • Domain Name System (DNS) to translate domain names into IP addresses

What is Domain Name System (DNS)?

Domain Name System (DNS) dates back from the ARPANET era. At that time, scientists engaged in the ARPANET project were trying to find a way of memorization of names instead of an IP addresses. Thus, in the beginning of ’80s, in the form of Requests for Comments (RFC) documents were published the first specifications about the domain name system (DNS). Essentially, DNS is the tree structure (hierarchical) where each branch represents the root zone and each leaf has zero or more resource records. Each area represents a root domain or multiple domains and sub-domains. A domain name consists of one or more parts called labels and separated by points (e.g. BekimDauti.com). Since DNS is maintained by a database which uses distributed clients-server architecture then network nodes in such network represent the names of the servers. In the following lines the DNS working process is shown which lasts in milliseconds (ms):

  • if you type in your browser’s address bar the web address www.BekimDauti.com then your browser will make a request to the Internet to access the website www.BekimDauti.com
  • the very first server that your browser runs into is the Recursive Resolver which may be provided by your Internet Service Provider (ISP)
  • the Recursive Resolver will then contact the root servers that are scattered all over the globe and contain the information about Top-level domains, in our example .com
  • the Top-level domain will provide the domain name server information to the Recursive Resolver
  • afterwards Recursive Resolver will contact the domain name server BekimDauti.com and through the domain name server’s local DNS will find out the IP address
  • then this IP address is provided to your browser by Recursive Resolver in order to access the web server content via its newly accustomed IP address

How to add AD DS and DNS roles?

In Windows Server 2016 Server Core, both AD DS and DNS are offered as roles which can be added using PowerShell. To add the AD DS and DNS roles to your server, complete the following steps:

  • login to your server by typing your Administrator’s password and pressing Enter
  • type PowerShell at command prompt and press Enter
  • type Install-windowsfeature AD-Domain-Services and press Enter
  • type Import-Module ADDSDeployment and press Enter
  • type Install-ADDSForest
    -CreateDnsDelegation:$false
    -DatabasePath “C:\Windows\NTDS”
    -DomainMode “Win2016”
    -DomainName “WS2016SC.local”
    -DomainNetbiosName “WS2016SC”
    -ForestMode “Win2016”
    -InstallDns:$true
    -LogPath “C:\Windows\NTDS”
    -NoRebootOnCompletion:$false
    -SysvolPath “C:\Windows\SYSVOL”
    -Force:$true
    and press Enter
  • provide the name for the domain and press Enter
  • provide the safe mode administrator password and press Enter
  • confirm safe mode administrator password and press Enter
  • type letter Y for Yes and press Enter

figure43

  • after the installation is complete the server will restart automatically
  • login to your server by typing your Administrator’s password and pressing Enter
  • type sconfig.cmd and press Enter
  • you’ll notice that the domain is WS2016SC.local

figure44

  • type PowerShell at command prompt and press Enter
  • type get-windowsfeature and press Enter
  • use PgUp or PgDn to scroll the list
  • you’ll notice that both the AD DS and DNS roles were added to the server

figure45

Note: In a process of adding AD DS role to your server, make sure you add your domain name and related information.

Hope you’ll find this post informative.

New e-Book: Windows Server 2016 – How to install and add roles? (Server Core)

Whom this e-Book is for?

This e-Book is an alternative of the 1st Volume Windows Server 2016: How to install and add roles? (Desktop Experience) from the Windows Server 2016: From installation to setting up your server e-Book series through a Desktop Experience. It continues to present the content of the Volume 1 by adding the server core component. Thus, introducing the PowerShell instead of Server Manager in Windows Server 2016: From installation to configuration e-Book series. With that in mind, this e-Book is for anyone who is making the first steps in managing windows servers through PowerShell in general, and Windows Server 2016 Server Core in particular. Other than that, this e-Book proves to be a handy informational resource for the well-established system administrators as it covers Windows Server 2016 Server Core sys admin tools. However, this e-Book is not intended to provide the in-depth explanations of each and every role and feature that the Windows Server 2016 Server Core is providing. Instead, with step-by-step instructions driven by targeted, easy-to-understand commands and graphics, this e-Book explains and shows you how to use the PowerShell in adding roles in Windows Server 2016 Server Core. With the guidance provided by this easy to follow resource, you will quickly install, and ad roles in your Windows Server 2016 Server Core server.

windows-server-2016-server-core

Windows Server 2016: How to install and add roles? (Server Core)

Product Details:

  • File Size: 1340 KB
  • Print Length: 86 pages
  • Simultaneous Device Usage: Unlimited
  • Publication Date: December 26, 2016
  • Sold by: Amazon Digital Services LLC
  • Language: English

Table of Contents

Introduction
Chapter 1: Downloading Windows Server 2016
Chapter 2: Installing Windows Server 2016 Server Core
Chapter 3: How to configure your server?
Chapter 4: How to add the AD DS and DNS roles?
Chapter 5: How to add the DHCP role?
Chapter 6: How to add the Hyper-V role?
Chapter 7: How to add the Web Server (IIS) role?
Chapter 8: How to add the PDS role?
Chapter 9: How to add the Remote Access role?
Chapter 10: How to add the RDS role?
Chapter 11: How to add the WSUS role?
In Summary
Appendix A: The PowerShell commands in one place
Thank You!

Thank You!

Thank you for your time and consideration to download and read the e-Book! If you’ve liked this e-Book and want to participate actively in the further improvement process, then please e-Mail your:

  • comments
  • suggestions, and
  • observations

at BekimDauti@BekimDauti.com. With pleasure, I will read and try to include your comments, suggestions, and observation in the next editions of this e-Book.

Hope you’ll find this post informative.