Category Archives: Microsoft

Dump Database to Text Files

I recently had a need write records from a database to text files, with one file per record. This post covers how I did it, with VBScript. This project was actually part of a much larger project, which in reality was one of those “Let’s see if I can do it” type of projects. It turned out successful,… Read More »

Resolving hostnames and IP Addresses with VB6

Some time ago, I wrote an app that required the ability to resolve hostnames to IP Addresses, and vice versa.  After some searching around, I found this gem. I don’t recall exactly where I found it, but this little chunk of code has served me well, lo these many years.  It contains two functions: The functions do exactly… Read More »

Resolving IP to Hostname with PowerShell

Getting the hostname from an IP address (or vice versa) is no great magic, and can be done easily with PowerShell, by simply leveraging .Net to do the work. We’ve all done something like this to get resolve an IP address: [System.Net.Dns]::GetHostEntry(“69.69.95.133”).HostName Or this to get an IP address from a hostname: [System.Net.DNS]::GetHostAddresses(“www.fortypoundhead.com”).IPAddressToString But did you ever notice… Read More »

SCOM 2012 Agent “Not Monitored”

Recently, I rebuilt my SCOM environment (don’t ask), re-attaching all the previously existing agents to the new installation. Lots of them came back as “Not Monitored”.