Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Start remote service and check event log for successful connection

$
0
0

Just started trying to learn PowerShell, but have an immediate need to start a service on three remote servers, check and display back to the screen that the service started on each remote server, then monitor the event log on each remote server for a new specific event id event and display back to the screen that event log reports a successful connection to the database server on each remote server, but I don’t know enough about PowerShell to know how to get started and can’t figure it out from examples I’ve found on the internet. Can someone please help me with this task and point me in the right direction? I am then going to try to turn the code into a function so that I can use this script on our test, production and DR servers, by passing it a file to read of server names. Hopefully.


Viewing all articles
Browse latest Browse all 6937

Trending Articles