Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Windows Server 2019 Automation with PowerShell Cookbook - Third Edition

You're reading from  Windows Server 2019 Automation with PowerShell Cookbook - Third Edition

Product type Book
Published in Feb 2019
Publisher Packt
ISBN-13 9781789808537
Pages 542 pages
Edition 3rd Edition
Languages
Author (1):
Thomas Lee Thomas Lee
Profile icon Thomas Lee
Toc

Table of Contents (19) Chapters close

Windows Server 2019 Automation with PowerShell Cookbook Third Edition
Foreword
Contributors
Preface
1. Establishing a PowerShell Administrative Environment 2. Managing Windows Networking 3. Managing Windows Active Directory 4. Managing Windows Storage 5. Managing Shared Data 6. Managing Windows Update 7. Managing Printing 8. Introducing Containers 9. Managing Windows Internet Information Server 10. Managing Desired State Configuration 11. Managing Hyper-V 12. Managing Azure 13. Managing Performance and Usage 14. Troubleshooting Windows Server Index

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                 = "D:\sources\sxs"
    }
    Install-WindowsFeature  @FHT
  2. See what features are installed:

    Get-WindowsFeature -Name Web*  | Where-Object Installed
  3. Check the IIS administration modules:

    $Modules = @('WebAdministration', ...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}