Friday, 1 October 2010


Test to try syntaxhighlighter

Imports System
Imports System.Messaging

Public Class MyNewQueue
Public Shared Sub Main()

' Create a new instance of the class.
Dim myNewQueue As New MyNewQueue()

' Output the count of Lowest priority messages.


End Sub 'Main

A new ping?

If like me you are a systems administrator and work with windows, you can sometimes find yourself rebooting boxes regularly (We'll not really if you are any good at your job)

But you will find yourself familiar with the command ping -t

This is all well and good, however just because the machine responds to a ping, doesn't mean it's going to let you RDP back onto it.

I wrote a console app in to get around this, what this app does is connect on a specified port to see if its listening, much the same as doing telnet servername 3389 and the usual control+c if you get a response would tell you.

The program is passed to arguments on the command line:

IsOpen.exe ServerName Port

For example

IsOpen.exe DC01 3389

This will return a message to whether it is or isn't responding based on whether a connection can be established.

The program is deliberately forced into an infinite loop to do the equivalent of a ping -t, just because I wrote it for myself and that's what I wanted!

Pressing Control + C will let you exit the app. (I was quite proud of finding that code on the Internet and I think it will be making it into all my future console applications) - Which are normally called ConsoleApplication1.exe ;)

Download it here:

Resoving Systems Center Operations Manager Alerts via Email

A breif post, a few years ago I wrote a service for MOM to allow you to close alerts via email. I saw a supplier we use had this functionality in their alerting and I wanted it!

Anyway we since upgraded versions of exchange and also MOM to SCOM and then SCOM R2, so the service has gone through a few versions, for example having to swap from exchange WebDAV to Exchange web services.

The code isnt pretty, I'm not a developer, but as a Systems Admin the code works fine in my mind, uses hardly any memory, doesn't crash and needs no intervention from me!

I wrote it, use it daily and forgot about it!

Anyway apparently I overwrote the copy on my website with the latest version of my SCOM to EMC Infra connector (thats a post for another time)

Anyway the updated link is here: