Recently I was asked to configure Database Mail on all SQL Servers
in one of my client environment, Instead of using SSMS or TSQL I tried to use PowerShell
with SMO objects to accomplish the task faster, Find the script below I created for the same, I took reference from http://www.sqlservercentral.com/articles/Database+Mail/74429/
and created my version of script, The Script can be run for one server or set of SQL Servers listed in a file. By default the Account and Profile name will be ServerName or SQLName_InstanceName in case of named instance which you can change by just assigning right value to the variables in the bleow script.
Copyright © 2013 Vinoth N Manoharan.The information provided in this post is provided "as is" with no implied warranties or guarantees.
FA10B168
ReplyDeleteMuş
Erzincan
Sinop
Kırıkkale
Trabzon
Isparta
Bartın
Tekirdağ
Kırklareli
2C58DB87
ReplyDeleteYenişehir
Aksu
Ergani
Kandıra
Edremit
Ödemiş
Akyaka
Finike
Kahramankazan