It appears that the original version of my script just plain did not work on any version of Windows other than XP. A new release (version 2) linked to from the
same blog post has been tested as working on Windows 7 and Vista both 32-bit and 64-bit. I apologize for not testing this more before releasing it, and thanks much to volwrath for helping with testing. Enjoy!