IIS Recycling Application Pools

October 3, 2014

So I wrote a little VBScript to help recycle all the application pools on a single server. This will by far be the fastest script you’ll find out here. VBScript on error resume next Set args=wScript.Arguments If args.count<>1 Then wScript.echo WScript.ScriptName & ” SERVERNAME” wScript.Quit Else s=args(0) End If Set objWMIService = GetObject(“winmgmts:{authenticationLevel=pktPrivacy}\\” & s […]


IIS Secure Firewall

May 1, 2013

A little background on what I enjoy doing. I enjoy may aspects of managing a large IIS server farm. One of those aspects is security. Having used URLScan for so long and learning the best practices of using URLScan I decided it doesn’t provide me with the information or capabilities I am actually looking for. […]


Sorting VB.Net HashTable sorting by Key *Resolved*

September 6, 2012

So there’s two options you have. Use SortedList() instead of HashTable() You can come up with your own Sorted method, see below Method 1 Imports System.Collections … Dim ht As New SortedList() ht.Add(“A4”, “4”) ht.Add(“A1”, “1”) ht.Add(“A3”, “3”) ht.Add(“A2”, “2”) For Each k As DictionaryEntry In ht Console.WriteLine(“{0} is {1}”, k.Key, k.Value) Next Method 2 […]