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

Configuring WSUS auto-approvals


WSUS organizes Windows updates under different classifications. You can view these classifications by using the Get-WsusClassification cmdlet. Two particularly important classifications you should check regularly are Critical Updates and Definition Updates. The Critical Updates classification includes updates that address severe security flaws and zero-day vulnerabilities. The Definition Updates classification includes definition files for Windows Defender to identify and remove malware.

These two classifications are important enough to approve them automatically. Auto-approval ensures WSUS installs these updates on client computers as soon as possible. In this recipe, you will create an auto-approval rule for these updates.

Getting ready

Run this recipe on the WSUS1 server.

How to do it...

Run this recipe to configure auto-approval of WSUS update:

  1. Create the auto-approval rule:
$WSUSServer = Get-WsusServer
      $ApprovalRule = $WSUSServer.CreateInstallApprovalRule...