Book Image

SQL Server 2014 with PowerShell v5 Cookbook

By : Donabel Santos
Book Image

SQL Server 2014 with PowerShell v5 Cookbook

By: Donabel Santos

Overview of this book

Table of Contents (21 chapters)
SQL Server 2014 with PowerShell v5 Cookbook
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Installing PowerShell V5


As Windows Server 2012 R2 does not natively come with PowerShell V5, at the time of the writing this book, we will need to install it separately.

  1. Launch VMWare Player.

  2. Play SQL2014VM, and log in.

  3. Download and install the Windows Management Framework 5. This will install PowerShell V5, including the PowerShell V5 ISE (Integrated Scripting Environment). At the time of writing this book, this framework can be downloaded from https://www.microsoft.com/en-us/download/details.aspx?id=46889 and the binary is WindwosBlue-KB3055381-x64.msu.

  4. After the installation is complete, restart your VM.

  5. Confirm that PowerShell V5 is installed by launching the PowerShell console. Type $host.version in the console, and you will see the value 5 for the Major build, as shown in the following screenshot: