Posts

Showing posts from January, 2015

Server hang monitor

I recently had an issue where a Windows 2012 R2 VM would hand in the middle of the night.  No clue why.  Event logs were of no help.  Our best guess is that our internal vulnerability scan made it upset.  Either way this server was a major departmental file store and if it isn't up in the morning we get hammered with tickets. I decided to create a script to manage this issue.  It uses 2 text files for input located in the samne folder as the script..  It requires the VMware PowerShell extensions.  It only works on virtual servers as written.  If the server is running but not reponding vSphere will reset it.  I have this running on a recurring 15 minute scheduled task. Param ( $Debug = $False ) #====================================================================================== #         File Name : Server-Alive.ps1 #   Original Author : Kenneth C. Mazie (kcmjr AT kcmjr.co...