Skip to Main Content
Windows Server 2019 Automation with PowerShell Cookbook - Third Edition
book

Windows Server 2019 Automation with PowerShell Cookbook - Third Edition

by Thomas Lee
February 2019
Beginner to intermediate content levelBeginner to intermediate
542 pages
10h 34m
English
Packt Publishing
Content preview from Windows Server 2019 Automation with PowerShell Cookbook - Third Edition

Installing IIS

Before you can use IIS, you must install it onto your host. Like other roles and features of Windows Server 2019 that are covered in this book, you install IIS by using the Install-WindowsFeature cmdlet. Once you have installed the web server, you can take a look at the host.

Getting ready

This recipe uses SRV1 and assumes a fresh installation. If you have used SRV1 to test previous recipes, you may need to remove the Web-Server feature before you run this recipe. Also, you should have the Windows Server 2019 installation DVD in the D: drive of SRV1.

How to do it…

  1. Add the Web-Server feature, sub-features, and tools to SRV1, as follows:
    $FHT = @{ Name = 'Web-Server' IncludeAllSubFeature = $true IncludeManagementTools = $true Source = ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Windows Server Automation with PowerShell Cookbook, Fifth Edition - Fifth Edition

Windows Server Automation with PowerShell Cookbook, Fifth Edition - Fifth Edition

Thomas Lee

Publisher Resources

ISBN: 9781789808537OtherErrata PagePurchase Link