Book Image

Microsoft SQL Server 2008 R2 Administration Cookbook

By : Satya Shyam K Jayanty
Book Image

Microsoft SQL Server 2008 R2 Administration Cookbook

By: Satya Shyam K Jayanty

Overview of this book

Table of Contents (19 chapters)
Microsoft SQL Server 2008 R2 Administration Cookbook
Credits
Foreword
About the Author
Acknowledgment
About the Reviewers
www.PacktPub.com
Preface
More DBA Manageability Best Practices

Implementing and running PowerShell for SQL Server features


Windows PowerShell is a powerful scripting tool that can help System Administrators to manage the servers in an automated way using scripts. A .NET assembly contains Windows PowerShell providers and CmdLets that extends the functionality of the shell. Similarly, PowerShell for SQL Server is available from SQL Server 2008 version onwards. During the SQL Server installation process, PowerShell and PowerShell snap-ins are installed to expose the SQL Server functionality from PowerShell.

In this recipe, we will go through the steps to implement and run PowerShell for SQL Server in an existing data platform.

Getting ready

In order to implement PowerShell for SQL Server, the operating system must have the PowerShell feature installed. In Windows Server 2008 onwards, PowerShell is a separate install, which requires you to download and install an external package.

  • To ensure PowerShell is installed on the operating system, open Server Manager...