Book Image

Windows PowerShell for .NET Developers - Second Edition - Second Edition

Book Image

Windows PowerShell for .NET Developers - Second Edition - Second Edition

Overview of this book

Windows PowerShell 5.0 for .NET Developers is your self-start guide to performing automation using Windows PowerShell. This book will help you to understand the PowerShell syntax and grammar and will also teach you techniques to remove the rough edges of manual deployments. Packed with PowerShell scripts and sample C# codes to automate tasks, it also includes real-world scenarios such as administrating office servers to help you save time and perform deployments swiftly and efficiently. The book begins with the Windows PowerShell basics, explores the significant features of Windows Management Framework 5.0, covers the basic concepts of Desired State Configuration and the importance of idempotent deployments. By the end of the book, you will have a good understanding of Windows PowerShell’s features and will be able to automate your tasks and manage configuration effectively.
Table of Contents (13 chapters)

Exploring Windows PowerShell 5.0


In this section, we will cover the following topics:

  • Basics of Desired State Configuration

  • Parsing structured objects using PowerShell

  • Exploring Package Management

  • Exploring PowerShellGet

  • Exploring other enhanced features

Windows PowerShell 5.0 has many significant benefits; to know more about them, refer to the following link:

http://go.microsoft.com/fwlink/?LinkID=512808

Here are a few highlights of Windows PowerShell 5.0:

  • Improved usability

  • Backward compatibility

  • Class and enum keywords are introduced

  • Parsing structured objects is easy using the ConvertFrom-String command

  • We have a few new modules introduced in Windows PowerShell 5.0, such as Archive, Package Management (formerly known as OneGet), and so on

  • ISE supports transcriptions

  • Using PowerShellGet, we can find, install, and publish modules

  • Debugging at runspace is possible using the Microsoft.PowerShell.Utility module

The basics of Desired State Configuration

Desired State Configuration, also known as DSC, is...