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

Enabling Branch Office Direct Printing


Branch Office Direct Printing (BODP) is a feature introduced in Windows Server 2012 that is designed to reduce print traffic across your WAN. With BODP, a user in a branch office sends the print job directly to a branch office printer. There is no need to send the print job from the client to a centralized print server and then back to the branch office printer. Print jobs can be quite large, so this can improve printing and reduce print job-related WAN traffic.

Getting ready

This recipe needs a second shared printer, SGBRCP1, set up as follows:

    $PtrName = 'Sales_Branch_Color'
    $PtrIP = '172.16.1.61'
    $DrvName = 'NEC Color MultiWriter Class Driver'
    Add-PrinterPort -Name $ptrname `
                    -PrinterHostAddress $PtrIP
    Add-PrinterDriver -Name $DrvName `
                      -PrinterEnvironment 'Windows x64'
    Add-Printer -Name 'SGBRCP1' `
                -DriverName $DrvName `
                -Portname 'Sales_Branch_Color'...