Windows service status and how to stop and start them

We’ve all had to investigate windows service status at some point or another. There are many ways of doing this, but this is what works best for me, maybe you should try it.
Continue reading “Windows service status and how to stop and start them”

Process information using the service name

I created this because the need arose to collect process information for some windows services. Using the process ID alone wouldn’t work because it would change any time the service was restarted and in order to collect enough data for trending purposes, I needed to find a different approach.
Continue reading “Process information using the service name”

Purging private message queues

I’ve monitored an application that relied on both public and private message queues. All is wonderful until it’s not. Something happened, the database started wigging out and local message queues on our application servers grew out of control. We found the problem, fixed it and all is good to go, but we still have a bunch of crap queued up…in my scenario, they were logging queues which if left alone would flush themselves out eventually in the meantime our logging server would get the pounding of its life.
Continue reading “Purging private message queues”

Check to see if DNS is working by pinging FQDN

Problems with DNS can sometimes go undetected because they’re not the easiest to detect. I ran into a scenario where servers were “falling out of DNS” a term coined by a systems guy I’m sure. Either way, by all means a server in this state appears to be ok, other than the fact that you can’t connect to it via its FQDN.
Continue reading “Check to see if DNS is working by pinging FQDN”

Available disk space for all local disks

This script is pretty dope and will let you know how much space you have remaining on every local disk it finds. You could tweak it to check on space for other types of drives easily enough.
Continue reading “Available disk space for all local disks”

Remote registry edit and change service status

Both of these serve the same purpose of changing the startup types of windows services. I had to implement a remote registry edit script in order to push the change because it was the only way of getting it to work remotely.
Continue reading “Remote registry edit and change service status”