Hi,
some days you receive several requests and you notice that some of them (maybe the 100%) are caused by an old server that is no longer working fine or to some custom application that cause service hangs.
Anyway every day the same actions to restart a service or reboot a server is wearisome so I decided to automate these checks.
Added some email item to receive a notification......added also some logging the check, rarely if you are lucky, what happened, when and if the script did its job.
Here you are.....improvable as usual :
Some notes : if you need to do this check on a server that is not in your domain.....what's the alternative ?
You can use another CMDLET to pass the server's credentials that you need to connect and make your checks.
Here below another version of the script.....improve and enjoy :
No complications, no tricks, only the essential.
Hope this helps.
See you soon.
No comments:
Post a Comment