Book Image

Learn PowerShell Core 6.0

By : David das Neves, Jan-Hendrik Peters
Book Image

Learn PowerShell Core 6.0

By: David das Neves, Jan-Hendrik Peters

Overview of this book

Beginning with an overview of the different versions of PowerShell, Learn PowerShell Core 6.0 introduces you to VSCode and then dives into helping you understand the basic techniques in PowerShell scripting. You will cover advanced coding techniques, learn how to write reusable code as well as store and load data with PowerShell. This book will help you understand PowerShell security and Just Enough Administration, enabling you to create your own PowerShell repository. The last set of chapters will guide you in setting up, configuring, and working with Release Pipelines in VSCode and VSTS, and help you understand PowerShell DSC. In addition to this, you will learn how to use PowerShell with Windows, Azure, Microsoft Online Services, SCCM, and SQL Server. The final chapter will provide you with some use cases and pro tips. By the end of this book, you will be able to create professional reusable code using security insight and knowledge of working with PowerShell Core 6.0 and its most important capabilities.
Table of Contents (26 chapters)
Title Page
Dedication
Packt Upsell
Contributors
Preface
Index

Pull


The pull mode is desirable for many enterprises. While in pull mode, the Local Configuration Manager autonomously queries one or more pull servers for updated configurations, downloads them, and combines them with its Pending.mof.

At the time of writing, the pull mode has several, sometimes severe, drawbacks:

  • The node status database can grow too large, bringing the pull server down.
  • SQL Server cannot be used as a database without unsupported workarounds. These will be added in upcoming major versions of Windows Server.
  • Reporting on the pull server is not possible without unsupported workarounds. These will be added in upcoming major versions of Windows Server.
  • The pull server needs to be an IIS server.

To enable pull mode, you first of all need to set up a pull server. Fortunately, this can be done entirely with Desired State Configuration as well. You should keep the following prerequisites in mind when designing your pull server:

  • One IIS host for ~1,000 nodes
  • Enough free disk space—the local...