|DNS Round robin load balancing in VBScript.
||[Jul. 23rd, 2009|09:02 am]
I've got a Windows DNS server, and all our Terminal Servers are called TS.
So the records look like this:
I use a VBScript that runs QUERY for all DNS records for "TS"... http://support.microsoft.com/kb/186592
It returns a list of all the users logged into that machine.
I then read the size of the NTUSER.DAT file for each user that's logged in and come up with a total in Megabytes. I've found that more than 30MB's of loaded hive cause the Terminal Server to crash! (Cannot load your profile due to registry being too full... blah blah blah)
So I've got a little script that reports each of the online machines, how many users are logged in, and how much NTUSER.DAT's are taking up on it.
I wonder if there's a better way of checking the Terminal Servers free registry space?
Anyone got any good ideas for this?
I'm going to write a front end GUI (HTA =P ), that's drag and drop to take the server's out of round-robin, and do automatic load balancing.
It's going to be open-source freeware, so comment for the community!