PowerShell:- Create an PowerShell script to output results to the Event Log

PowerShell:- Create an PowerShell script to output results to the Event Log

I had a request to check connectivity to a SQL server and to email the results, however I thought of doing something different. Have the application check the connectivity but create an Event ID and Event Log entry on Success and Failure and you can monitor that with...