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

Visual Studio Code


As you have seen, the PowerShell ISE is quite a good tool, but still missing some features. Nevertheless, it comes with any Windows environment and is a helpful tool for creating valuable scripts and debugging them, if necessary. In comparison, we will now take an initial look at VSCode and how to set it up for the creation of PowerShell code. An explanation of and the usage of advanced techniques of VSCode will be covered throughout the rest of the book.

Introduction

Visual Studio Code (VSCode) is a lightweight open-source editor, which is free for private and commercial use. Technically, VSCode is built on the framework Electron. Electron is known as a toolset to deploy Node.js applications that are running on the Blink layout engine. The underlying editor is the Monaco Editor. Like the PowerShell ISE, it also has IntelliSense capabilities, which are even available for many more languages. You can easily extend VSCode with the installation of additional extensions. These...