Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Windows Server 2012 R2 Administrator Cookbook

You're reading from   Windows Server 2012 R2 Administrator Cookbook Over 80 hands-on recipes to effectively administer and manage your Windows Server 2012 R2 infrastructure in enterprise environments

Arrow left icon
Product type Paperback
Published in Jan 2015
Publisher
ISBN-13 9781784393076
Length 310 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Jordan Krause Jordan Krause
Author Profile Icon Jordan Krause
Jordan Krause
Arrow right icon
View More author details
Toc

Table of Contents (12) Chapters Close

Preface 1. Learning the Interface FREE CHAPTER 2. Core Infrastructure Tasks 3. Security and Networking 4. Working with Certificates 5. Internet Information Services 6. Remote Access 7. Remote Desktop Services 8. Monitoring and Backup 9. Group Policy 10. File Services and Data Control Index

Installing the Web Server (IIS) role with PowerShell

If you haven't started using PowerShell to accomplish some of your regular Windows Server tasks, do it now! PowerShell can be used in Windows Server 2012 R2 to accomplish any task or configuration inside the operating system. I am a huge fan of using the keyboard instead of the mouse in any situation, and saving scripts that can be used over and over to save time in the future.

In this recipe, we are going to explore the Install-WindowsFeature cmdlet that can be used to add a role or roles to your Server 2012 R2. Since we are discussing IIS in this chapter, let's take our newly created web server and use PowerShell to place the Web Server (IIS) role onto it.

Getting ready

There is a new Windows Server 2012 R2 web server in our environment called WEB-02. Let's use PowerShell on this machine in order to install the IIS role.

How to do it...

To add the Web Server (IIS) role to WEB-02 via PowerShell:

  1. Log in to WEB-02 and open a PowerShell...
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 €18.99/month. Cancel anytime