Book Image

Windows Server 2016 Automation with PowerShell Cookbook - Second Edition

By : Thomas Lee, Ed Goad
Book Image

Windows Server 2016 Automation with PowerShell Cookbook - Second Edition

By: Thomas Lee, Ed Goad

Overview of this book

This book showcases several ways that Windows administrators can use to automate and streamline their job. You'll start with the PowerShell and Windows Server fundamentals, where you'll become well versed with PowerShell and Windows Server features. In the next module, Core Windows Server 2016, you'll implement Nano Server, manage Windows updates, and implement troubleshooting and server inventories. You'll then move on to the Networking module, where you'll manage Windows network services and network shares. The last module covers Azure and DSC, where you will use Azure on PowerShell and DSC to easily maintain Windows servers.
Table of Contents (21 chapters)
Title Page
Credits
About the Author
Acknowledgment
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface

Installing and sharing printers


The first step in creating a print server for your organization involves installing the print server feature, then installing printer ports and printer drivers, and finally creating printers.

Getting ready

In this recipe, you are going to set up a print server, PSRV, and then set up a TCP/IP printer for the Sales Group. This process involves installing the print server feature in Windows Server 2016. Then you create a port for a new printer and install the driver for the Sales Group group's new printer, an NEC Color MultiWriter. Finally, you create and then share the printer. Once complete, you can review what you have accomplished.

How to do it...

  1. Install the Print-Server feature on PSRV, along with the print management tools:
Install-WindowsFeature -Name Print-Server,                                RSAT-Print-Services
  1. Add a PrinterPort for a new printer:
Add-PrinterPort -Name Sales_Color `       -PrinterHostAddress 10.10.10.61
  1. Add a PrinterDriver for this printer...