Chapter 2
IN THIS CHAPTER
Working with Device Manager
Adding new hardware with the Add Hardware Wizard
Configuring hard drives and performing other storage-related tasks
Completing printer-related setup and configuration tasks
Performing other configuration tasks
Whenever you’re working with a brand-new server, and sometimes when you’re working with an older one, you’ll have configuration tasks you need to perform. Some of these tasks are related to the operating system and the applications you want to install; others are related to the server hardware.
When you first install a new server, one of the first things that you’ll want to do is verify that all the hardware is functional. This means checking to ensure that there is a driver present for each piece of hardware and that none of the devices is having issues.
With an older server that is having issues, you need to be able troubleshoot whether the hardware is the issue. This is especially important if the software has not been changed, but the server has suddenly started freezing, crashing, or performing slowly.
In this chapter, I walk you through some different methods of working with server hardware and explain your options.
Device Manager has been front and center for working with hardware in Windows operating systems for a very long time. In fact, it was introduced for the first time to the Windows Server operating system with Windows Server 2000. Its strength comes from its simple interface that makes it very easy to spot hardware devices that are having difficulties. Icons next to each section and driver tell you at a glance if there is an issue with a device in that section and which device is having the issue. Here are the icons you may run into:
There are multiple methods to open Device Manager. In this section, I present one of the shortest methods to open it. Microsoft simplified getting to many of the administrative tools that are commonly used on the Windows Server operating system, and this is one of those tools.
Select Device Manager from the menu.
Device Manager looks similar to Figure 2-1.
The View menu in Device Manager gives you different ways to visualize the hardware in your system. You can logically group your hardware in different ways that make sense to you, which can make it easier to troubleshoot.
When you choose the View menu, you have the following options:
You can also customize what information you’re shown in Device Manager. Choose View⇒ Customize and the Customize View dialog box appears (see Figure 2-2). From here, you can change which items are displayed to you. I’ve never really had a good reason to change from the default view.
Typically, if a device is broken, it will show up in one of two ways:
When you have a device that’s having an issue, it will automatically be expanded in Device Manager when you open it. That makes it much simpler for you as the system administrator to find the device that’s having problems. In Figure 2-3, you can see I have two devices with issues. The DVD/CD-ROM drive is disabled, and under Other Devices I have a Base System Device that is in a problem state.
The DVD/CD-ROM can be re-enabled to see if it’s having issues. I can simply right-click it and choose Enable Device. In my case, it will function properly because I disabled it to take the screenshot. The Base System Device is the more difficult one to troubleshoot because I have very little information to go on.
When I view the Properties screen for the broken device, I can find out that there is no driver installed for the device. I can have Windows automatically search to see if it’s able to find a compatible device. Most often this will fix the problem. If not, you need to do a little more sleuthing to figure out which device is having the issue, and then go to the vendor’s website to download the drivers manually.
Understanding the resources that are represented in Device Manager can be very helpful when troubleshooting technical issues on the system. In some cases, like input/output (IO) and IRQ, having duplicate addresses can cause issues with devices. The devices may stop working or may cause your system to freeze or crash.
If you’ve gone through the content for the A+ certification, this section will probably be old news and you can feel free to skip it. If you haven’t worked on your A+ certification yet, or you’re new to servers and computing, read on!
Direct memory access (DMA) allows attached devices to communicate directly to the memory, taking the central processing unit (CPU) out of the equation as the middleman. This can speed up communication significantly. Typically, around 16MB of memory can be used for DMA.
IO, at its simplest, is defined as any device that can transfer data to or from your server. This could include input devices like keyboards and mice, output devices like printers and monitors, and other devices that are capable of both input and output (like disk drives). In the context of Device Manager, on the Resources tab you can see which IO addresses have been assigned to specific devices by looking at I/O Range.
An IRQ is essentially a signal sent to your CPU that “interrupts” what it’s doing so that the device or software that sent the interrupt can get attention. This is used to support multitasking as the processor is told when it’s needed, instead of having the CPU ask (poll) while it’s idle. Interrupts are assigned to specific devices and are not shared. If two devices have the same IRQ, you’ll get an IRQ conflict. This used to be an issue that system administrators needed to be aware of, but because most devices today are plug and play, it’s not really an issue most system administrators have to work on.
Random access memory (RAM) is great for loading things quickly because it’s a solid state technology. In Device Manager, you can view the memory ranges that are assigned to the individual devices under the Resources tab for each device.
Sometimes devices aren’t visible in Device Manager when you first open it. Devices that are not currently connected and devices that are not plug and play are examples of devices that won’t show up in Device Manager by default.
For devices that are not plug and play, choose View⇒ Show Hidden Devices. This causes the non-plug-and-play devices to show up.
To view devices that were once installed but are no longer attached to the server, you need to open a Command Prompt as an administrator and enter the following command:
SET DEVMGR_SHOW_NONPRESENT_DEVICES=1
Then in the same Command Prompt window, launch Device Manager by typing devmgmt.msc. When Device Manager opens, choose View⇒ Show Hidden Devices. You see “ghost” entries for the devices that once existed. This is helpful if old device drivers are causing issues with new devices or applications because you can remove them when you can see them.
If you’ve installed a new device but it isn’t showing up in Device Manager, you can start a scan for new hardware by choosing Action⇒ Scan for Hardware Changes. This will scan for new hardware, and if it locates it, attempt to locate and install a driver for the hardware.
As a system administrator, you may be asked to install a device that is older and not recognized by the computer when it’s plugged in. For these non-plug-and-play devices, your best bet is to use the Add Legacy Hardware option in Device Manager. You can get to it by choosing Action⇒ Add Legacy Hardware from inside the Device Manager window.
While in Device Manager, viewing the settings of individual devices is simple. You can double-click the device, or you can right-click the device and choose Properties. On most devices, you have a minimum of four tabs:
General: The General tab (shown in Figure 2-4) contains basic information regarding the device, such as the name of the device, the type of device, who manufactured it, and the device’s location on the system.
One of my favorite parts of this tab is the Device Status box at the bottom. If you’re troubleshooting an issue, the Device Status box can be very helpful. When your device is working properly, it will look like what you see in Figure 2-4.
Driver: The Driver tab gives you information regarding the installed driver and allows you to perform several driver-related management tasks. It starts out with the name of the driver and then lists the provider of the driver, the date the driver was made available, the version of the driver, and if the driver is signed it includes the identity of the organization that signed it.
The following buttons allow you to manage the drivers on your system from this tab:
Some devices have additional tabs that add further management capabilities, such as Power Management and Resources. Power Management gives you the ability to allow the computer to shut off a device to conserve power, or allow the device to wake the computer if it’s in Sleep mode. The Resources tab, when it’s available, tells you which memory ranges a device is using, which IRQ it’s using, and if there are any conflicting devices.
Updating drivers from Device Manager is pretty simple. You have two options: You can right-click the device and choose Update Driver, or you can right-click the Device, choose Properties, and click the Drivers tab.
After you select Update Driver through either method, you see the dialog box shown in Figure 2-5. Here, you’re presented with the choice to search automatically for the driver or browse the computer for the software. Searching automatically is typically the easiest method; it searches the local computer and then searches the Internet for updated drivers. If for some reason it isn’t able to locate the drivers and you know where they’re located, choosing to browse your computer for the driver software may be the best option.
Some of the devices in Device Manager have a Power Management tab. This tab lets you configure the behavior of the device in regards to — wait for it — power management. You have two or three options, depending on what the device is:
With most devices being plug and play, you shouldn’t ever need to use the Add Hardware Wizard. In fact, it was removed from the Control Panel back in Windows 7, because driver installation is handled automatically. If for some reason the device driver is not being installed, maybe because the device is too old or because it’s too new, you can manually launch the Add Hardware Wizard. Download the drivers from the manufacturer’s site first, and then follow these instructions:
Type hdwwiz.exe and press Enter.
The Add Hardware Wizard launches (see Figure 2-6).
Choose the manufacturer and the model of your device and click Next.
The wizard installs the driver.
It is worth noting that there are multiple ways to get to the Add Hardware Wizard that are not documented in steps that I’ve just described. Find the way that works best for you to access these items — don’t be afraid to experiment.
Central to most of the work you’ll do on your servers is the hard drive. Hard drives store the operating system and the data that your organization needs to do what it does best. There are two main types of storage in use today.
When you first initialize a disk, it’s a basic disk. For most users, this works just fine. Basic disks are a simple solution and, by default, how new disks are created. However, if your organization wants to use more advanced disk features, you need to upgrade to a dynamic disk. Dynamic disks support
Picture yourself in the datacenter working on installing a new server. You’re working on getting it cabled in, grumbling about the inevitable rat’s nest of cables in the way, when you realize you accidentally unplugged the power from the rack switch that is used for connections to the Internet Small Computer Systems Interface (iSCSI) storage. You brace yourself for the inevitable slew of angry phone calls, but nothing happens. Then you realize that every system has a second network cable going to the iSCSI switch in the rack next door. You breathe a sigh of relief — you have multipath I/O (MPIO).
MPIO is a technology that allows a server to recognize more than one path to its storage area network (SAN) storage. This is commonly set up for Fibre Channel and iSCSI storage networks to provide fault tolerance for the storage network. In addition to that, depending on how it’s configured, it can help increase performance because you can use both connections at the same time.
Installing MPIO is pretty straightforward, but the configuration can be a little more complex. MPIO is offered as a feature in Windows Server 2019. Here’s how to install MPIO:
With MPIO installed, you can configure it to work with your iSCSI storage or even Serial Attached SCSI (SAS) storage.
For years, the local storage on the server was all you had to work with. Being limited to the storage in the server had several problems. It wasn’t fault tolerant (unless you used RAID, with the exception of RAID 0), it wasn’t easily scalable, and the capacity was limited to however many disks would fit in the server.
Somebody came up with the idea of creating drive arrays to alleviate those issues. The drive arrays could have expandable trays of disks. Those trays could be used to mirror other trays or to use RAID if fault tolerance was the main goal. These large drive arrays needed a network that could support the growing amount of data being pushed into them. And so the SAN was born.
There are many different protocols in use in SANs, but here are the two most frequently used in enterprise environments today:
What happens if you want the best of both worlds? Some companies sell what is referred to as unified storage. These storage devices are capable of supporting both iSCSI and Fibre Channel.
Storage Spaces Direct is a feature that was introduced in Windows Server 2016 Datacenter edition. It was a great way for organizations that couldn’t afford a SAN to be able to achieve the dream of highly available and highly scalable storage. It took advantage of the local storage on the servers to create a pool of storage that the entire cluster of servers, called nodes, could take advantage of.
To use Storage Spaces Direct on multiple servers, you need to install the Failover Clustering and Hyper-V roles on each server. You need a minimum of 10 Gb Ethernet between the clustered systems, and remote direct memory access (RDMA) is recommended.
Setting up the storage is fairly straightforward. You create a storage pool from the physical disks, and from there you create logical disks and then volumes. I’ll show you how to do this on a standalone server, but the process is very similar with clustered servers. First, you’ll create a storage pool. Then you’ll create logical disks and volumes.
The storage pool is the starting point when building out the storage for Storage Spaces Direct. Here’s how to create the storage pool:
Click Storage Pools.
If you have available disk drives, they show up under Physical Disks on the lower-right side. Notice under Storage Pools that there is an entry called Primordial. This is created by default with the available disks (see Figure 2-9).
On the Specify a Storage Pool Name and Subsystem Screen, enter a name for the pool and click Next.
I’m naming our pool “Pool1.” Notice in Figure 2-10 that the primordial pool is selected by default.
On the Select Physical Disks for the Storage Pool screen, you see all the disks that were in the primordial pool. You can choose some of the disks or all of the disks.
On the Confirm Selections screen, click Create.
If all goes well, the View Results screen should say Completed.
Now that the pool is created, you can create a logical disk. Follow these steps:
Right-click Pool1 and choose New Virtual Disk, or click the To Create a Virtual Disk, Start the New Virtual Disk Wizard hyperlink in the Virtual Disks box.
You will be asked to select the storage pool you want to work with. You should only see the one pool that we created so far, Pool1.
On the Specify Enclosure Resiliency screen, leave the Enable Enclosure Awareness check box unchecked and click Next.
The next screen is the Select the Storage Layout screen. You have three options: Simple, Mirror, and Parity. These are very similar to the RAID levels as far as what they do. Simple is a non-RAID disk, Mirror is similar to RAID 1, and Parity is similar to RAID 5.
On the Specify the Size of the Virtual Disk screen, tell it how big you want the disk to be and click Next.
In my example, I’ve chosen to make the virtual disk 10GB.
Now that you’ve created a storage pool and a virtual disk, you’re ready to create a volume. Follow these steps:
On the Specify the Size of the Volume screen, enter a size and click Next.
I’ve entered 5GB.
On the Assign to a Driver Letter or Folder screen, select a drive letter or specify a folder and click Next.
I’ve kept it simple and chosen a drive letter. I was automatically given the letter E, as you can see in Figure 2-15.
On the Select File System Settings screen, select the file system settings and click Next.
I’ll stick with the default NTFS and the default allocation unit size, and I’ll name the volume, Volume1.
Storage Replica is a great tool for disaster recovery scenarios. It can do synchronous or asynchronous block-level replication of volumes between servers or clusters. By implementing stretch clusters, you could even replicate across distant sites.
Storage Replica was initially released in Windows Server 2016 Datacenter edition. As of Windows Server 2019, you can also take advantage of Storage Replica, although it does have a few limitations:
Storage Quality of Service (QoS) allows you to centrally monitor the storage performance of virtual machines (VMs) when you’re using Hyper-V and the Scale-Out File server roles. Note that you can use cluster shared volumes instead of Scale-Out file server if desired. Storage QoS accomplishes a few things:
One of the simplest ways to experiment with Storage QoS is to set up a failover cluster and create a cluster shared volume. If you do this, then Storage QoS is set up automatically. You can view it under the Cluster Core Resources.
Securing data has never been more critical than it is today. With BitLocker, you can protect your data from would-be thieves by encrypting your entire data drive. BitLocker can encrypt both fixed drives and removable drives. Fixed drives will in general use a Trusted Platform Module (TPM) chip to save the cryptographic key, while BitLocker To Go utilizes either a password or a smart card to unlock it.
In the following sections, I explain t what a TPM is, and walk you through installing BitLocker as well as configuring BitLocker To Go and BitLocker.
A Trusted Platform Module is a special chip on the motherboard designed to store passwords, certificates, and cryptographic keys. For the most seamless BitLocker experience, you’ll want a TPM chip that is version 1.2 or newer. If your system doesn’t have a TPM, you can still use BitLocker, but you’ll have to use Group Policy to override the TPM requirement. You’ll have to enter a password to unlock the system. I cover how to setup BitLocker without a TPM later in this chapter in the section called, “Knowing what to do if there’s no TPM module.”
To install BitLocker on Windows Server 2019, you need to install the BitLocker feature. Follow these steps:
On the Select Features screen, click select the BitLocker Drive Encryption check box, as shown in Figure 2-16, and click Next.
You’ll be asked if you want to install additional features that are required for BitLocker Drive Encryption, as shown in Figure 2-17.
On the Confirm Installation Selections screen, select the Restart the Destination Server Automatically if Required check box.
The BitLocker Drive Encryption feature requires a reboot.
After the server reboots, you can move on to configuring BitLocker.
To configure BitLocker To Go, you need to navigate to where the management utilities are hidden and then you can start to play. Follow these steps:
On my system, BitLocker is currently off, so I’ll click Turn on BitLocker for Volume1 (see Figure 2-19).
Because Volume1 is considered a removable disk, the TPM is not used, and you have to set a password or tell it to use a smart card. This is to support BitLocker To Go.
Click Next.
You’re asked how you want to back up your recovery key. You can save to a file or print the recovery key.
Save it, and then click Next.
You’re asked how much of your drive you want to encrypt.
On the Choose Which Encryption Mode to Use screen, select Compatible Mode and click Next.
It’s generally safest to go with Compatible Mode for removable media.
You’re asked if you’re ready to encrypt the drive.
Click Start Encrypting.
After the encryption is complete, you see the status of BitLocker on the BitLocker To Go drive. It should say BitLocker On, as shown in Figure 2-21.
To configure BitLocker, you need to navigate to where the management utilities are. These steps are the same as Steps 1 through 3 in “Configuring BitLocker To Go,” so I’ll start the instructions after Step 3. If you need a refresher on how to get to the BitLocker Management screen, review steps 1 through 3 in “Configuring BitLocker To Go” before proceeding.
On my system, BitLocker is currently off on the C drive, so I’m going to click Turn on BitLocker for the C drive.
On the How Do You Want to Back Up Your Recovery Key screen, you can choose to save to a file or print the recovery key.
Save the file and click Next.
You’re prompted to choose how you want to encrypt your drive. You can encrypt the entire drive, or just the used space only. You should choose whatever your organization requires.
On the final screen, select the Run BitLocker System Check check box.
This ensures that BitLocker can read the keys before it encrypts the drive (see Figure 2-22).
Click Continue.
You’re dropped back out to the BitLocker screen and asked to restart your system, as shown in Figure 2-23.
Click Restart Now.
After the system comes back up, BitLocker will begin the drive encryption. After the encryption is done, it will say BitLocker On, as shown in Figure 2-24.
You may run into a server that doesn’t have a TPM module. When you try to turn on BitLocker, you get an error saying that a compatible TPM could not be found. This doesn’t mean that you can’t use BitLocker; it just means that there will be more work involved to get it to encrypt the data drive. Follow these steps:
Now go ahead and go back in to the BitLocker screen.
You should have no issue getting it to work now.
Printers are a pretty important resource. If your print server goes down, you’ll start getting calls very quickly. Conversely, if users are trying to print, they’ll get very cranky if they can’t.
There are a few different ways you might install a server. A locally attached printer, for example, will most likely be connected through a USB cable. That printer may be used by one user or, in a small office setting, it may be shared from that workstation so that multiple users can print to it. Network-attached printing is very common as well, from homes with a wireless printer to large organizations that have printers on their local area networks (LANs). Some organizations may use a print server to manage their print queues centrally. You print to the server’s print queue, and it sends the job to the printer through the network.
The Printer Install Wizard walks you through the installation of your printer. You can launch it by going to the Control Panel and selecting View Device and Printers under the Hardware category. From there, you simply click Add a Printer and the wizard launches.
If your printer is found, the wizard is a nice easy type of install. If your printer is not found, you have a little more work to do. Here’s how to add a printer that just doesn’t want to cooperate:
Fill in the IP address of your printer (as shown in Figure 2-30).
Your IP address will be different from mine, so you’ll need to check your printer to see what IP address it’s using.
Click Next.
If all goes well, the system will be able to contact the printer and figure out which driver it needs.
Click Next.
On the Printer Sharing screen, you can decide if you want to share the computer with another system.
Click Next.
The last page gives you the option to set the new printer as the default printer.
To configure individual printers, there are two options to look at:
In Windows Server 2019, Print Server is a role that can be installed and then configured.
Here’s how to install the Print Server role:
Click Add Features when you’re prompted to do so.
Your screen should look like Figure 2-33.
Now that you’ve got the Print Server role installed, you can configure it. Here’s how to add your first printer:
Enter the IP address and click Next.
On the next screen you can name your printer. In an enterprise, I recommend doing this.
Click Next.
If the wizard finds the printer, the next screen tell you that the printer was found and shows you a summary of the printer information.
Click Next.
The server installs the drivers for the printer.
Connecting to a printer on a print server is pretty simple. You can add the printer with a Universal Naming Convention (UNC) path like \\servername\printername
. For this to work, the server's name must resolve in DNS. If you don’t have the printer name in DNS, you can do the UNC with the IP address instead of the server name. In enterprise environments, it’s common to use group policy to manage printers for users and/or computers.
I’ve covered a lot of configuration steps in this chapter, and I’m almost done. The last few configuration tasks are more important to your experience when working with the server then they are for your users, who will consume a service from the server.
From the Control Panel, go to Hardware, Devices, and Printers. Right-click the keyboard you want to manage and select Keyboard Settings. The Keyboard Properties dialog box (shown in Figure 2-37) appears. From here, you can adjust the repeat rates, adjust the cursor blink rate, and view information about the drivers.
From the Control Panel, go to Hardware, Devices, and Printers. Right-click the mouse you want to manage and select Mouse Settings. The Mouse Properties dialog box (shown in Figure 2-38) appears. From here, you can adjust button configuration, cursors, and the behavior of the scroll wheel.
Right-click the Start Menu and click Settings. From Settings, click System, and then click Power & Sleep. The first screen has the sleep settings for the screen. Click Additional Power Settings. You can choose from premade power plans, and you can customize the plan so that it’s to your liking by clicking Change Plan Settings. You’ll be presented with some very basic settings. However, you can get very granular by clicking Change Advanced Power Settings (see Figure 2-39).
Right-click the Start menu and click Settings. From Settings, click System, and then click Sound. With this screen, you can customize your default sound devices and recording devices. You can troubleshoot your sound devices from here as well.
Right-click the Start menu and click Settings. From Settings, click Time & Language and then click Language. From this screen, you can add new languages, set new default languages, and change keyboard layouts if desired. The Language screen on your server should look similar to Figure 2-40.
You may need to install new fonts on the server. This may happen because the company standard requires a different font than normal. I’ve even had to install barcode fonts before. To work with Fonts, right-click the Start menu and choose Settings. Click Personalization and then click Fonts. What I love most about the new interface is that it gives you visual samples of each of the fonts and the ability to get more fonts from the Microsoft Store. Figure 2-41 shows the Fonts screen.