Powershell script to run against many servers and send combine output as email


say wanted run select @@version against 3 sql instances ( sqla, sqlb , sqlc) .. want email shows combined output of these results follows

sqla   sql 2005..

sqlb   sql 2008,,

sqlc   sql 2008...

what want not above output, template give me idea of how accomplish collecting results against multiple servers, appending content , send combined output in email. have seen few examples online on how send email, connect 1 server, collect results , send output. want running against many servers, collecting , sending 1 email combined results.

 



SQL Server  >  SQL Server Database Engine



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'