Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

LinkedIn Learning

PowerShell for SQL Server Administration

via LinkedIn Learning


Manage multiple machines at once using PowerShell. Learn how to use PowerShell to create objects, populate and delete data from tables, remote to other servers, and more.

Since SQL Server database administrators are typically charged with managing multiple machines, PowerShell—which enables administrators to manage large numbers of servers—is an especially valuable tool to master. In this course, instructor Denny Cherry shows SQL Server administrators how to use PowerShell to automate server management. Discover how to work with PowerShell to create objects, populate and delete data from tables, and remote to other servers. Plus, see how to loop constructs in PowerShell and make data available for transfer to third-party platforms.


  • Manage SQL servers with PowerShell
  • What you should know
  • Download tools
1. PowerShell in SQL Server
  • PowerShell won't solve all problems
  • When PowerShell is useful
  • Differences between the two modules
  • Open-source solutions
2. Connecting to SQL Server from PowerShell
  • Declaring objects
  • Connecting to SQL Server
  • Parameters in PowerShell
  • Closing connections
  • Disposing connections
  • Object reuse
3. Creating Objects in PowerShell
  • Creating databases
  • Creating tables
  • Creating views
  • Creating procedures
4. Querying Data in PowerShell
  • Inserting data into tables
  • Returning data from SQL Server
  • Running stored procedures in PowerShell
5. Looping Through Servers in PowerShell
  • Loops in PowerShell
  • Storing servers for PowerShell
  • Concepts of threading
  • PowerShell threading commandlets
  • Authentication and threading
  • Piping between objects
  • Exporting CSV files
  • Importing CSV files
  • Exporting XML data
  • Importing XML data
6. PowerShell Remoting
  • What is remoting?
  • Removing over HTTP ports
  • Enabling remoting via PowerShell
  • Enabling remoting via GPO
  • Starting a remote session
  • Ending a remote session
  • Using alternate credentials for remoting
  • Invoking a remote command
  • Next steps

Taught by

Denny Cherry


Start your review of PowerShell for SQL Server Administration

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.