This chapter covers how SQL Server usage and performance monitoring, logging, alerting, and error checking can be done with PowerShell. The topics covered in this chapter include the following:
Getting to know helpful cmdlets
Scheduling PowerShell scripts
Checking logs
Monitoring failed jobs
Alerting on disk space usage
Logging blocked processes
Getting performance metrics