![alt](/assets/uploads/2013/09/2013-09-04_125056.jpg)
$server | Get-Member
$Server.JobServer|gm
$Server.JobServer.Operators | gm
![alt](/assets/uploads/2013/09/2013-09-04_125717.jpg)
![alt](/assets/uploads/2013/09/2013-09-04_130052.jpg)
![alt](/assets/uploads/2013/09/2013-09-04_174005.jpg)
![alt](/assets/uploads/2013/09/2013-09-04_173953.jpg)
![alt](https://i0.wp.com/sqldbawithabeard.com/wp-content/uploads/2013/09/2013-09-04_174056.jpg)
![alt](https://i0.wp.com/sqldbawithabeard.com/wp-content/uploads/2013/09/2013-09-04_174112.jpg)
![alt](/assets/uploads/2013/09/2013-09-05_113931.jpg)
![alt](/assets/uploads/2013/09/2013-09-05_114601.jpg)
############################################################################# ################
#
# NAME: Show-SQLServerOperators.ps1
# AUTHOR: Rob Sewell https://blog.robsewell.com
# DATE:03/09/2013
#
# COMMENTS: Load function for Enumerating Operators and Notifications
# ————————————————————————
Function Show-SQLServerOperators ($SQLServer) {
Write-Output "############### $SQLServer ##########################"
Write-Output "#####################################################`n"
$server = new-object "Microsoft.SqlServer.Management.Smo.Server" $SQLServer
foreach ($Operator in $server.JobServer.Operators) {
$Operator = New-Object ("$SMO.Agent.Operator") ($server.JobServer, $Operator)
$OpName = $Operator.Name
Write-Output "Operator $OpName"
Write-Output "`n###### Job Notifications ######"
$Operator.EnumJobNotifications()| Select JobName | Format-Table
Write-Output "#####################################################`n"
Write-Output "`n###### Alert Notifications #######"
$Operator.EnumNotifications() | Select AlertName | Format-Table
Write-Output "#####################################################`n"
}
}