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)

PowerShell Web Access


PowerShell Web Access (PSWA) was introduced in Windows Server 2012. In short, PSWA acts as a gateway to run the PowerShell cmdlets from a remote computer. The key benefit of this is that we don't need any remote management software on remote computers.

PSWA can be implemented using the following three steps:

  1. Installing the PowerShell Web Access gateway

  2. Configuring the gateway

  3. Configuring authorization rule

Installing PowerShell Web Access

We can do a PSWA installation using GUI and PowerShell. Let's explore these methods one by one.

Installing Windows PowerShell Web Access using GUI is a straightforward approach. Yes! It's just click—click, and you're done. Perform the following steps:

  1. Log in to the Windows 2012 server.

  2. Click on Start icon.

  3. Select Control Panel.

  4. Alternatively, you can simply click on Server manager if you are familiar with Windows Server.

  5. Now, we will see Add Roles and Features Wizard.

  6. Windows PowerShell Web Access can be found under the Features tab; keep clicking...